Skip to Content
Contacts

List contacts

Permissioncontacts:readAuthentication
GET
/contacts

Returns contacts ordered by most recent contact activity, then ID. Repeated tag_id values use AND semantics. Use exact e164 lookup when an agent must resolve one canonical contact deterministically; percent-encode the leading plus sign.

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer
Range1 <= value <= 200
Default50
q?string

Case-insensitive substring search across E.164, display name, and company.

Length1 <= length <= 200
e164?string

Exact E.164 match. In a raw URL, encode + as %2B.

Match^(\+[1-9][0-9]{7,14}|[0-9*#]{1,20})$
created_from?string

Inclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).

created_to?string

Exclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.

tag_id?array<>

Repeat up to 20 times. A returned contact must have every supplied tag.

Itemsitems <= 20

Response Body

Matching contact page.

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/contacts'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "e164": "string",      "display_name": "string",      "company": "string",      "timezone": "string",      "tags": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "color": "slate"        }      ],      "call_count": 0,      "last_contacted_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}