API by router
Agent routing
POST
instance_id*Instance IdFormat
uuidapplication/json- body
context?Handoff context (caller info, request summary, etc.)
conversation_id?string|nullcreate_workflow_record?Create Workflow RecordDefault
truecustomer_id*Customer IdFormat
uuidmessage*MessageLength
length <= 8000target_instance_id?|nulltarget_role?|Agent role — must match agent_config.agent.role
Successful Response
application/json- response
response?string|nullrouted_to*Routed Totarget_instance_id*Target Instance Idworkflow_record_id?string|nullcurl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/route-to-agent' \ -H 'Content-Type: application/json' \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "message": "string"}'Example Response
{ "response": "string", "routed_to": "string", "target_instance_id": "string", "workflow_record_id": "string"}