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

# Create an API key

> Mints a key for a verified BUSINESS account. The raw key and signing secret are returned **once**.



## OpenAPI

````yaml /api-reference/openapi.json post /api/keys
openapi: 3.1.0
info:
  title: AnonAge API
  version: 1.0.0
  description: >-
    The AnonAge platform + integration API. Age-verify users without handling
    their identity documents (Verification / API keys / Usage), plus the account
    and KYC endpoints the AnonAge apps use (Auth / Users / KYC).


    All responses share the envelope `{ success, data?, message?, error?,
    errors? }`.
servers:
  - url: https://api.anonage.io
    description: Production (coming soon)
  - url: https://dev1api.anonage.io
    description: Development
security:
  - BearerAuth: []
tags:
  - name: Health
  - name: Auth
    description: Register, sign in, email verification, password reset.
  - name: Users
    description: Profile, password, email, account.
  - name: KYC
    description: Identity verification via Sumsub.
  - name: Verification
    description: Merchant age-verification sessions.
  - name: API keys
    description: Business keys for the integration API.
  - name: Usage
    description: Verification usage reporting.
  - name: Webhooks
    description: Inbound provider webhooks.
paths:
  /api/keys:
    post:
      tags:
        - API keys
      summary: Create an API key
      description: >-
        Mints a key for a verified BUSINESS account. The raw key and signing
        secret are returned **once**.
      operationId: createApiKey
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
      responses:
        '201':
          description: Key created (secret shown once)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    $ref: '#/components/schemas/CreatedApiKey'
components:
  schemas:
    CreatedApiKey:
      allOf:
        - $ref: '#/components/schemas/ApiKey'
        - type: object
          properties:
            key:
              type: string
              description: Raw secret key — shown once.
            signingSecret:
              type: string
              description: Callback HMAC secret — shown once.
    ApiKey:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        keyPrefix:
          type: string
        isActive:
          type: boolean
        lastUsedAt:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Account JWT from `/api/auth/login` — used for Users, KYC, key management
        and usage.

````