Skip to main content
POST
/
ai
/
files
/
upload
Upload file
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body schema.

folderUuid
string

Folder identifier to upload into.

Response

Successful response

files
Files · object[]
required

Uploaded files.