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

# Create a verification session

> Creates a new verification session and returns a URL for the end-user to complete verification.

Send `reference_verification_id` to create a face re-verification instead: a selfie-only session
that compares the person's face with the one from an earlier approved document verification of the
same workspace and decides on its own. The request must be HMAC-signed, a re-verification is not
billed, and it is taken in the hosted page the returned `url` opens. Its responses and webhooks carry
a `reauth` object; ordinary sessions have none. See the Face re-verification guide.



## OpenAPI

````yaml /openapi.json post /verifications
openapi: 3.1.0
info:
  title: API Reference
  version: 1.0.0
  description: >-
    ProofAge is an identity verification and age estimation API. Use this API to
    create verification sessions, upload media (selfies and documents), and
    receive decisions via webhooks.
servers:
  - url: https://api.proofage.net/v1
    description: API
security:
  - apiKey: []
    hmacSignature: []
paths:
  /verifications:
    post:
      tags:
        - Verification
      summary: Create a verification session
      description: >-
        Creates a new verification session and returns a URL for the end-user to
        complete verification.


        Send `reference_verification_id` to create a face re-verification
        instead: a selfie-only session

        that compares the person's face with the one from an earlier approved
        document verification of the

        same workspace and decides on its own. The request must be HMAC-signed,
        a re-verification is not

        billed, and it is taken in the hosted page the returned `url` opens. Its
        responses and webhooks carry

        a `reauth` object; ordinary sessions have none. See the Face
        re-verification guide.
      operationId: createVerification
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StoreVerificationRequest'
      responses:
        '201':
          description: >-
            The verification session, with the url the person opens to complete
            it.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - id: 550e8400-e29b-41d4-a716-446655440000
                    external_id: user-123
                    external_metadata:
                      plan: premium
                    redirect_url: https://example.com/callback
                    status: created
                    reason: null
                    duplicate_check:
                      checked: false
                      duplicate_count: 0
                      duplicates: []
                    erasure: null
                    consent_accepted_at: null
                    created_at: '2026-03-19T12:00:00+00:00'
                    updated_at: '2026-03-19T12:00:00+00:00'
                    url: https://idv.proofage.net/q/AB12cd34Ef
                properties:
                  id:
                    type: string
                  external_id:
                    type:
                      - string
                      - 'null'
                  external_metadata:
                    type:
                      - object
                      - 'null'
                    additionalProperties: {}
                  redirect_url:
                    type:
                      - string
                      - 'null'
                  status:
                    type: string
                  reason:
                    type:
                      - string
                      - 'null'
                  duplicate_check:
                    type: object
                    properties:
                      checked:
                        type: boolean
                      duplicate_count:
                        type: integer
                      duplicates:
                        type: array
                        items:
                          type: object
                          properties:
                            verification_id:
                              type: string
                            external_id:
                              type:
                                - string
                                - 'null'
                            similarity_score:
                              type: number
                            verified_at:
                              type:
                                - string
                                - 'null'
                          required:
                            - verification_id
                            - external_id
                            - similarity_score
                            - verified_at
                    required:
                      - checked
                      - duplicate_count
                      - duplicates
                  erasure:
                    type:
                      - object
                      - 'null'
                    properties:
                      erased_at:
                        type: string
                      scope:
                        type: string
                      reason:
                        type:
                          - string
                          - 'null'
                      requested_via:
                        type:
                          - string
                          - 'null'
                    required:
                      - erased_at
                      - scope
                      - reason
                      - requested_via
                  consent_accepted_at:
                    type:
                      - string
                      - 'null'
                  created_at:
                    type: string
                  updated_at:
                    type: string
                  reauth:
                    type: object
                    properties:
                      reference_verification_id:
                        type:
                          - string
                          - 'null'
                      reference_verified_at:
                        type:
                          - string
                          - 'null'
                    required:
                      - reference_verification_id
                      - reference_verified_at
                  url:
                    type: string
                required:
                  - id
                  - external_id
                  - external_metadata
                  - redirect_url
                  - status
                  - reason
                  - duplicate_check
                  - erasure
                  - consent_accepted_at
                  - created_at
                  - updated_at
                  - url
        '401':
          description: >-
            The request creates a face re-verification
            (`reference_verification_id`) and is not HMAC-signed
            (`MISSING_SIGNATURE`).
          content:
            application/json:
              schema:
                type: object
                examples:
                  - error:
                      code: MISSING_SIGNATURE
                      message: X-HMAC-Signature header is required
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '402':
          description: A live workspace has no payment method.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - code: PAYMENT_METHOD_REQUIRED
                    message: A payment method is required to create verifications.
                    free_verifications_remaining: 0
                    trial_ends_at: '2026-04-03T12:00:00+00:00'
                    trial_active: false
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  free_verifications_remaining:
                    type: integer
                  trial_ends_at:
                    type:
                      - string
                      - 'null'
                  trial_active:
                    type: boolean
                required:
                  - code
                  - message
                  - free_verifications_remaining
                  - trial_ends_at
                  - trial_active
        '404':
          description: >-
            The reference verification does not exist in this workspace
            (`REFERENCE_VERIFICATION_NOT_FOUND`). The answer is the same when it
            exists in another workspace.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - error:
                      code: REFERENCE_VERIFICATION_NOT_FOUND
                      message: The reference verification was not found.
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '422':
          description: >-
            A field is invalid (`message` and `errors` by field), or the
            reference verification cannot be re-checked: it is not `approved`
            (`REFERENCE_NOT_APPROVED`), it is not a document verification
            (`REFERENCE_NOT_SUPPORTED`), or it holds no face to compare with
            because it was erased or its face data was deleted at the end of its
            retention period (`REFERENCE_UNAVAILABLE`).
          content:
            application/json:
              schema:
                examples:
                  - error:
                      code: REFERENCE_NOT_APPROVED
                      message: The reference verification is not approved.
                anyOf:
                  - type: object
                    properties:
                      message:
                        type: string
                      errors:
                        type: object
                        additionalProperties:
                          type: array
                          items:
                            type: string
                    required:
                      - message
                      - errors
                  - type: object
                    properties:
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                          message:
                            type: string
                        required:
                          - code
                          - message
                    required:
                      - error
        '429':
          description: >-
            Ten face re-verifications were already created against this
            reference verification in the last 24 hours, so the 11th is refused
            (`REAUTH_RATE_LIMITED`).
          content:
            application/json:
              schema:
                type: object
                examples:
                  - error:
                      code: REAUTH_RATE_LIMITED
                      message: >-
                        Too many re-checks for this reference verification in 24
                        hours.
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
components:
  schemas:
    StoreVerificationRequest:
      type: object
      properties:
        callback_url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            Where the person's browser is sent after the final screen, an http
            or https URL. Ignored unless the request is HMAC-signed.
          maxLength: 2048
        external_id:
          type:
            - string
            - 'null'
          description: >-
            Your identifier for the person. Ignored unless the request is
            HMAC-signed: the public key alone cannot tie a session to your user.
          maxLength: 255
        external_metadata:
          type:
            - object
            - 'null'
          description: >-
            Free-form data returned in the API and webhooks. Accepted without a
            signature, so treat it as client-supplied.
          additionalProperties: {}
        metadata:
          type:
            - object
            - 'null'
          description: Free-form data kept on the session and not returned to integrations.
          additionalProperties: {}
        reference_verification_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Turns the session into a face re-verification: the ID of an
            approved, document-based verification of the same

            workspace. The person takes a selfie only, and it is compared with
            the face of that verification. The request

            must be HMAC-signed. Not billed.
      title: StoreVerificationRequest
  securitySchemes:
    apiKey:
      type: apiKey
      description: Your workspace public key (pk_test_… or pk_live_…).
      in: header
      name: X-API-Key
    hmacSignature:
      type: apiKey
      description: >-
        HMAC-SHA256 of the request, hex-encoded, keyed with the workspace secret
        key. See API authentication.
      in: header
      name: X-HMAC-Signature

````

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