Files
Upload File
POST/api/v1/beta/files
List Files
GET/api/v1/beta/files
Delete File
DELETE/api/v1/beta/files/{file_id}
Read File Content
GET/api/v1/beta/files/{file_id}/content
ModelsExpand Collapse
File = object { id, name, project_id, 11 more }
File = object { id, name, project_id, 11 more }
Schema for a file.
expires_at: optional string
expires_at: optional string
The expiration date for the file. Files past this date can be deleted.
formatdate-time
purpose: optional string
purpose: optional string
The intended purpose of the file (e.g., ‘user_data’, ‘parse’, ‘extract’, ‘split’, ‘classify’)
FileQueryResponse = object { items, next_page_token, total_size }
FileQueryResponse = object { items, next_page_token, total_size }
Paginated list of files.
items: array of object { id, name, project_id, 5 more }
items: array of object { id, name, project_id, 5 more }