Before you go, take 40% off annual plans

Leave your email and get 40% off any Zocton plan paid annually, for your first 2 years.

Applies to annual billing only. We only use your email to honour this discount.

Skip to content
Sign in
Entayo CRM API

People & Companies

Serverhttps://apac.zocton.com/entayo-crm/api

Master data — every person and company in the project. kind is people or companies. A row has two ids: id (the master id, used by lists and campaigns) and entity_id (the record id, used by every /entities/{id} endpoint, activity and tasks).


Search people or companies

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}
Bearer (zk_… or entayo_…)

Paged rows of every person or company in the project, with their columns. Filter with search, list_id, f_<column>=<value> (any column, exact match, e.g. f_country=Germany) or the encoded filter (see Filters).

Structured filters (CRM 0.154.0): filters is a JSON array of {field, op, value} on any column slug (custom columns, created_at and updated_at too), all of which must hold; any_of is a JSON array of groups (each an array of conditions that all hold), of which any one must hold. Ops: eq, neq, in, not_in, contains, not_contains, contains_any, not_contains_any, contains_all, starts_with, ends_with, gt, gte, lt, lte, between ([low, high]), is_empty, not_empty. Text compares case-insensitively; dates are YYYY-MM-DD. An unknown field, or an op the column's type has no meaning for, is a 400 naming it — never ignored.

fields=email,title answers slim rows: id, entity_id and those columns only, without the per-row lists, stage and flags.

Search people or companies › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Search people or companies › query Parameters

search
​string

Free text over the row.

list_id
​integer

Only members of this list.

membership
​string · enum
Enum values:
any
in_list
not_in_list
Default: any
sort
​string

A column slug, or created_at.

Default: created_at
order
​string · enum
Enum values:
asc
desc
Default: desc
page
​integer · min: 1
Default: 1
limit
​integer · min: 1 · max: 1000
Default: 200
filter
​string

An encoded filter — see Filters.

assigned
​string

Only contacts assigned to this team member id (me for yourself, in a team).

filters
​string

JSON array of {field, op, value}, ANDed, e.g. [{"field":"email_status","op":"eq","value":"Verified"}]

any_of
​string

JSON array of groups of conditions; a row matches when any group holds

in_list_ids
​string

Comma-separated list ids: only rows in at least one.

exclude_list_ids
​string

Comma-separated list ids: skip rows in any of them.

fields
​string

Comma-separated column slugs: slim rows.

strict
​string · enum

An unknown sort is a 400 instead of the newest-first default.

Enum values:
1

Search people or companies › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Search people or companies › Responses

One page of rows.

​Column[]
kind
​string · enum
Enum values:
person
company
total
​integer
page
​integer
limit
​integer
total_pages
​integer

Create a person or company

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}
Bearer (zk_… or entayo_…)

values maps column slugs (from List columns) to values. At least one value is required. The answer carries both ids.

Create a person or company › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Create a person or company › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Create a person or company › Request Body

​object · required

column slug → value

Create a person or company › Responses

Created.

A person or company: its columns as keys (first_name, email, company_name, country …).
id
​integer

Master id.

entity_id
​integer | null

Record id.

created_at
​string · date-time
updated_at
​string · date-time

Count people or companies, per value of a column

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}/facets
Bearer (zk_… or entayo_…)

How many rows match, with the same filters as Search (search, list_id, filter, filters, any_of, in_list_ids, exclude_list_ids). With group_by: the count per value of that column, most common first; value: null is "no value". split=1 counts each comma-separated part (departments, keywords). CRM 0.154.0.

Count people or companies, per value of a column › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Count people or companies, per value of a column › query Parameters

group_by
​string

A column slug.

top
​integer · min: 1 · max: 500
Default: 50
split
​string · enum
Enum values:
1
filters
​string
any_of
​string
in_list_ids
​string
exclude_list_ids
​string
search
​string
list_id
​integer

Count people or companies, per value of a column › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Count people or companies, per value of a column › Responses

The counts.

kind
​string · enum
Enum values:
person
company
total
​integer
group_by
​string | null
​object[]
distinct_values
​integer

List columns

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}/fields
Bearer (zk_… or entayo_…)

Every column of people or companies — the slugs to use in values, field_values, f_… and filters.

List columns › path Parameters

kind
​string · enum · required
Enum values:
people
companies

List columns › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

List columns › Responses

The columns.

kind
​string
​Column[]

Add custom columns

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/fields
Bearer (zk_… or entayo_…)

Add custom columns › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Add custom columns › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Add custom columns › Request Body

​object[] · required

Add custom columns › Responses

{ kind, created } — the columns made.

No data returned

All matching master ids

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}/ids
Bearer (zk_… or entayo_…)

The master ids of every row matching the same query as Search (no paging) — for "select all" then a bulk action.

All matching master ids › path Parameters

kind
​string · enum · required
Enum values:
people
companies

