POST /v1/agents/{id}/knowledge
POST
/v1/agents/{id}/knowledge
const url = 'https://seu-endereco-da-api/v1/agents/example/knowledge';const form = new FormData();form.append('file', 'file');form.append('name', 'example');form.append('text', 'example');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/agents/example/knowledge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@file \ --form name=example \ --form text=examplePermissão que a Chave de acesso precisa: Gerenciar agentes de IA (agents:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
file
Knowledge document (text/plain, pdf, …)
string format: binary
name
string
text
string
object
file
Knowledge document (text/plain, pdf, …)
string format: binary
name
string
text
string
Example generated
{ "file": "binary", "name": "example", "text": "example"}Responses
Seção intitulada “Responses”Media typeapplication/json
object
id
required
string
name
required
string
kind
required
string
status
required
string
error
object
createdAt
required
string format: date-time
aiAction
Present on the list: what the AI did to create this source, if it did.
object
Example generated
{ "id": "example", "name": "example", "kind": "example", "status": "example", "error": {}, "createdAt": "2026-04-15T12:00:00Z", "aiAction": {}}