Skip to main content
PUT
/
media
/
upload
Upload a file
curl --request PUT \
  --url https://api.raccoonai.tech/media/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'key=<string>' \
  --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
key
string
required

Storage key path for the file (e.g., {session_id}/filename.txt)

file
file
required

The file to upload

Response

200 - application/json

File uploaded

key
string

Use in CreateTaskRequest.files

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