Uploads a file to include with a turn. Returns a file reference to use in the files array when starting a turn.
files
cURL
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" }
API key from Raccoon AI
Storage key path for the file (e.g., {session_id}/filename.txt)
{session_id}/filename.txt
The file to upload
File uploaded
Use in CreateTaskRequest.files
Was this page helpful?