Get tool call insights
Retrieve how each of your tools performed over a date range: how many conversations called it, how long it took to respond, and how often it succeeded, failed, or timed out. Only tools you supplied are reported. Figures are rolled up once a day, so the most recent day may still be incomplete.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
First day to include, as YYYY-MM-DD in the business time zone. The boundary is inclusive.
Last day to include, as YYYY-MM-DD in the business time zone. The boundary is inclusive. start_date and end_date may span at most 30 days, counting both the first and last day.
Return only this tool, named as you registered it. Omit to get every tool that was called in the range.
Meta Business Agent API version
The tool call insights for the requested range
The tool call insights for the requested range
Bad request
Unauthorized
Forbidden
Not found
Too many requests
Server error
GET /insights/tool_calls?start_date=text&end_date=text HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"avg_latency_ms": 412.3,
"error_rate": 0.03,
"success_rate": 0.97,
"thread_count": 310,
"timeout_rate": 0.01,
"tool_name": "get_order_status"
}
]
}Last updated
Was this helpful?