Skip to main content
PUT
/
chats
/
media
/
upload
Upload a file
curl --request PUT \
  --url https://api.raccoonai.tech/chats/media/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "key": "<string>",
  "size": 123,
  "contentType": "<string>",
  "filename": "<string>",
  "uploadedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key from Raccoon AI

Body

multipart/form-data
file
file
required

Response

200 - application/json

File uploaded

key
string

Use in CreateTaskRequest.files

size
integer
contentType
string
filename
string
uploadedAt
string<date-time>