Retrieve file content
GEThttps:/api.openai.com/v1/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.
Response
The file content.
Example request
1 curl https://api.openai.com/v1/files/file-abc123/content \2 -H "Authorization: Bearer $OPENAI_API_KEY" > file.jsonl
Built with