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

# Get a file

> Returns metadata plus a fresh signed `url`. Fetch again when the URL expires rather than storing it.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/files/{id}
openapi: 3.1.0
info:
  title: Chipper Platform API
  version: '2026-02-20'
  description: >-
    Payouts, collections, and FX across African rails — bank, mobile money, and
    stablecoins — through one API.
servers:
  - url: https://sandbox-api.platform.chipper.ai
    description: Sandbox (sk_test_ keys — simulated rails, no real money)
  - url: https://api.platform.chipper.ai
    description: Production (sk_live_ keys)
security:
  - bearerAuth: []
paths:
  /v1/files/{id}:
    get:
      tags:
        - Files
      summary: Get a file
      description: >-
        Returns metadata plus a fresh signed `url`. Fetch again when the URL
        expires rather than storing it.
      parameters:
        - schema:
            type: string
            description: File id.
            example: file_q7vei435zifs51ia0lqr
          required: true
          name: id
          in: path
      responses:
        '200':
          description: The file with a signed download URL.
          content:
            application/json:
              schema:
                type: object
                properties:
                  file:
                    $ref: '#/components/schemas/File'
                required:
                  - file
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: unauthorized
                message: Invalid API key
                requestId: req_q7vei435zifs51ia0lqr
        '404':
          description: No such resource in this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: not_found
                message: File not found
                requestId: req_q7vei435zifs51ia0lqr
      security:
        - bearerAuth: []
components:
  schemas:
    File:
      type: object
      properties:
        id:
          type: string
          example: file_q7vei435zifs51ia0lqr
        purpose:
          type: string
          example: dispute.evidence
        filename:
          type: string
          example: delivery-receipt.pdf
        contentType:
          type: string
          example: application/pdf
        size:
          type: integer
          description: Bytes.
          example: 48213
        url:
          type: string
          format: uri
          description: >-
            Short-lived signed download URL (15 min to 24 h depending on
            purpose). Present on upload and get, omitted in lists.
        createdAt:
          type: string
          format: date-time
          example: '2026-08-01T09:12:44.000Z'
      required:
        - id
        - purpose
        - filename
        - contentType
        - size
        - createdAt
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable machine-readable code.
        message:
          type: string
          description: Human-readable explanation.
        requestId:
          type: string
          description: Echoed in the x-request-id response header — quote it to support.
      required:
        - error
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `sk_test_…` (sandbox) or `sk_live_…` (production).'

````