Sample Python guide demonstrating how to query and paginate through agent executions, with support for filters, logging, and best practices.
agent_id
.
agent_id
(UUID, required): The ID of your agent.page_number
(integer, default 1): Page index, starting at 1. Must be ≥ 1.page_size
(integer, default 20, max 50): Results per request.status
(enum): Filter by execution status (queued
, in-progress
, completed
, failed
, etc.)call_type
(enum): inbound
or outbound
provider
(enum): e.g., twilio
, plivo
, websocket
, web-call
answered_by_voice_mail
(boolean): Filter calls answered by voicemailbatch_id
(string): Narrow results by batchfrom
(string, date-time): Filter by starting timestampto
(string, date-time): Filter by ending timestampBenefit | Description |
---|---|
Complete History | Retrieve full call/execution logs for audits, analytics, or dashboards. |
Filtering & Efficiency | Use filters to slice data by status, provider, call type, date, batch, etc. |
/v2/agent/{agent_id}/executions
with pagination and keep fetching while has_more == true
.
provider=twilio
, call_type=inbound
, status=completed
and more.
50
results per page is the maximum allowed. Default is 20
.
extracted_data
, with your custom JSON fields—based on your Extraction prompt setup.