SpyBara
Go Premium

cli/resources/files/methods/content/index.md 2026-06-09 06:34 UTC to 2026-06-10 15:48 UTC

This page contains 25 additions and 0 deletions.

2026
Wed 10 15:48

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