Calls

List recent calls

Returns a rolling in-memory history of recent calls for the authenticated device (most recent first).

GET
/calls/history

Returns a rolling in-memory history of recent calls for the authenticated device (most recent first).

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/calls/history"
{  "success": true,  "calls": [    {      "device_id": "dev_abc123",      "call_id": "73EE9BC6A87B1AA5AED857F4DBB73B0E",      "peer": "83034753732714@lid",      "direction": "outbound",      "status": "ended",      "is_video": false,      "started_at": 0,      "ended_at": 1784237437228,      "reason": "user_ended"    }  ],  "timestamp": "2026-07-16T18:36:01Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}
{  "success": false,  "error": "validation failed",  "error_code": "VALIDATION_ERROR",  "timestamp": "2026-06-15T12:00:00Z"}