Files API
Get File Content
Download the content of a file.
GET
/
v1
/
files
/
{file_id}
/
content
curl https://gateway.bud.studio/v1/files/file-abc123/content \
-H "Authorization: Bearer YOUR_API_KEY" \
-o downloaded_file.jsonl
Returns the raw file content with appropriate Content-Type header
curl https://gateway.bud.studio/v1/files/file-abc123/content \
-H "Authorization: Bearer YOUR_API_KEY" \
-o downloaded_file.jsonl
Returns the raw file content with appropriate Content-Type header
Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer authentication header |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| file_id | string | Yes | The ID of the file to download |
Supported Providers
OpenAI
File management for Batch API and Assistants
Azure OpenAI
Enterprise file storage with compliance
⌘I
curl https://gateway.bud.studio/v1/files/file-abc123/content \
-H "Authorization: Bearer YOUR_API_KEY" \
-o downloaded_file.jsonl
Returns the raw file content with appropriate Content-Type header