Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Retrieve file content

$ openai files content
GET
/files/{file_id}/content

Returns a response containing the contents of the specified file.

Retrieve file content

openai files content \
  --api-key 'My API Key' \
  --file-id file_id
Parameters
--file-id: string

The ID of the file to use for this request.

Returns
unnamed_schema_0: file path
Returns Examples