Skip to main content
GET
Get file metadata

Authorizations

Authorization
string
header
required

The workspace API key (pdk_…) from Integrations → Built-in in the pre.dev dashboard.

Path Parameters

id
string
required

Response

The file.

File metadata. id and filename are always present. The other fields follow one of two styles: object: "file", bytes, purpose and a Unix created_at, or type: "file", size_bytes, mime_type, downloadable and an ISO created_at.

id
string
required

Use it in a file content part as file_id.

filename
string
required
object
string
Allowed value: "file"
type
string
Allowed value: "file"
bytes
integer
size_bytes
integer
mime_type
string
purpose
string
created_at
downloadable
boolean

Whether GET /v1/files/{id}/content can return the bytes.