Skip to main content
GET
/
api
/
calls
/
get_tool_calls
/
{call_id}
Get Tool Calls During Call
curl --request GET \
  --url https://voiceagent.infers.co/api/calls/get_tool_calls/{call_id} \
  --header 'Authorization: <api-key>'
{
  "call_id": "abc123",
  "tool_calls": [
    {
      "functionName": "getCurrentWeather",
      "arguments": {
        "location": "New York"
      },
      "response": {
        "temperature": "12°C",
        "condition": "Sunny"
      },
      "timestamp": "2025-04-11T10:03:20Z",
      "status": "success"
    },
    {
      "functionName": "appendToGoogleSheet",
      "arguments": {
        "sheetId": "sheet123",
        "values": [
          "John",
          "Signed Up",
          "2025-04-11"
        ]
      },
      "response": {
        "status": "ok"
      },
      "timestamp": "2025-04-11T10:05:47Z",
      "status": "success"
    }
  ]
}

Get Tool Calls

Use this endpoint to fetch a list of all tool or function calls made by the AI during a specific call. Tool calls are typically used to access external systems like weather APIs, databases, Google Sheets, internal APIs, and more. Each entry will include the function name, arguments used, response (if any), and status. You can use this data to audit tool usage, debug issues, or trigger downstream actions based on tool invocations.

Authorizations

Authorization
string
header
required

API key for authentication. Email vaibhav@infer.so to get your API key

Path Parameters

call_id
string
required

The unique ID of the call.

Response

Successful Response

call_id
string
required
tool_calls
object[]
required

List of all tool calls made during the call.