List recent calls newest-first (30-day retention)
const url = 'https://api.pingram.io/voice/calls';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.pingram.io/voice/calls \ --header 'Authorization: Bearer <token>'Authorizations
Parameters
Query Parameters
Only calls handled by this agent
Page size (default 25, max 100)
Pagination cursor from a previous response
Responses
200
Successful response
object
object
Omitted for playground calls made before the agent was saved.
Machine-readable reason the call ended — persisted on every call record.
Short human-readable detail (e.g. provider error message).
Pass back as ?cursor= to fetch the next page.
Example
{ "calls": [ { "status": "active", "direction": "inbound", "source": "pstn", "outcome": "completed", "endReason": "user_hangup" } ]}400
Bad Request - validation errors, invalid input
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}401
Unauthorized
402
Payment Required - usage limits exceeded
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}500
Internal Server Error
502
Bad Gateway - provider error
Standard error response for API errors.
object
Unique tracking ID for the request.
Structured error details for API error responses.
object
Machine-readable error code.
Human-readable error message.
Actionable hint for fixing the error.
Examplegenerated
{ "trackingId": "example", "error": { "code": "example", "message": "example", "fix": "example" }}