Skip to main content
POST
Attach a knowledge base document to an agent, allowing the agent to query it during calls.

Headers

string
required
Your API key for authentication.
string
required
The organization ID.
string
required
Must be application/json.

Request Body

string
required
The ID of the document to attach (format: doc_[a-f0-9]{12,}).
string
required
The ID of the agent to attach to (format: agent_[a-f0-9]{12,}).

Permissions

  • kb:update (admin, agent_manager)

Response

boolean
Indicates if the attachment was successful.
string
Human-readable success message.

Errors

object
Document or agent not found.
object
Document or agent belongs to different organization.