Appearance
Contacts
Endpoints of the public API tagged Contacts, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
List contacts (newest first; filter by search text or tags)
text
GET /api/v1/rest/contacts- Operation id:
listContacts - Scope:
contacts:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
limit | query | no | integer |
cursor | query | no | string |
q | query | no | string |
tags | query | no | string |
updatedFrom | query | no | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
firstName | string | yes | |
lastName | string | yes | |
email | string | yes | |
phone | string | yes | |
timezone | string | yes | |
source | string | yes | |
dnd | boolean | yes | |
tags | array | yes | |
customFields | object | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Create a contact
text
POST /api/v1/rest/contacts- Operation id:
createContact - Scope:
contacts:write
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
firstName | string | no | |
lastName | string | no | |
email | string | no | |
phone | string | no | |
timezone | string | no | |
source | string | no | |
tags | array | no | |
customFields | object | no |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
firstName | string | yes | |
lastName | string | yes | |
email | string | yes | |
phone | string | yes | |
timezone | string | yes | |
source | string | yes | |
dnd | boolean | yes | |
tags | array | yes | |
customFields | object | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Find a contact by exact email or phone (zero or one result)
text
GET /api/v1/rest/contacts/lookup- Operation id:
findContact - Scope:
contacts:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
email | query | no | string |
phone | query | no | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
firstName | string | yes | |
lastName | string | yes | |
email | string | yes | |
phone | string | yes | |
timezone | string | yes | |
source | string | yes | |
dnd | boolean | yes | |
tags | array | yes | |
customFields | object | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Get a contact
text
GET /api/v1/rest/contacts/{contactId}- Operation id:
getContact - Scope:
contacts:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
firstName | string | yes | |
lastName | string | yes | |
email | string | yes | |
phone | string | yes | |
timezone | string | yes | |
source | string | yes | |
dnd | boolean | yes | |
tags | array | yes | |
customFields | object | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Update a contact (null clears a field)
text
PATCH /api/v1/rest/contacts/{contactId}- Operation id:
updateContact - Scope:
contacts:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
firstName | string | no | |
lastName | string | no | |
email | string | no | |
phone | string | no | |
timezone | string | no | |
source | string | no | |
dnd | boolean | no | |
customFields | object | no |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
firstName | string | yes | |
lastName | string | yes | |
email | string | yes | |
phone | string | yes | |
timezone | string | yes | |
source | string | yes | |
dnd | boolean | yes | |
tags | array | yes | |
customFields | object | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Delete a contact (soft delete; GDPR erase stays with staff)
text
DELETE /api/v1/rest/contacts/{contactId}- Operation id:
deleteContact - Scope:
contacts:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
deleted | boolean | yes | |
id | string | yes |
Add tags to a contact
text
POST /api/v1/rest/contacts/{contactId}/tags- Operation id:
addContactTags - Scope:
contacts:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
tags | array | yes |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
tags | array | yes |
Remove a tag from a contact
text
DELETE /api/v1/rest/contacts/{contactId}/tags/{tag}- Operation id:
removeContactTag - Scope:
contacts:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
tag | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
tags | array | yes |
Custom contact fields: key, label, type and options (use the keys in customFields)
text
GET /api/v1/rest/custom-fields- Operation id:
listCustomFields - Scope:
fields:read
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
key | string | yes | |
label | string | yes | |
type | string | yes | |
options | array | yes | |
required | boolean | yes |