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

# Collect the agent's key

> One poll of a sign-up. Every answer while it is not done is 200 with status: pending (keep polling), slow_down (polled faster than interval: add 5 s to your interval), expired (start again) or denied (the person said no; stop). approved carries the key, exactly once: keep it, it is not shown again here (it stays on the dashboard). A claim_token that is unknown or already collected is 400 invalid_request.



## OpenAPI

````yaml /openapi.json post /agent-signup/token
openapi: 3.1.0
info:
  title: West Kite API
  version: 1.0.0
  description: >-
    Sourced US commercial property records, owner research and contacts, priced
    per call. A call that fails, or a lookup that finds nothing, costs nothing.
    Missing fields are unavailable, never zero: each answer lists them in
    missing with a reason.
  contact:
    url: https://westkite.com/docs/api
servers:
  - url: https://api.westkite.com/v1
security:
  - bearer: []
  - apiKey: []
paths:
  /agent-signup/token:
    post:
      tags:
        - Account
      summary: Collect the agent's key
      description: >-
        One poll of a sign-up. Every answer while it is not done is 200 with
        status: pending (keep polling), slow_down (polled faster than interval:
        add 5 s to your interval), expired (start again) or denied (the person
        said no; stop). approved carries the key, exactly once: keep it, it is
        not shown again here (it stays on the dashboard). A claim_token that is
        unknown or already collected is 400 invalid_request.
      operationId: agentSignupToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - claim_token
              properties:
                claim_token:
                  type: string
      responses:
        '200':
          description: The claim's status; the key once approved.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    required:
                      - status
                    properties:
                      status:
                        enum:
                          - pending
                          - slow_down
                          - expired
                          - denied
                  - type: object
                    required:
                      - status
                      - api_key
                      - key_id
                      - key_name
                      - balance_usd
                      - dashboard_url
                    properties:
                      status:
                        const: approved
                      api_key:
                        type: string
                        pattern: ^wk_live_[0-9A-Za-z]{32}$
                      key_id:
                        type: string
                      key_name:
                        type: string
                      balance_usd:
                        type: number
                        description: >-
                          The team's balance (new teams start with the sign-up
                          credit).
                      dashboard_url:
                        type: string
        '400':
          description: invalid_request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: rate_limited
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: service_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  headers:
    X-Request-Id:
      description: The request's id, as request_id in the body.
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
            - docs_url
          properties:
            code:
              enum:
                - invalid_request
                - invalid_key
                - insufficient_balance
                - spend_limit_exceeded
                - max_cost_too_low
                - scope_missing
                - not_found
                - endpoint_removed
                - idempotency_conflict
                - rate_limited
                - internal_error
                - service_unavailable
            message:
              type: string
            retryable:
              type: boolean
            docs_url:
              type: string
            reason:
              type: string
              description: >-
                invalid_key: revoked, expired or unknown. rate_limited: requests
                (per minute), concurrency (in flight), agent_questions (the
                Agent's own cap) or agent_signups (sign-ups started).
            retry_after:
              type: integer
            upgrade_url:
              type: string
            quoted_usd:
              type: number
            concurrent:
              type: integer
            balance_usd:
              type: number
            available_usd:
              type: number
            spend_cap_usd:
              type: number
            spent_usd:
              type: number
        request_id:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: wk_live_ key
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.