Skip to main content
POST
/
api
/
calls
/
{callId}
/
tool-calls
/
result
cURL
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"
      }
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Path Parameters

callId
string
required

Body

application/json

Tool call result request body

content
string
required

Tool call result content

tool_call_id
string
required

Tool call identifier

Response

200 - application/json

Tool call result added successfully

message
string
status
string
error
string
data
object