All matching master ids › query Parameters

search
​string
list_id
​integer
filter
​string

An encoded filter — see Filters.

assigned
​string

Only contacts assigned to this team member id (me for yourself, in a team).

All matching master ids › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

All matching master ids › Responses

The ids.

No data returned

Search people, slim

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}/lookup
Bearer (zk_… or entayo_…)

Search people and get back only id (master id), name, email, company and title — the shape a contact picker needs. Takes the same search, list_id, filter, sort, order and page as List people; limit defaults to 50 (at most 200). kind must be people (companies → 400).

Search people, slim › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Search people, slim › query Parameters

search
​string
list_id
​integer

Only members of this list.

filter
​string

An encoded filter — see Filters.

page
​integer · min: 1
Default: 1
limit
​integer · min: 1 · max: 200
Default: 50

Search people, slim › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Search people, slim › Responses

The matching people, slim.

No data returned

Look up people by master id

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/lookup
Bearer (zk_… or entayo_…)

Name, email and ids of the given people (kind must be people). Up to 500 ids are answered; truncated says when more were sent.

Look up people by master id › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Look up people by master id › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Look up people by master id › Request Body

ids
​integer[] · required

Look up people by master id › Responses

{ contacts, requested, truncated }.

No data returned

Count missing locations

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}/location
Bearer (zk_… or entayo_…)

How many people (or companies) in the project have no timezone, country or state.

Count missing locations › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Count missing locations › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Count missing locations › Responses

The total and how many lack each value.

total
​integer
timezone
​integer
country
​integer
state
​integer

Set timezone, country or state in bulk

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/location
Bearer (zk_… or entayo_…)

Sets a timezone, country and/or state on many rows. Name the rows with exactly one of master_ids, entity_ids, list_id or all: true — nothing named is a 400, never "every row". With only_missing: true only blank values are filled. The timezone must be a real IANA zone (Europe/Berlin).

Set timezone, country or state in bulk › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Set timezone, country or state in bulk › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Set timezone, country or state in bulk › Request Body

master_ids
​integer[]
entity_ids
​integer[]
list_id
​integer
all
​boolean

true to change every row of the project.

timezone
​string
country
​string
state
​string
only_missing
​boolean
Default: false

Set timezone, country or state in bulk › Responses

How many rows changed.

No data returned

Delete people or companies

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/delete
Bearer (zk_… or entayo_…)

Deletes the rows and their records, activity and tasks. Cannot be undone. Give master_ids or entity_ids, or all: true for every row.

Delete people or companies › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Delete people or companies › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Delete people or companies › Request Body

master_ids
​integer[]
entity_ids
​integer[]
all
​boolean

Delete people or companies › Responses

{ deleted } — how many were deleted.

No data returned

Import rows

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/import
Bearer (zk_… or entayo_…)

Import a chunk of rows (the CSV import's engine). Each row is an object of source column → value; column_mapping maps source columns to column slugs. Existing people/companies are matched by their unique key (email, domain …) and updated or skipped by overwrite_existing. Send large files in chunks of a few hundred rows.

Import rows › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Import rows › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Import rows › Request Body

​object[] · required
​object · required

source column → column slug

overwrite_existing
​boolean
Default: false
add_to_list_id
​integer

Put every imported row in this list.

row_lists
​array | null

One entry per row (null or [] = none): more lists that row goes into, e.g. the WhatsApp group lists from POST /whatsapp-lists. Every id must be a list of this project.

source
​string

A label for where the rows came from.

Import rows › Responses

{ inserted, updated, skipped, kept, untouched, … }.

No data returned

Check rows for duplicates

POST
https://apac.zocton.com/entayo-crm/api
/master/check-duplicates
Bearer (zk_… or entayo_…)

Before an import — which rows already exist, and which would change.

Check rows for duplicates › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Check rows for duplicates › Request Body

kind
​string · enum · required
Enum values:
person
company
​object[] · required

Rows keyed by column slug.

Check rows for duplicates › Responses

{ kind, checked, matched, conflicted, unchanged, unkeyed, … }.

No data returned

Merge people

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/merge
Bearer (zk_… or entayo_…)

Merge 2–20 people into one (kind must be people). The same engine as the Merge button.

Merge people › path Parameters

kind
​string · enum · required
Enum values:
people
companies

Merge people › Headers

X-Entayo-Project
​integer · min: 1

The project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.

Merge people › Request Body

keep_master_id
​integer

The person to keep.

merge_master_ids
​integer[]

The people merged into it (1–19).

keep_entity_id
​integer

Or by record id.

merge_entity_ids
​integer[]
preview
​boolean

true → only show the candidates (send master_ids or entity_ids); nothing is merged.

master_ids
​integer[]
entity_ids
​integer[]

Merge people › Responses

The merge result (or, with preview, the candidates).

No data returned