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

# Create an API key

> Create an API key for your organization.

**This response is the only time the key's secret (`key`) is shown.** Store it
somewhere safe — it cannot be retrieved again, and a lost key has to be replaced.



## OpenAPI

````yaml https://api.staging.glot.com/openapi.json post /v1/api-keys
openapi: 3.1.0
info:
  title: glot-api
  version: 0.1.0
servers: []
security: []
tags:
  - name: rooms
    description: Create translation rooms and let participants join them.
  - name: usage
    description: Minutes and charges over time, for reporting and charts.
  - name: billing
    description: Buy prepaid credit and review the balance behind it.
  - name: api-keys
    description: Create and revoke keys used to authenticate requests.
  - name: supported-languages
    description: Languages available for translation.
  - name: users
    description: The authenticated user's own profile.
paths:
  /v1/api-keys:
    post:
      tags:
        - api-keys
      summary: Create an API key
      description: >-
        Create an API key for your organization.


        **This response is the only time the key's secret (`key`) is shown.**
        Store it

        somewhere safe — it cannot be retrieved again, and a lost key has to be
        replaced.
      operationId: create_api_key_v1_api_keys_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiKeyCreateRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyCreatedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiKeyCreateRequest:
      properties:
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
          examples:
            - CI pipeline
      type: object
      required:
        - name
      title: ApiKeyCreateRequest
      description: Request to create an API key.
    ApiKeyCreatedResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        key_prefix:
          type: string
          title: Key Prefix
        key_last4:
          type: string
          title: Key Last4
        created_at:
          type: string
          format: date-time
          title: Created At
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
        created_by:
          type: string
          title: Created By
        key:
          type: string
          title: Key
      type: object
      required:
        - id
        - name
        - key_prefix
        - key_last4
        - created_at
        - last_used_at
        - created_by
        - key
      title: ApiKeyCreatedResponse
      description: >-
        A newly created API key, including its secret.


        This is the only response that ever contains `key`. It cannot be
        retrieved

        afterwards.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````