{
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"description": "Filter by agent ID, e.g. agent_abc123. Comma-separate multiple IDs."
},
"status": {
"type": "string",
"description": "Filter by call status. One of: initiated, received, sent, did_not_pick, busy, failed, no_answer, completed, created, cancelled"
},
"sentiment": {
"type": "string",
"description": "Filter by post-call-analysis sentiment. One of: positive, neutral, negative, unknown. Written by post-call analysis after the call ends, not by the call itself, so any call that has not been analysed is \"unknown\". Filtering on \"positive\" therefore also excludes every call that simply has not been analysed yet."
},
"start_date": {
"type": "string",
"description": "ISO 8601 date — only calls on/after this date"
},
"end_date": {
"type": "string",
"description": "ISO 8601 date — only calls on/before this date"
},
"end_reason": {
"type": "string",
"description": "Filter by hang-up reason"
},
"page": {
"type": "string",
"description": "Page number, default 1"
},
"limit": {
"type": "string",
"description": "Results per page, default 10, max 50"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}