Create, read, update, and delete contacts in your workspace. All endpoints require a Bearer token — see Authentication for details.
| Method | Path | Description |
|---|---|---|
GET | /api/v1/contacts | List contacts (paginated) |
POST | /api/v1/contacts | Create a contact |
GET | /api/v1/contacts/:id | Get a single contact |
PATCH | /api/v1/contacts/:id | Update a contact (partial) |
DELETE | /api/v1/contacts/:id | Delete a contact |
Returns a cursor-paginated list of contacts for the authenticated workspace, newest first. The response includes has_more and next_cursor; to fetch the next page, pass next_cursor back as the cursor query parameter.
Pass segment_id to restrict the list to members of a segment (a UUID that must belong to your workspace). An unknown or foreign id returns 404 not_found, and a malformed (non-UUID) value returns 400 invalid_field. It combines with the other filters and with pagination.
| Field | Type | Required | Description |
|---|---|---|---|
limit | number | optional | Max contacts to return. Default 50, max 100 (over-large values are clamped). |
cursor | string | optional | Opaque pagination cursor from a previous response's next_cursor. Omit for the first page; a malformed cursor returns 400 invalid_field. |
status | string | optional | 'subscribed', 'unsubscribed', 'not_subscribed', 'bounced' or 'complained'. Omit for all. |
search | string | optional | Filter contacts whose email contains this substring. |
segment_id | string | optional | Filter to members of a segment (UUID). The segment must belong to your workspace; an unknown or foreign id returns 404 not_found; a malformed (non-UUID) value returns 400 invalid_field. |
Filter to one segment's members:
Creates a new contact. Returns 409 Conflict if the email already exists in the workspace. To add someone only once they confirm by email, send double_opt_in (see Double opt-in).
| Field | Type | Required | Description |
|---|---|---|---|
email | string | required | Contact email address. Must be unique per workspace. |
first_name | string | optional | Contact's first name. |
last_name | string | optional | Contact's last name. |
status | string | optional | 'subscribed', 'unsubscribed' or 'not_subscribed'. Defaults to 'subscribed'. A not_subscribed contact is not on your mailing list (they get no campaigns or automation emails) and does not count toward your contact limit. |
properties | object | optional | Arbitrary key/value metadata. Must be a JSON object. A key that matches a custom property you have defined as a number or a date must carry a value of that shape — a date is YYYY-MM-DD — or the call is refused with invalid_field. Keys with no definition are stored as-is. |
double_opt_in | boolean | optional | true: email the person a confirmation and add them only once they confirm (see Double opt-in below). Off by default. |
language | string | optional | With double_opt_in only: the language of the confirmation email and its page. One of en, de, es, fr, pt, sv, da, nb, fi; English when left out. |
With "double_opt_in": true, the contact is not added yet. The person is emailed a confirmation, and the answer is 202 Accepted with the pending signup. They are added when they press Confirm in the email; the signup.confirmed event then names the signup's id and the new contact. Nothing else is needed: the email is the one a signup form sends, from your default sender, with your organisation's name, logo and mailing address, and its link opens a page on your page address with Confirm and This wasn't me. The link works for 7 days.
The contact is made subscribed, with the names and properties you sent; a property whose value no longer fits its type by then is left out. Someone who had unsubscribed by their own choice is subscribed again, and only their empty fields are filled. "How this contact joined" on the contact's page shows the confirmation, and the contact reads "Added through the API, after they confirmed by email". If your plan's contact limit is reached, the signup waits for room (up to 90 days) and the event comes once it is added.
The same address while its signup still waits answers 200 with that signup and sends nothing, so a retry is safe.
The call has answered 202 by then, and the address gets no email when: it is on your do-not-send list by then; the address check finds it undeliverable, risky, disposable or misspelt; it was sent a confirmation from your account in the last 24 hours (30 days after the person's own opt-out); it was sent 3 today from all accounts together; your account has sent 50 today to its domain, outside the large mailbox providers; or the person said This wasn't me to one of your confirmations, or marked one as spam, in the last 90 days. None of these is said to the caller: they protect the person, not the call.
When your API confirmations of the last 24 hours show 50 or more sent with 10% or more bounced, or 2 or more marked as spam, new calls are refused with double_opt_in_unavailable (the message gives the numbers) and confirmations not yet sent wait. Your account gets a notice in PristineSend, and we are told. It lifts by itself once those emails are 24 hours old. Either usually means the addresses were not typed in by the people themselves.
Each is said before anything is written:
| Status | code | When |
|---|---|---|
400 | invalid_field | double_opt_in is not true or false; language is not one of the nine, or is sent without double_opt_in; status is anything but subscribed; a name is over 100 characters; properties are too large to keep with the signup |
403 | live_key_required | A test key: a confirmation is real email |
403 | recipient_suppressed | The address is on your do-not-send list for something the person cannot lift themselves: a bounce, a spam complaint, or a block you or we set |
409 | conflict | The contact is already subscribed (nothing to confirm), or you set it to unsubscribed and they did not opt out themselves |
403 | double_opt_in_unavailable | Your account cannot send confirmations now: signup forms are turned off for it, no mailing address is set, or the breaker below is tripped (the message gives the numbers) |
403 | sending_paused | Sending is paused on your account |
403 | sender_not_verified | No default sender on a verified domain: confirmations come from it |
403 | domain_not_verified | No verified sending domain, or the default sender's domain cannot send from us right now |
429 | rate_limited | Your account's double opt-in and form signups for the day are taken. Retry-After counts to midnight UTC |
503 | service_unavailable | Something could not be checked just now, or double opt-in is paused for every account. Nothing was written; try again after Retry-After |
The daily limit is the one your account's signup forms share: your plan's contact limit divided by 20 (5,000 a day on an unlimited plan), at most 50 a day in the 14 days after your first form goes live.
Returns a single contact by UUID. Returns 404 if the contact doesn't exist or belongs to a different workspace.
Partially updates a contact. Only include the fields you want to change. The properties field is merged with existing properties rather than replaced. Email cannot be changed after creation.
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | optional | New first name. |
last_name | string | optional | New last name. |
status | string | optional | 'subscribed', 'unsubscribed' or 'not_subscribed'. Moving a contact to subscribed counts toward your contact limit, so it can answer 403 plan_limit_reached. |
properties | object | optional | Properties to merge into existing properties. Email cannot be changed. The same typed-value rule as on create applies: a number or date property must carry a value of that shape. |
Permanently deletes a contact. Returns 204 No Content on success with no response body. Returns 404 if the contact doesn't exist.
All errors return the standard envelope — a code, message, optional param (field-validation only), and a request_id (also the X-Request-Id header):
| Status | code | When |
|---|---|---|
400 | invalid_request | Malformed or unparseable JSON body |
400 | missing_field | A required field (e.g. email) is absent |
400 | invalid_field | A field is present but invalid, e.g. a bad email, a non-object properties, or a malformed cursor |
401 | unauthorized | Missing or invalid API key |
404 | not_found | Contact doesn't exist in this workspace |
409 | conflict | Email already exists in this workspace |
500 | internal_error | Unexpected server error — safe to retry |
See the full Error codes reference for general API errors.