Agent Action Analytics
GET /v1/analytics/agent-actionsParameters
Parameter
Type
Default
Description
Action Types
Value
Description
Status Values
Value
Description
Response
Example
Last updated
GET /v1/analytics/agent-actionsLast updated
{
"period": {
"from": "2026-03-01T00:00:00.000Z",
"to": "2026-03-12T00:00:00.000Z"
},
"interval": "day",
"data": [
{
"date": "2026-03-01",
"total": 15,
"by_status": {
"auto_executed": 10,
"pending_approval": 3,
"manually_approved": 2
},
"by_action_type": {
"response_generation": 8,
"booking_modification": 4,
"general_inquiry": 3
}
}
]
}# All agent actions, weekly
curl "https://api.opally.com/v1/analytics/agent-actions?from=2026-01-01&interval=week" \
-H "Authorization: Bearer op_live_your_api_key_here"
# Only auto-executed booking modifications
curl "https://api.opally.com/v1/analytics/agent-actions?action_type=booking_modification&status=auto_executed" \
-H "Authorization: Bearer op_live_your_api_key_here"const response = await fetch(
'https://api.opally.com/v1/analytics/agent-actions?from=2026-01-01&interval=month',
{ headers: { 'Authorization': 'Bearer op_live_your_api_key_here' } }
);
const { data } = await response.json();
data.forEach(period => {
const autoRate = (period.by_status.auto_executed || 0) / period.total;
console.log(`${period.date}: ${(autoRate * 100).toFixed(1)}% auto-executed`);
});