v1

latestOpenAPI 3.0.2MIT2026-07-24141061.6 KB
Files

Retrieve file

Returns information about a specific file.

get/files/{file_id}

Path parameters

file_idstring required

The ID of the file to return information about.

Response

Success. The File object matching the specified ID.

idstring

The file identifier.

objectstring

The object type, which is always file.

bytesinteger

The size of the file, in bytes.

created_atstring

RFC 3339 datetime string for when the file was created.

expires_atstring

RFC 3339 datetime string for when the file expires. Currently, this is 30 days after the file is created.

filenamestring

The name of the file.

purposestring

The intended purpose of the file. Supported values are batch, batch-output, and batch-error.