Retrieve file content

GET /files/{file_id}/content

Returns the contents of the specified file.

Path parameters

  • file_id string Required

    The ID of the file to use for this request.

Responses

  • 200 application/json

    OK

GET /files/{file_id}/content
curl \
 -X GET https://api.openai.com/v1/files/{file_id}/content \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
"string"