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

# Accept consent

> Records the end-user's acceptance of the data processing consent.
Must be called before uploading media or submitting the verification.



## OpenAPI

````yaml /openapi.json post /verifications/{verification}/consent
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/{verification}/consent:
    post:
      tags:
        - Verification
      summary: Accept consent
      description: |-
        Records the end-user's acceptance of the data processing consent.
        Must be called before uploading media or submitting the verification.
      operationId: acceptConsent
      parameters:
        - name: verification
          in: path
          required: true
          description: The verification ID
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StoreVerificationConsentRequest'
      responses:
        '200':
          description: Consent is recorded; media can now be uploaded.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - consent_version_id: 1
                    consent_accepted_at: '2026-03-19T12:01:00+00:00'
                properties:
                  consent_version_id:
                    type: integer
                  consent_accepted_at:
                    type: string
                required:
                  - consent_version_id
                  - consent_accepted_at
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    StoreVerificationConsentRequest:
      type: object
      properties:
        consent_version_id:
          type: integer
        text_sha256:
          type: string
          pattern: ^[a-f0-9]{64}$
          minLength: 64
          maxLength: 64
      required:
        - consent_version_id
        - text_sha256
      title: StoreVerificationConsentRequest
  responses:
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors
  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.