Skip to main content
GET
Get a file
Returns metadata, not contents. Download the file with GET /experimental/files/{id}/content.

Authorizations

Authorization
string
header
required

Requires an API key. See the Authentication guide.

Path Parameters

file_id
string
required

Response

200 - application/json

File details.

id
string
required
created_at
string<date-time>
required
filename
string
required
size_bytes
integer
required
purpose
enum<string>
required
Available options:
input,
output
type
string
default:file
Allowed value: "file"
mime_type
string | null
task_id
string | null
project_id
string | null
platform
enum<string>
default:api
Available options:
api,
mcp,
web,
desktop,
mobile