Vobiz CDR skill
Use this for call history, billing reconciliation, quality analysis, or analytics. A CDR is written after a call completes - it is not available mid-call. Poll the list/recent endpoints, or use trunk webhooks for real-time events.
Base URL: https://api.vobiz.ai. Auth headers on every request: X-Auth-ID and X-Auth-Token.
Endpoints
| Op | Path | Notes |
|---|---|---|
| List | GET /api/v1/Account/{auth_id}/cdr |
Filter by from/to number, date range, direction, min_duration, SIP/bridge ids, hangup fields, context, campaign, free text; paginated; includes summary |
| Search | GET /api/v1/Account/{auth_id}/cdr/search |
Same filters + adds a filters echo of the active filter values |
| Recent | GET /api/v1/Account/{auth_id}/cdr/recent |
Last 20 by default (limit to change). No pagination, no summary, no filters |
| Export | GET /api/v1/Account/{auth_id}/cdr/export |
Returns text/csv, not JSON. Same filters as list (no page/per_page); columns mirror the CDR object fields |
| Get one | GET /api/v1/Account/{auth_id}/cdr/{call_id} |
Path param is named call_id; pass the call's uuid from a list/webhook |
auth_id is your master account ID (MA_XXXXXXXX). The path segment is Account (capital A) followed by lowercase cdr - match the casing exactly.
Response shape
Top-level (list): { account_id, count, data, pagination, summary, success }.
Search adds filters. Recent returns only { account_id, count, data, success }. Get-one returns { data, success } where data is a single object (not an array).
pagination: { page, per_page, total, pages, has_next, has_prev } (NOT current_page / total_records). total is the count across all pages; pages = ceil(total / per_page).
summary: { totalCalls, answeredCalls, answerRate, avgCallDuration, total_duration_seconds, total_billable_seconds, total_cost, last_call_at }. Note avgCallDuration is a string like "28s", not a number. The summary reflects the filtered set, not the whole account.
filters (search only): { call_direction, from_number, hangup_cause, to_number }. Empty values come back as "", not omitted.
Each CDR object has 43 fields. See the field glossary below.
Filters that work
Apply to list, search, and export (export ignores page/per_page):
from_number- originating number; substring or full E.164 (example value9876543210)to_number- destination number; substring or full E.164start_date-YYYY-MM-DD. Required together withend_dateend_date-YYYY-MM-DD. Required together withstart_datecall_direction- enum:inboundoroutbound(no other values)min_duration- integer seconds; excludes calls shorter than thissip_call_id- SIPCall-ID; matches the CDR'ssip_call_idfieldbridge_uuid- UUID of the bridged leg; matches the CDR'sbridge_uuidfieldhangup_cause- e.g.NORMAL_CLEARING; matches the CDR'shangup_causefieldhangup_disposition- e.g.send_refuse; matches the CDR'shangup_dispositionfieldcontext- call context, e.g.sip-trunkingorvoice-apicampaign_id- campaign identifier associated with the callsearch- free-text search across CDR fields (numbers, IDs, etc.)page- default1(list, search only)per_page- default20, max100(list, search only)
Recent takes only limit (default 20).
Field glossary (CDR object)
Identity & routing: id (integer, internal), uuid (string, globally unique - use this for get-one), account_id, call_direction (inbound/outbound), caller_id_name, caller_id_number (E.164, NOT from_number), destination_number (NOT to_number), context, region, origination_region, campaign_id (nullable), customer_endpoint (nullable), trunk_id (nullable), terminated_to (nullable).
Timing & duration: duration (integer seconds, ring + talk), billsec (integer billable seconds, talk only), ring_time, answer_time (nullable - null if unanswered), start_time, end_time, progress_time (nullable), created_at, updated_at. Timestamps are ISO 8601 (...Z).
Billing: cost, total_cost (cost + streaming), streaming_cost, currency (e.g. INR).
Quality metrics: mos (1.0-5.0, higher is better; 0 on unanswered/failed), jitter (ms), packet_loss (%), codec (PCMU/PCMA/opus, nullable). All quality fields are nullable and may be 0 for calls that never carried media.
Hangup attribution: hangup_cause (string, e.g. NORMAL_CLEARING), hangup_cause_code (integer, e.g. 4000), hangup_cause_name (e.g. Normal Hangup), hangup_disposition (send_bye/recv_bye/send_cancel...), hangup_source (Caller/Callee/...), failure_code (nullable), failure_reason (nullable). The spec marks the hangup_* fields nullable on list/search/recent.
SIP / network: bridge_uuid (nullable), sip_call_id, sip_user_agent (nullable), network_addr (nullable), carrier_ip (nullable).
Recipes
List a date range, page 2, 50/page:
curl -G "https://api.vobiz.ai/api/v1/Account/$AUTH_ID/cdr" \
--data-urlencode "start_date=2026-03-01" \
--data-urlencode "end_date=2026-03-17" \
--data-urlencode "page=2" --data-urlencode "per_page=50" \
-H "X-Auth-ID: $AUTH_ID" -H "X-Auth-Token: $AUTH_TOKEN"Search outbound calls from one number, echo the filters:
curl -G "https://api.vobiz.ai/api/v1/Account/$AUTH_ID/cdr/search" \
--data-urlencode "call_direction=outbound" \
--data-urlencode "from_number=919876543210" \
-H "X-Auth-ID: $AUTH_ID" -H "X-Auth-Token: $AUTH_TOKEN"Export filtered CDRs to a CSV file (no Accept: application/json):
curl -G "https://api.vobiz.ai/api/v1/Account/$AUTH_ID/cdr/export" \
--data-urlencode "start_date=2026-03-01" --data-urlencode "end_date=2026-03-17" \
-H "X-Auth-ID: $AUTH_ID" -H "X-Auth-Token: $AUTH_TOKEN" \
-o cdrs.csvWalk every page until has_next is false (jq):
page=1
while :; do
resp=$(curl -sG "https://api.vobiz.ai/api/v1/Account/$AUTH_ID/cdr" \
--data-urlencode "page=$page" --data-urlencode "per_page=100" \
-H "X-Auth-ID: $AUTH_ID" -H "X-Auth-Token: $AUTH_TOKEN")
echo "$resp" | jq -c '.data[]'
[ "$(echo "$resp" | jq '.pagination.has_next')" = "true" ] || break
page=$((page+1))
doneGet a single CDR by its uuid (taken from data[].uuid):
curl "https://api.vobiz.ai/api/v1/Account/$AUTH_ID/cdr/$CALL_UUID" \
-H "X-Auth-ID: $AUTH_ID" -H "X-Auth-Token: $AUTH_TOKEN"Pitfalls
- Casing: the path is
/api/v1/Account/{auth_id}/cdr-Accountis capitalized,cdris lowercase. LowercasingAccountor capitalizingcdrwill 404/401. - get-cdr uses the uuid, not the numeric id: the path param is named
call_id, but pass the call'suuid(fromdata[].uuidor a webhook). Feeding back the numericdata[].idreturns404. - Export is not JSON: the export endpoint returns
text/csv. Don't sendAccept: application/json; pipe to a file withcurl -o cdrs.csv.page/per_pageare ignored - filter withstart_date/end_date/min_durationto limit rows. - Date filters are paired:
start_dateandend_datemust be supplied together, bothYYYY-MM-DD. Each is required when the other is present - always send both. - Field name drift: it's
caller_id_number/destination_numberon the CDR object, but the filter params arefrom_number/to_number. Don't filter oncaller_id_number. avgCallDurationis a string ("28s") - parse it, don't do math on it directly. For numeric aggregates usetotal_duration_seconds/total_billable_seconds.- Recent has no pagination or summary: only
account_id,count,data,success. Use list if you need totals or paging. - Empty result set: a valid request that matches nothing returns
200withdata: [],count: 0, and a zeroedsummary(not a 404). - Quality fields can be
0or null on unanswered/failed calls - treatmos: 0as "no media", not "worst quality". hangup_sourceon conference legs: a leg removed by another member'sendConferenceOnExitreports asNORMAL_CLEARING/4000/Callee, the same as a participant hanging up. Correlate withConferenceExitcallbacks instead of trusting the CDR field alone.- Hangup causes: the full numeric-code reference (4000, 1010, 2030, 3130, etc.) and the textual SIP causes live in the canonical Hangup Causes page at https://www.vobiz.ai/docs/concepts/hangup-causes. The CDR overview at https://www.vobiz.ai/docs/cdr also carries the textual
hangup_causetable and the full 43-field glossary.