> ## 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.

# Poll a session

> Fallback if the signed callback was missed. You may only read your own sessions.



## OpenAPI

````yaml /api-reference/openapi.json get /api/age-verification/session/{id}
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/age-verification/session/{id}:
    get:
      tags:
        - Verification
      summary: Poll a session
      description: >-
        Fallback if the signed callback was missed. You may only read your own
        sessions.
      operationId: getSession
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Session state
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/SessionResult'
        '404':
          $ref: '#/components/responses/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SessionResult:
      type: object
      properties:
        session_id:
          type: string
        status:
          type: string
          enum:
            - PENDING
            - APPROVED
            - DENIED
            - EXPIRED
        above_age_required:
          type:
            - boolean
            - 'null'
        assurance:
          type:
            - string
            - 'null'
          enum:
            - KYC_VERIFIED
            - FAMILY_ASSERTED
            - null
        receipt_id:
          type:
            - string
            - 'null'
        age_required:
          type: integer
        expires_at:
          type: string
          format: date-time
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        errors:
          type: array
          items: {}
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Account JWT from `/api/auth/login` — used for Users, KYC, key management
        and usage.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your merchant secret key, e.g. `anonage_sk_…`. Server-side only.

````