SpyBara
Go Premium

cli/resources/files/methods/content/index.md 2026-05-05 23:00 UTC to 2026-05-07 21:57 UTC

This page contains 25 additions and 0 deletions.

2026
Thu 7 21:57 Tue 19 06:34

Retrieve file content

$ openai files content

get /files/{file_id}/content

Returns the contents of the specified file.

Parameters

  • --file-id: string

    The ID of the file to use for this request.

Returns

  • unnamed_schema_0: file path

Example

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