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/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" }
API key from Raccoon AI
File uploaded
Use in CreateTaskRequest.files
Was this page helpful?