Skip to main content
GET
Get agent executions list (per-call records)
Retrieve per-call records (executions) for agents. This endpoint returns detailed call-level records (transcripts, audio paths, durations, dispositions, etc.) and supports multiple filters.

API Endpoint

GET /api/v1/global/agents/executions/list Content-Type: application/json Authentication: Required (API token validated by middleware apiauth.verifyToken). Provide token via header token or api_access_token.

Query Parameters

Note: The handler accepts parameters from req.query (GET). The underlying implementation also supports similar filters for POST bodies in the agent controller, but this global route is exposed as GET.

Example Requests

Get executions for an agent (GET)

Filter by calling number (partial)

Filter by audio availability and transcript

Filter by disposition and sentiment

Successful Response (200)

Returns an object with datalist containing call execution records. Each record includes many fields; the key fields are listed below. The controller formats durations and dates (e.g., total_duration as 1h:2m:3s, date, time).

Field Notes

  • total_duration is formatted by the controller as Xh:Ym:Zs or Mm:Ss style for readability (the DB stores seconds).
  • RETURN_DATA is filtered to remove some internal fields; cost_breakdown may be moved into RETURN_DATA.cost_breakdown if present.
  • FILE_PATH is the URL to audio recording (if available).
  • TRANSCRIPT may be null or empty if speech-to-text was not produced.
  • VOICE_QUALITY_FEEDBACK is a numeric rating stored for voice analysis (e.g., upvote/downvote).
  • agent_name is provided via join with agent details when available.

Pagination

  • The endpoint accepts page and limit to paginate results. The controller applies limit and offset when querying.
  • Note: the current implementation returns only datalist (array) and does not include pagination metadata (totalRecords, totalPages) in the response. Use page and limit to page through results.

Error Responses

400 Bad Request

401 Unauthorized

500 Internal Server Error

Important Notes & Recommendations

  • Use narrow date ranges (≤ 3 months) for faster queries. The underlying controller defaults to 1 month if fromdate/todate are omitted.
  • For more aggregate/grouped metrics use /api/v1/global/agents/call-history (agent-level summary).
  • For export of conversational data (Excel), the system provides a separate endpoint (downloadConversationalData) which streams an XLSX.
  • If you need pagination metadata added to the response, we can update the controller to include totalRecords and totalPages.

Headers

token
string
required

API token for authentication

Query Parameters

agent_id
integer
calling_number
string
provider_number
string
status
string
fromdate
string
todate
string
page
integer
limit
integer
audio_url
string
transcript
string

Response

Executions list retrieved

datalist
object[]