curl --request GET \
--url https://api.bland.ai/v1/sip/calls \
--header 'authorization: <authorization>'{
"data": {
"calls": [
{
"call_id": "abc123@sip.bland.ai",
"direction": "outbound",
"from": "+14150000000",
"to": "+15105551234",
"status": "200 OK",
"sip_code": 200,
"duration_seconds": 45,
"started_at": "2026-03-09T11:00:00Z",
"ended_at": "2026-03-09T11:00:45Z",
"source_ip": "35.80.235.26"
}
]
},
"errors": null
}
Retrieve SIP call logs for a phone number with cursor-based pagination.
curl --request GET \
--url https://api.bland.ai/v1/sip/calls \
--header 'authorization: <authorization>'{
"data": {
"calls": [
{
"call_id": "abc123@sip.bland.ai",
"direction": "outbound",
"from": "+14150000000",
"to": "+15105551234",
"status": "200 OK",
"sip_code": 200,
"duration_seconds": 45,
"started_at": "2026-03-09T11:00:00Z",
"ended_at": "2026-03-09T11:00:45Z",
"source_ip": "35.80.235.26"
}
]
},
"errors": null
}
call_id of the last call from the previous page to fetch the next page.call_id (string) — Unique SIP Call-IDdirection (string) — "inbound" or "outbound"from (string) — Caller numberto (string) — Callee numberstatus (string) — Final SIP status (e.g., "200 OK", "486 Busy")sip_code (number) — SIP response codeduration_seconds (number) — Call durationstarted_at (string) — ISO 8601 timestampended_at (string) — ISO 8601 timestampsource_ip (string) — Source IP addresscurl -X GET 'https://api.bland.ai/v1/sip/calls?phone_number=%2B14150000000&limit=10' \
-H "Authorization: Bearer <token>"
{
"data": {
"calls": [
{
"call_id": "abc123@sip.bland.ai",
"direction": "outbound",
"from": "+14150000000",
"to": "+15105551234",
"status": "200 OK",
"sip_code": 200,
"duration_seconds": 45,
"started_at": "2026-03-09T11:00:00Z",
"ended_at": "2026-03-09T11:00:45Z",
"source_ip": "35.80.235.26"
}
]
},
"errors": null
}
Was this page helpful?