curl --request POST \
--url https://api.getcargo.io/v1/ai/files/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"folderUuid": "<string>"
}
'{
"files": [
{
"uuid": "<string>",
"workspaceUuid": "<string>",
"userUuid": "<string>",
"name": "<string>",
"isTemporary": true,
"folderUuid": "<string>",
"s3Filename": "<string>",
"openAiFileId": "<string>",
"contentType": "<string>",
"size": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
]
}Upload a file for AI processing
curl --request POST \
--url https://api.getcargo.io/v1/ai/files/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"folderUuid": "<string>"
}
'{
"files": [
{
"uuid": "<string>",
"workspaceUuid": "<string>",
"userUuid": "<string>",
"name": "<string>",
"isTemporary": true,
"folderUuid": "<string>",
"s3Filename": "<string>",
"openAiFileId": "<string>",
"contentType": "<string>",
"size": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request body schema.
Folder identifier to upload into.
Successful response
Uploaded files.
Show child attributes
Was this page helpful?