Skip to main content
POST
/
api
/
knowledge-base
/
attach
Attach to Agent
curl --request POST \
  --url https://api.example.com/api/knowledge-base/attach \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "<string>",
  "documentation_id": "<string>"
}
'
{
  "success": true,
  "message": "Document 'FAQ' attached to agent 'Sales Bot'"
}
Attach a knowledge base document to an agent, allowing the agent to reference it during calls.
agent_id
string
required
The ID of the agent.
documentation_id
string
required
The ID of the document to attach.

Response

success
boolean
Indicates success.
{
  "success": true,
  "message": "Document 'FAQ' attached to agent 'Sales Bot'"
}