V2 Files

Upload file (v2)

post

Uploads exactly one file using a multipart part named file. The backend generates the fileId and returns it for later record references.

Body
objectOptional
Responses
chevron-right
200

File uploaded successfully

application/json
fileIdstring · uuidOptional
post
/api/v2/files

Get file storage info (v2)

get

Returns the storage quota and current usage for the active workspace. Both values are expressed in bytes.

Responses
chevron-right
200

Storage information retrieved successfully

application/json
maxSizeinteger · int64Optional
usedSizeinteger · int64Optional
get
/api/v2/files/storage-info

Download file (v2)

get

Downloads the raw file bytes for one fileId. Use this when an agent needs the binary content itself rather than just a reference.

Path parameters
fileIdstring · uuidRequired
Responses
chevron-right
200

File downloaded successfully

application/octet-stream
string · binaryOptional
get
/api/v2/files/{fileId}

Delete file (v2)

delete

Deletes one file from workspace storage. Any record fields still referencing that fileId will keep the stale reference until updated separately.

Path parameters
fileIdstring · uuidRequired
Responses
chevron-right
200

File deleted successfully

application/json
fileIdstring · uuidOptional
deletedbooleanOptional
delete
/api/v2/files/{fileId}

Last updated