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

# Retrieve file content

> Download a file’s contents. Redirects to a short-lived presigned URL.



## OpenAPI

````yaml /api/openapi.json get /openai/v1/files/{id}/content
openapi: 3.1.0
info:
  title: Liquid inference API
  version: 1.0.0
  description: >-
    OpenAI-compatible inference API plus native endpoints.


    **Authentication** — Every request needs an API key, sent as a bearer token:
    `Authorization: Bearer $LIQUID_API_KEY`. Create a key on the [API
    keys](https://console.liquid.ai/dashboard/api-keys) page of Liquid Console;
    it is shown once.


    **Batch uploads** — Batch input files are uploaded through a presigned URL
    from `POST /v1/files`; see the [Batch
    guide](https://docs.liquid.ai/api/guides/batch).


    **Decision models** — `POST /decisions/v1/systemone` implements TypeSafe's
    System One API for typed Choice, Score, and Noul decisions from decision
    models such as `d1.1` and `d1-ultra`.
servers:
  - url: https://api.liquid.ai
security:
  - apiKey: []
tags:
  - name: Models
  - name: Chat
  - name: Decision models
  - name: Files
  - name: Batches
  - name: Large uploads
paths:
  /openai/v1/files/{id}/content:
    get:
      tags:
        - Files
      summary: Retrieve file content
      description: Download a file’s contents. Redirects to a short-lived presigned URL.
      operationId: retrieve-file-content
      parameters:
        - name: id
          in: path
          required: true
          description: The file id.
          schema:
            type: string
            example: file_abc123
      responses:
        '200':
          description: Successful response.
          content:
            application/jsonl:
              schema:
                type: string
              example: >-
                {"id": "batch_req_abc", "custom_id": "task-1", "response":
                {"status_code": 200, "body": {"id": "chatcmpl-1", "choices":
                [{"index": 0, "message": {"role": "assistant", "content":
                "Hi!"}, "finish_reason": "stop"}]}}, "error": null}

                {"id": "batch_req_def", "custom_id": "task-2", "response":
                {"status_code": 200, "body": {"id": "chatcmpl-2", "choices":
                [{"index": 0, "message": {"role": "assistant", "content":
                "Hello!"}, "finish_reason": "stop"}]}}, "error": null}
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl -L https://api.liquid.ai/openai/v1/files/file_abc123/content \
              -H "Authorization: Bearer $LIQUID_API_KEY"
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        A Liquid API key from the [API
        keys](https://console.liquid.ai/dashboard/api-keys) page of Liquid
        Console, sent as `Authorization: Bearer $LIQUID_API_KEY`.

````

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