Files
Upload File
List Files
Delete File
Read File Content
ModelsExpand Collapse
File = object { id, name, project_id, 11 more }
Schema for a file.
id: string
Unique identifier
project_id: string
The ID of the project that the file belongs to
created_at: optional string
Creation datetime
data_source_id: optional string
The ID of the data source that the file belongs to
expires_at: optional string
The expiration date for the file. Files past this date can be deleted.
external_file_id: optional string
The ID of the file in the external system
file_size: optional number
Size of the file in bytes
file_type: optional string
File type (e.g. pdf, docx, etc.)
last_modified_at: optional string
The last modified time of the file
permission_info: optional map[map[unknown] or array of unknown or string or 2 more]
Permission information for the file
purpose: optional string
The intended purpose of the file (e.g., 'user_data', 'parse', 'extract', 'split', 'classify')
resource_info: optional map[map[unknown] or array of unknown or string or 2 more]
Resource information for the file
updated_at: optional string
Update datetime
FileCreate = object { name, data_source_id, external_file_id, 5 more }
Schema for creating a file.
name: string
Name that will be used for created file. If possible, always include the file extension in the name.
data_source_id: optional string
The ID of the data source that the file belongs to
external_file_id: optional string
The ID of the file in the external system
file_size: optional number
Size of the file in bytes
last_modified_at: optional string
The last modified time of the file
permission_info: optional map[map[unknown] or array of unknown or string or 2 more]
Permission information for the file
resource_info: optional map[map[unknown] or array of unknown or string or 2 more]
Resource information for the file
storage_type: optional "ephemeral" or "permanent" or string
Storage type for the file. Valid values: 'Ephemeral', 'Permanent' (no expiration). If not specified, defaults to permanent storage.
UnionMember0 = "ephemeral" or "permanent"
Storage type for the file. Valid values: 'Ephemeral', 'Permanent' (no expiration). If not specified, defaults to permanent storage.
PresignedURL = object { expires_at, url, form_fields }
Schema for a presigned URL.
expires_at: string
The time at which the presigned URL expires
url: string
A presigned URL for IO operations against a private file
form_fields: optional map[string]
Form fields for a presigned POST request