Attach Tool
Agents
Attach Tool
Attach a tool to an agent.
POST
Attach Tool
Authorizations
Workspace API key (e.g. kej_live_...)
Path Parameters
Body
application/json
Attach a tool to an agent.
Tool name — custom tool name or builtin name
Tool ID — required for custom HTTP tools
Channels where the tool is active: 'voice:in-call', 'voice:post-call', 'whatsapp'
Tool-specific configuration. The shape depends on the tool — see the Tools guide for the full schema of each builtin.
Examples for selected builtins:
agent_transfer — transfer the live call to a different persona:
{
"targets": [
{
"key": "billing",
"persona_id": "<persona-uuid>",
"voice_config_id": "<voice-config-uuid>",
"when_to_use": "Caller has questions about invoices, refunds, or payments."
},
{
"key": "tech_support",
"persona_id": "<persona-uuid>",
"when_to_use": "Caller is reporting a technical issue with the product."
}
]
}create_call — create a new outbound call from inside a conversation:
{
"default_persona_id": "<persona-uuid>",
"default_context": "Follow-up call about the contact's inquiry.",
"allow_persona_override": false
}
