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

# Download media

> Streams the bytes of a selfie or document image belonging to the
verification, served by ProofAge under the same API key and HMAC
signature as every other endpoint.

The response body is the image itself; `Content-Type` carries its MIME
type. Media that has been purged, has passed its retention window, or
does not belong to this verification answers 404.



## OpenAPI

````yaml /openapi.json get /verifications/{verification}/media/{media}
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}/media/{media}:
    get:
      tags:
        - Media
      summary: Download media
      description: |-
        Streams the bytes of a selfie or document image belonging to the
        verification, served by ProofAge under the same API key and HMAC
        signature as every other endpoint.

        The response body is the image itself; `Content-Type` carries its MIME
        type. Media that has been purged, has passed its retention window, or
        does not belong to this verification answers 404.
      operationId: downloadVerificationMedia
      parameters:
        - name: verification
          in: path
          required: true
          description: The verification ID
          schema:
            type: string
            format: uuid
        - name: media
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The media file itself. Content-Type carries its MIME type.
          content:
            application/json:
              schema:
                type: object
            image/jpeg:
              schema:
                type: string
                format: binary
        '404':
          description: >-
            Media does not belong to this verification, or is no longer
            available.
          content:
            application/json:
              schema:
                type: object
                examples:
                  - error:
                      code: MEDIA_NOT_FOUND
                      message: Media not found.
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  responses:
    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.