SpyBara
Go Premium

cli/resources/files/methods/content/index.md 2026-07-10 23:02 UTC to 2026-07-12 06:58 UTC

1 added, 1 removed.

2026
Wed 15 00:01 Tue 14 06:58 Mon 13 15:59 Sun 12 06:58 Fri 10 23:02 Thu 9 20:58 Tue 7 08:02

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