Skip to Content
Contacts

List calls associated with a contact

Permissioncontacts:readAuthentication
GET
/contacts/{id}/calls

Returns calls whose caller number exactly matches the contact's immutable E.164 number, newest first. Deleting the contact does not delete these call records.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer
Range1 <= value <= 200
Default50

Response Body

Contact call page.

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/contacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/calls'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "agent_name": "string",      "started_at": "2019-08-24T14:15:22Z",      "ended_at": "2019-08-24T14:15:22Z",      "duration_sec": 0,      "lifecycle_status": "ringing",      "outcome": "string",      "direction": "string"    }  ],  "next_cursor": "string"}