curl --request GET \
--url https://api.voice.mergenlab.ai/v1/calls \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voice.mergenlab.ai/v1/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voice.mergenlab.ai/v1/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)List calls
Calls of every type, newest first (created_at descending). Unknown query parameters are rejected (422).
curl --request GET \
--url https://api.voice.mergenlab.ai/v1/calls \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.voice.mergenlab.ai/v1/calls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voice.mergenlab.ai/v1/calls"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
Authorization: Bearer vg_live_<32 hex characters>. Keys are issued by Mergen admins and shown once.
Missing or invalid key: 401 unauthorized. Suspended account: 403 tenant_suspended.
Query Parameters
Only calls with this status.
queued (waiting for its first dial, a scheduled time, the calling window or a retry), dialling (an attempt
is live), then terminal completed (a person was connected), no_answer, busy, failed, canceled.
An AI call goes back to queued while a retry is pending.
queued, dialling, completed, no_answer, busy, failed, canceled Only calls of this agent.
1Only calls to this customer number (any accepted Indian format; normalized before matching).
1Only items created at or after this instant (ISO 8601 with Z or an offset).
Only items created at or before this instant (ISO 8601 with Z or an offset).
Only calls of this type.
ai_voice: a voice agent calls the customer. human: your agent and the customer bridged by phone.
reachability: one dial of a reachability check. broadcast: one dial of a voice broadcast.
ai_voice, human, reachability, broadcast Only human calls whose agent took the call this way: phone (rung on agent_phone) or web (in a browser,
web calling).
phone, web Only the dials of this reachability check.
1 - 128Only the dials of this voice broadcast (call_type broadcast).
1 - 128Only the calls a campaign placed (any call type).
1 - 128Page size.
1 <= x <= 100next_cursor of the previous page.
1