Content

Get File Content

Returns information about a specific file. that can be used across - Assistants API, Batch API This is the equivalent of GET https://api.openai.com/v1/files/{file_id}/content

Supports Identical Params as: https://platform.openai.com/docs/api-reference/files/retrieve-contents

Example Curl

curl http://localhost:4000/v1/files/file-abc123/content         -H "Authorization: Bearer sk-1234"

GET/{provider}/v1/files/{file_id}/content
Authorization
Path parameters
file_id*File Id
provider*Provider
Response

Successful Response

Body
any
Request
const response = await fetch('/{provider}/v1/files/{file_id}/content', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}