OhMyGPT
Files

Download file

GET
/v1/files/{file_id}/content

The file's content as application/jsonl. For a batch output or error file, OhMyGPT fetches it from the provider on each request and keeps no copy.

Authorization

ApiKeyAuth
headerAuthorization<token>

Path Parameters

file_id*string

The id of a file.

Response Body

The file content

response?fileapplication/jsonl
Formatbinary
Example Request
curl -X GET 'https://api.ohmygpt.com/v1/files/string/content'
Example Response
"string"

Was this page helpful?

Still stuck? Live chat · [email protected] · Telegram group