Skip to content
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 (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).

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).

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 (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

List columns

GET
https://apac.zocton.com/entayo-crm/api
/master/{kind}/fields
Bearer (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 (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 (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

Look up people by master id

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

Name, email and ids of the given people (kind must be people).

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

Delete people or companies

POST
https://apac.zocton.com/entayo-crm/api
/master/{kind}/delete
Bearer (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 (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.

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 (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 (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