> ## Documentation Index
> Fetch the complete documentation index at: https://arklowdocs.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new API key

> Create a new API key for the authenticated user within the specified organization.



## OpenAPI

````yaml https://api.arklow.io/swagger/ui/json put /v1/orgs/{org_id}/keys/
openapi: 3.1.0
info:
  title: Arklow
  description: Arklow's API
  version: 0.1.0
servers:
  - url: https://api.arklow.io
    description: Production
  - url: http://localhost:3123
    description: Local development
security:
  - apiKey: []
tags:
  - name: actions
  - name: api_keys
  - name: billing
  - name: config
  - name: credentials
  - name: destinations
  - name: invites
  - name: members
  - name: metrics
  - name: notifications
  - name: orgs
  - name: rules
  - name: sources
  - name: users
  - name: ingress
externalDocs:
  url: https://api.arklow.io/swagger/ui
paths:
  /v1/orgs/{org_id}/keys/:
    put:
      tags:
        - api_keys
      summary: Create a new API key
      description: >-
        Create a new API key for the authenticated user within the specified
        organization.
      operationId: put_v1_orgs_by_org_id_keys
      parameters:
        - schema:
            type: string
            pattern: ^[0-9]+$
          in: path
          name: org_id
          required: true
          description: Organization identifier
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  minLength: 2
                  maxLength: 50
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - errors
                properties:
                  data:
                    anyOf:
                      - type: object
                        required:
                          - id
                          - org_id
                          - member_id
                          - material
                        properties:
                          id:
                            type: string
                            description: API key identifier
                          org_id:
                            type: string
                            description: Organization identifier
                          member_id:
                            type: string
                            description: Membership identifier linked to the API key
                          user_id:
                            type: string
                            description: User identifier
                          material:
                            type: string
                            description: API key material
                          description:
                            type: string
                            description: API key description
                      - type: 'null'
                  errors:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          required:
                            - code
                            - message
                          properties:
                            code:
                              type: string
                            message:
                              type: string
                      - type: 'null'
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-arklow-auth
      in: header

````