Get agent event insights
Retrieve per-event-type volume, completion, and latency for the events sent to the agent over a date range, broken down by the event type supplied. 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 Pacific Time, which may differ from your own time zone. The boundary is inclusive.
Last day to include, as YYYY-MM-DD in Pacific Time, which may differ from your own 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 event type, named as you sent it. Omit to get every event type received in the range.
Meta Business Agent API version
The agent event insights for the requested range
The agent event insights for the requested range
Mean time in milliseconds from receiving an event to the agent finishing with it, across every event type in the range. Null when nothing ran end to end
842.5Bad request
Unauthorized
Forbidden
Not found
Too many requests
Server error
GET /insights/agent_events?start_date=text&end_date=text HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"avg_e2e_latency_ms": 842.5,
"data": [
{
"avg_e2e_latency_ms": 842.5,
"event_type": "order_update",
"received": 1200,
"successfully_processed": 1150
}
]
}Last updated
Was this helpful?