Skip to main content
POST
/
v1
/
tools
/
{toolId}
/
resources
Cargar un recurso de conocimiento
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string<uuid>
required

Identificador del workspace multi-tenant.

Path Parameters

toolId
string
required

Identificador interno de la tool (snake_case)

Body

multipart/form-data
file
file
required
type
enum<string>
Available options:
document,
media,
file
title
string
metadata
object

Response

Recurso aceptado para procesamiento

resourceId
string<uuid>
required
status
enum<string>
required
Available options:
queued,
processing,
completed,
failed
toolId
string
message
string