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

# Claim an API key

> Redeems a claim token for an API key. The key is returned once and never again: the token is single-use and expires 30 minutes after the request. Missing, expired and already-claimed tokens all return 410 with the same message. Unauthenticated.



## OpenAPI

````yaml https://api.classify.ai/openapi.json get /v1/keys/claim
openapi: 3.1.0
info:
  title: Classify API
  description: >-
    URL-level classification against the ContentGraph index. Priced per URL,
    never per token. URLs already in ContentGraph return classifications inline
    in under 50ms (Lookup). URLs not in the index return status `unknown` with a
    `job_id`; workers fetch, embed, and classify within seconds (Live Classify).
    Poll the job for results. Every live result joins the index.
  version: '1.0'
servers:
  - url: https://api.classify.ai
security: []
paths:
  /v1/keys/claim:
    get:
      tags:
        - Keys
      summary: Claim an API key
      description: >-
        Redeems a claim token for an API key. The key is returned once and never
        again: the token is single-use and expires 30 minutes after the request.
        Missing, expired and already-claimed tokens all return 410 with the same
        message. Unauthenticated.
      operationId: claim_key_v1_keys_claim_get
      parameters:
        - name: token
          in: query
          required: false
          schema:
            type: string
            default: ''
            title: Token
      responses:
        '200':
          description: The API key, shown once
          content:
            application/json:
              schema: {}
              example:
                key: ck_live_xxx
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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

````