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

# Get active consent

> Returns the currently active consent version that must be presented to and accepted by the end-user.



## OpenAPI

````yaml /openapi.json get /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:
  /consent:
    get:
      tags:
        - Workspace
      summary: Get active consent
      description: >-
        Returns the currently active consent version that must be presented to
        and accepted by the end-user.
      operationId: getConsent
      responses:
        '200':
          description: >-
            The active consent version. Show the text at url, then send id and
            text_sha256 back when accepting.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - id: 1
                    version: 2
                    text_sha256: >-
                      9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
                    url: https://app.proofage.net/consent
                properties:
                  id:
                    type: integer
                  version:
                    type: integer
                  text_sha256:
                    type: string
                  url:
                    type: string
                required:
                  - id
                  - version
                  - text_sha256
                  - url
components:
  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.