Sample - OpenAI API
GET/files/{file_id}/content

Retrieve file content

Retrieves the contents of a specific uploaded file. Use file_id to identify the file whose content you want to download.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
file_idstringrequired
The identifier of the file whose content to retrieve.

1 status code
200Returns the contents of the specified file.

Error handling

file_id must identify the file whose content you want to download. Provide the file identifier rather than the filename.