Returns the contents of the specified file.

GET /files/{file_id}/content

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 \
 --request GET 'https://api.openai.com/v1/files/{file_id}/content' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
string