Contacts API
People, their emails, phones and addresses, merges. 18 routes; send a bearer token with each (see Authentication).
| Route | What it does |
|---|---|
GET /v1/contacts |
List contacts |
POST /v1/contacts |
Create a contact |
GET /v1/contacts/{id} |
Get a contact |
PATCH /v1/contacts/{id} |
Update a contact |
DELETE /v1/contacts/{id} |
Delete a contact (soft delete) |
POST /v1/contacts/{id}/restore |
Restore a deleted contact |
GET /v1/contacts/{id}/emails |
List a contact’s emails |
POST /v1/contacts/{id}/emails |
Add a email |
PATCH /v1/contacts/{id}/emails/{childId} |
Update a email |
DELETE /v1/contacts/{id}/emails/{childId} |
Remove a email |
GET /v1/contacts/{id}/phones |
List a contact’s phones |
POST /v1/contacts/{id}/phones |
Add a phone |
PATCH /v1/contacts/{id}/phones/{childId} |
Update a phone |
DELETE /v1/contacts/{id}/phones/{childId} |
Remove a phone |
GET /v1/contacts/{id}/addresses |
List a contact’s addresses |
POST /v1/contacts/{id}/addresses |
Add a address |
PATCH /v1/contacts/{id}/addresses/{childId} |
Update a address |
DELETE /v1/contacts/{id}/addresses/{childId} |
Remove a address |
List contacts
GET https://staging-api.naruskacrm.com/v1/contacts
Declared filters only (an unknown one is refused); q searches the name (accent- and case-insensitive); sort takes a declared field, - for descending. Pass next_cursor back as cursor. Custom fields: custom.<api_key> for picklists (options by key or label, comma-separated: any of them), multi-picklists (contains any) and booleans (false also matches empty); custom.<api_key>_from / _to for numbers and dates. The applied custom filters come back with their labels in custom_filters.
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
limit |
query | integer | 1–200, default 50 |
|
cursor |
query | string | next_cursor of the previous page. 1–400 characters | |
owner |
query | me or string (uuid) |
||
status |
query | string | at most 63 characters | |
category |
query | lead, customer, inactive |
||
account_id |
query | string (uuid) | ||
tag |
query | string | at most 100 characters | |
email |
query | string | at most 320 characters | |
city |
query | string | Address city, accent- and case-insensitive. 1–200 characters | |
q |
query | string | 1–200 characters | |
sort |
query | display_name, -display_name, primary_account_name, -primary_account_name, primary_email, -primary_email, primary_phone, -primary_phone, status_order, -status_order, owner_name, -owner_name, created_at, -created_at, updated_at, -updated_at |
Sort by display_name, primary_account_name, primary_email, primary_phone, status_order, owner_name, created_at, updated_at; prefix “-” for descending. | |
updated_since |
query | string (date-time) | ||
include_deleted |
query | true, false |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of Contact | yes | |
next_cursor |
string or null | yes | |
custom_filters |
array of CustomFilter |
Errors are problem details with a stable code: see Errors.
Create a contact
POST https://staging-api.naruskacrm.com/v1/contacts
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
first_name |
string or null | at most 200 characters | |
last_name |
string or null | at most 200 characters | |
status_id |
string (uuid) | ||
status |
string | at most 63 characters | |
owner_user_id |
string (uuid) or null | ||
owner_team_id |
string (uuid) or null | ||
language |
string or null | at most 35 characters | |
source |
manual, web_form, import, email, api or null |
||
privacy_accepted_at |
string (date-time) or null | ||
privacy_source |
string or null | at most 500 characters | |
marketing_consent |
unknown, granted, withdrawn |
||
marketing_consent_at |
string (date-time) or null | ||
marketing_consent_source |
string or null | at most 500 characters | |
custom |
object | ||
source_system |
string or null | 1–100 characters | |
source_id |
string or null | 1–500 characters | |
emails |
array of object | at most 20 items | |
emails[].email |
string | yes | at most 320 characters |
emails[].label |
work, personal, other |
||
emails[].is_primary |
boolean | ||
phones |
array of object | at most 20 items | |
phones[].phone |
string | yes | 3–50 characters |
phones[].label |
mobile, work, home, other |
||
phones[].is_primary |
boolean | ||
addresses |
array of object | at most 10 items | |
addresses[].type |
home, delivery, billing |
yes | |
addresses[].street |
string or null | at most 500 characters | |
addresses[].postal_code |
string or null | at most 20 characters | |
addresses[].city |
string or null | at most 200 characters | |
addresses[].region |
string or null | at most 200 characters | |
addresses[].country |
string | yes | |
addresses[].is_primary |
boolean |
Response 201
Returns: Contact.
Errors are problem details with a stable code: see Errors.
Get a contact
GET https://staging-api.naruskacrm.com/v1/contacts/{id}
include adds children (emails, phones, addresses, affiliations, deal contacts, attendees), tags and related (the first 10 of each related list), so a record page loads in one request.
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
include |
query | string | at most 100 characters |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
company_id |
string (uuid) | yes | |
created_at |
string (date-time) | yes | |
updated_at |
string (date-time) | yes | |
created_by |
string (uuid) or null | yes | |
updated_by |
string (uuid) or null | yes | |
deleted_at |
string (date-time) or null | yes | |
deleted_by |
string (uuid) or null | yes | |
first_name |
string or null | yes | |
last_name |
string or null | yes | |
display_name |
string | yes | |
status_id |
string (uuid) | yes | |
status_api_key |
string | ||
status_name |
string | ||
status_category |
string | ||
primary_email |
string or null | ||
primary_phone |
string or null | ||
primary_account_id |
string (uuid) or null | ||
primary_account_name |
string or null | ||
job_title |
string or null | ||
owner_user_id |
string (uuid) or null | yes | |
owner_user_name |
string or null | ||
owner_team_id |
string (uuid) or null | yes | |
owner_team_name |
string or null | ||
owner_name |
string or null | ||
language |
string or null | yes | |
source |
string or null | yes | |
privacy_accepted_at |
string (date-time) or null | yes | |
privacy_source |
string or null | yes | |
marketing_consent |
string | yes | |
marketing_consent_at |
string (date-time) or null | yes | |
marketing_consent_source |
string or null | yes | |
custom |
object | yes | |
custom_labels |
CustomLabels | ||
merged_into_id |
string (uuid) or null | yes | |
source_system |
string or null | yes | |
source_id |
string or null | yes | |
children |
object | ||
tags |
array of Tag | ||
related |
object |
Errors are problem details with a stable code: see Errors.
Update a contact
PATCH https://staging-api.naruskacrm.com/v1/contacts/{id}
JSON merge patch: send only the fields to change. custom is merged per key; a null value removes a key.
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
first_name |
string or null | at most 200 characters | |
last_name |
string or null | at most 200 characters | |
status_id |
string (uuid) | ||
status |
string | at most 63 characters | |
owner_user_id |
string (uuid) or null | ||
owner_team_id |
string (uuid) or null | ||
language |
string or null | at most 35 characters | |
source |
manual, web_form, import, email, api or null |
||
privacy_accepted_at |
string (date-time) or null | ||
privacy_source |
string or null | at most 500 characters | |
marketing_consent |
unknown, granted, withdrawn |
||
marketing_consent_at |
string (date-time) or null | ||
marketing_consent_source |
string or null | at most 500 characters | |
custom |
object | ||
source_system |
string or null | 1–100 characters | |
source_id |
string or null | 1–500 characters |
Response 200
Returns: Contact.
Errors are problem details with a stable code: see Errors.
Delete a contact (soft delete)
DELETE https://staging-api.naruskacrm.com/v1/contacts/{id}
Soft delete (admins only). The record and its children are kept for 30 days and can be restored.
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.
Restore a deleted contact
POST https://staging-api.naruskacrm.com/v1/contacts/{id}/restore
Admins only. Children and links deleted with the record come back with it.
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
Returns: Contact.
Errors are problem details with a stable code: see Errors.
List a contact’s emails
GET https://staging-api.naruskacrm.com/v1/contacts/{id}/emails
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of ContactEmail | yes |
Errors are problem details with a stable code: see Errors.
Add a email
POST https://staging-api.naruskacrm.com/v1/contacts/{id}/emails
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
email |
string | yes | at most 320 characters |
label |
work, personal, other |
||
is_primary |
boolean |
Response 201
Returns: ContactEmail.
Errors are problem details with a stable code: see Errors.
Update a email
PATCH https://staging-api.naruskacrm.com/v1/contacts/{id}/emails/{childId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
childId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
email |
string | at most 320 characters | |
label |
work, personal, other |
||
is_primary |
boolean |
Response 200
Returns: ContactEmail.
Errors are problem details with a stable code: see Errors.
Remove a email
DELETE https://staging-api.naruskacrm.com/v1/contacts/{id}/emails/{childId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
childId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.
List a contact’s phones
GET https://staging-api.naruskacrm.com/v1/contacts/{id}/phones
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of ContactPhone | yes |
Errors are problem details with a stable code: see Errors.
Add a phone
POST https://staging-api.naruskacrm.com/v1/contacts/{id}/phones
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
phone |
string | yes | 3–50 characters |
label |
mobile, work, home, other |
||
is_primary |
boolean |
Response 201
Returns: ContactPhone.
Errors are problem details with a stable code: see Errors.
Update a phone
PATCH https://staging-api.naruskacrm.com/v1/contacts/{id}/phones/{childId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
childId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
phone |
string | 3–50 characters | |
label |
mobile, work, home, other |
||
is_primary |
boolean |
Response 200
Returns: ContactPhone.
Errors are problem details with a stable code: see Errors.
Remove a phone
DELETE https://staging-api.naruskacrm.com/v1/contacts/{id}/phones/{childId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
childId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.
List a contact’s addresses
GET https://staging-api.naruskacrm.com/v1/contacts/{id}/addresses
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Response 200
| Field | Type | Always present | Notes |
|---|---|---|---|
data |
array of ContactAddress | yes |
Errors are problem details with a stable code: see Errors.
Add a address
POST https://staging-api.naruskacrm.com/v1/contacts/{id}/addresses
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
type |
home, delivery, billing |
yes | |
street |
string or null | at most 500 characters | |
postal_code |
string or null | at most 20 characters | |
city |
string or null | at most 200 characters | |
region |
string or null | at most 200 characters | |
country |
string | yes | |
is_primary |
boolean |
Response 201
Returns: ContactAddress.
Errors are problem details with a stable code: see Errors.
Update a address
PATCH https://staging-api.naruskacrm.com/v1/contacts/{id}/addresses/{childId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
childId |
path | string (uuid) | yes |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
type |
home, delivery, billing |
||
street |
string or null | at most 500 characters | |
postal_code |
string or null | at most 20 characters | |
city |
string or null | at most 200 characters | |
region |
string or null | at most 200 characters | |
country |
string | ||
is_primary |
boolean |
Response 200
Returns: ContactAddress.
Errors are problem details with a stable code: see Errors.
Remove a address
DELETE https://staging-api.naruskacrm.com/v1/contacts/{id}/addresses/{childId}
Parameters
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
id |
path | string (uuid) | yes | |
childId |
path | string (uuid) | yes |
Response 204
Done. No body.
Errors are problem details with a stable code: see Errors.