Files
Download file
GET
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.
ApiKeyAuthheader
Authorization<token>file_id*stringThe id of a file.
The file content
response?fileapplication/jsonlFormat
binarycurl -X GET 'https://api.ohmygpt.com/v1/files/string/content'Example Response
"string"Still stuck? Live chat · [email protected] · Telegram group
Delete file DELETE
Delete an uploaded file. Batches already created from it are not affected. Batch output and error files cannot be deleted and answer `400`.
List files GET
Your uploaded files that have not expired. Batch result files are not listed; read them by ID. Requires an admin API key or the console session. Other keys get 403 and can still read a file by its ID.