Skip to Content

List contacts

GET
/contacts

Get a paginated list of contacts with cursor-based pagination.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API Key>

API Key authentication. The project is automatically derived from the key.

/v1/track requires a public key (pk_*) — it is the one endpoint intended for client-side use, and a secret key is rejected there with 401.

Every other endpoint requires a secret key (sk_*) and rejects public keys with 401.

So the two key types are not interchangeable in either direction: pick the key that matches the endpoint you are calling.

Query parameters

limit?integer

Maximum items per page. Values above 100 are clamped to 100.

Range1 <= value <= 100
Default20
cursor?string

Pagination cursor. Pass the cursor returned by the previous page.

search?string

Case-insensitive substring match on email.

subscribed?boolean

Filter by subscription state. Omit to return both subscribed and unsubscribed contacts.

sort?string

Column to sort by. Unrecognised values fall back to createdAt.

Default"createdAt"
Value in"email""createdAt"
dir?string

Sort direction. Unrecognised values fall back to the default.

Default"desc"
Value in"asc""desc"

Response body

List of contacts

application/json
  1. response
data?array<>
cursor?string

Cursor for the next page. Pass this back as the cursor query parameter to fetch the next page.

hasMore?boolean
total?integer

Total count. Only populated on the first page (when no cursor is supplied); subsequent pages return 0 to avoid the recount cost.

Example request
curl -X GET 'https://api.send.47signals.com/contacts'
Example response
{  "data": [    {      "id": "string",      "email": "user@example.com",      "subscribed": true,      "snoozedUntil": "2019-08-24T14:15:22Z",      "data": {},      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "cursor": "string",  "hasMore": true,  "total": 0}