Attach a knowledge base document to an agent, allowing the agent to query it during calls.
Your API key for authentication.
Must be application/json.
Request Body
The ID of the document to attach (format: doc_[a-f0-9]{12,}).
The ID of the agent to attach to (format: agent_[a-f0-9]{12,}).
Permissions
kb:update (admin, agent_manager)
Response
Indicates if the attachment was successful.
Human-readable success message.
{
"documentation_id": "doc_a1b2c3d4e5f6",
"agent_id": "agent_b2c3d4e5f6a7"
}
{
"success": true,
"message": "Document 'Product Manual' attached to agent 'Sales Rep'"
}
Errors
Document or agent not found.
Document or agent belongs to different organization.