cURL
curl --request POST \ --url https://agents.studio.getsupervisor.ai/v1/tools/{toolId}/resources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --header 'x-workspace-id: <x-workspace-id>' \ --form file='@example-file' \ --form type=document \ --form 'title=<string>' \ --form 'metadata={}'
{ "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "queued", "toolId": "<string>", "message": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Identificador del workspace multi-tenant.
Identificador interno de la tool (snake_case)
document
media
file
Recurso aceptado para procesamiento
queued
processing
completed
failed