LemuAIDocs

Agents · 3 min read

List Calls

List the calls (runs) made or received by one voice agent

Open in ChatGPTOpen in ClaudeMarkdown

Returns the calls for one voice agent, newest first, a page at a time. Each call is called a run. Use it to check whether a call you triggered has finished and what the agent captured.

If you need each result as soon as a call ends, add a Webhook node to the agent instead of polling this endpoint.

GET/api/v1/workflow/{workflow_id}/runs

Path parameters#

NameTypeRequiredDescription
workflow_idintegerYesThe agent's id from List agents.

Query parameters#

NameTypeRequiredDescription
pageintegerNoPage number, starting at 1. Default 1.
limitintegerNoCalls per page. Default 50.
sort_bystringNocreated_at (default) or duration.
sort_orderstringNodesc (default) or asc.
filtersstringNoA JSON array of filters, URL-encoded. See below.

Filters#

filters is a JSON array. Each item has an attribute, a type, and a value:

AttributeTypeValueMatches calls
dateRangedateRange{"from": "2026-10-01T00:00:00", "to": "2026-10-31T23:59:59"}Started between the two times (ISO 8601). Either end can be left out.
statusradio{"status": "completed"} or {"status": "in_progress"}That have finished, or are still going
dispositionCodemultiSelect{"codes": ["INTERESTED", "CALLBACK"]}Ended with one of these disposition codes
durationnumberRange{"min": 30, "max": 600}Lasted between these numbers of seconds

Any other attribute returns 403. A filters value that isn't valid JSON returns 400.

Example request (completed calls from October):

cURL
curl -G "https://app.lemuai.com/api/v1/workflow/412/runs" \
  -H "X-API-Key: lemu_your_api_key" \
  --data-urlencode 'limit=20' \
  --data-urlencode 'filters=[{"attribute":"status","type":"radio","value":{"status":"completed"}},{"attribute":"dateRange","type":"dateRange","value":{"from":"2026-10-01T00:00:00"}}]'

Response#

200

JSON
{
  "runs": [
    {
      "id": 18234,
      "workflow_id": 412,
      "name": "WR-API-4821",
      "mode": "plivo",
      "created_at": "2026-10-23T11:05:12Z",
      "is_completed": true,
      "call_type": "outbound",
      "definition_id": 1907,
      "initial_context": {
        "phone_number": "+919876543210",
        "customer_name": "Priya",
        "order_id": "ORD-1042"
      },
      "gathered_context": {
        "delivery_confirmed": true,
        "preferred_time": "after 5 pm",
        "mapped_call_disposition": "CONFIRMED"
      },
      "cost_info": {
        "billed_minutes": 2,
        "call_duration_seconds": 94
      },
      "recording_url": "recordings/18234.wav",
      "transcript_url": "transcripts/18234.txt"
    }
  ],
  "total_count": 1284,
  "page": 1,
  "limit": 20,
  "total_pages": 65,
  "applied_filters": [
    { "attribute": "status", "type": "radio", "value": { "status": "completed" } }
  ]
}
FieldTypeDescription
runsarrayThe calls on this page. Fields of each call are below.
total_countintegerCalls matching your filters across all pages.
pageintegerThe page returned.
limitintegerCalls per page.
total_pagesintegerNumber of pages at this limit.
applied_filtersarray or nullThe filters that were applied, or null if none.

Each call:

FieldTypeDescription
idintegerThe call's id. Matches workflow_run_id from Trigger an outbound call.
workflow_idintegerThe agent that handled the call.
namestringThe call's label in the dashboard.
modestringHow the call was connected: the telephony provider (for example twilio, plivo, exotel), or webrtc / textchat for browser tests.
created_atstringWhen the call started (ISO 8601, UTC).
is_completedbooleantrue once the call has ended.
call_typestringoutbound or inbound.
definition_idinteger or nullThe version of the agent that ran this call.
initial_contextobject or nullThe data the call started with, including phone_number and anything you sent in initial_context.
gathered_contextobject or nullWhat the agent captured during the call, plus mapped_call_disposition (the disposition code the call ended with). Empty until the call has finished.
cost_infoobject or nullcall_duration_seconds and billed_minutes for the call. null until the call has ended.
recording_url, transcript_urlstring or nullInternal references to the stored recording and transcript. Open recordings and transcripts from the call in the dashboard; they are not downloadable through the API.

Phone numbers and other personal details in initial_context and gathered_context may be partly hidden, depending on whether the person who created the API key is allowed to view personal data in your organization.

Was this page helpful?