Endpoint reference

List operational call history.

Use this endpoint to reconcile outbound workflows, support audit trails, call outcomes, escalation state, and analytics exports.

Endpoint contract

PropertyValue
MethodGET
Path/api/v1/call-logs
AuthenticationAuthorization: Bearer ${STATESET_VOICE_API_KEY}
Primary useList operational call records for reconciliation, support audit, and analytics.

Query parameters

ParameterDescription
limitMaximum number of records to return. Use small pages for interactive dashboards.
offsetOffset for pagination. Keep export windows stable when exporting large ranges.
statusFilter by call status such as queued, completed, failed, or no-answer.
directionFilter inbound and outbound records.
from/toUse time-window filters for replay, audit, and reporting jobs where supported.

Example request

curl -sS "https://voice.stateset.app/api/v1/call-logs?limit=25&offset=0" \
  -H "Authorization: Bearer ${STATESET_VOICE_API_KEY}"

Response shape

{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "call_sid": "CA1234567890abcdef1234567890abcdef",
      "direction": "outbound",
      "status": "completed",
      "duration_seconds": 142,
      "escalated": false,
      "summary": "Customer confirmed appointment time."
    }
  ],
  "limit": 25,
  "offset": 0
}

Export pattern

  1. Choose a stable time window and page through records with limit and offset.
  2. Store the highest processed timestamp or call log ID after each successful page.
  3. Reconcile final call state against webhook events when downstream systems need exactly-once business effects.
  4. Alert on missing final states, duplicate call SIDs, and unusually high failure or no-answer rates.

Common use cases

Support

Audit a customer call

Find the final call status, route, summary, and escalation state before reviewing the session transcript.

Operations

Track launch quality

Measure answer rate, completion rate, transfer rate, no-answer spikes, and provider failures by tenant and route.