curl --request POST \
--url http://localhost:8080/api/calls/{callId}/tool-calls/result \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"content": "Order #12345 found - Status: Shipped, Expected delivery: Tomorrow",
"tool_call_id": "tool-call-123"
}
'{
"message": "Tool call result added successfully",
"status": "success",
"error": null,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"call_id": "call-456",
"agent_id": "agent-123",
"organization_id": "org-789",
"transcript_with_tool_calls": [
{
"content": "Order #12345 found - Status: Shipped, Expected delivery: Tomorrow",
"role": "tool_call_result",
"tool_call_id": "tool-call-123"
}
]
}
}Adds a tool call result to a call (current behavior).
curl --request POST \
--url http://localhost:8080/api/calls/{callId}/tool-calls/result \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"content": "Order #12345 found - Status: Shipped, Expected delivery: Tomorrow",
"tool_call_id": "tool-call-123"
}
'{
"message": "Tool call result added successfully",
"status": "success",
"error": null,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"call_id": "call-456",
"agent_id": "agent-123",
"organization_id": "org-789",
"transcript_with_tool_calls": [
{
"content": "Order #12345 found - Status: Shipped, Expected delivery: Tomorrow",
"role": "tool_call_result",
"tool_call_id": "tool-call-123"
}
]
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication