Skip to content
Entayo CRM API

Record types & fields

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

The record types of the project (People, Companies, custom types, and lists) and their fields.


List record types

GET
https://apac.zocton.com/entayo-crm/api
/entity-types
Bearer (entayo_…)

People, Companies, custom types and lists, with their ids and slugs.

List record types › 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 record types › Responses

The record types.

id
​integer
name
​string
slug
​string
icon
​string | null
color
​string | null
is_list
​integer | boolean
master_kind
​string | null · enum
Enum values:
person
company

Create a record type

POST
https://apac.zocton.com/entayo-crm/api
/entity-types
Bearer (entayo_…)

Create a record type › 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 record type › Request Body

name
​string · required
icon
​string
color
​string

Create a record type › Responses

The new record type.

No data returned

Get a record type

GET
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}
Bearer (entayo_…)

With its fields, pipeline stages and follow-up settings.

Get a record type › path Parameters

id
​integer · min: 1 · required

Get a record type › Headers

X-Entayo-Project
​integer · min: 1

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

Get a record type › Responses

The record type.

No data returned

Update a record type

PUT
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}
Bearer (entayo_…)

Rename or recolour a record type or list, and/or set its follow-up interval. follow_up_days (0–365 whole days) is the automatic follow-up for that list's contacts only; 0 = no automatic follow-up. Saving it re-works the automatic follow-up of every contact of the list at once (last activity logged by a person + the days, or cleared for 0); follow-ups set by hand are never touched. A contact in several lists uses the shortest interval above 0.

Update a record type › path Parameters

id
​integer · min: 1 · required

Update a record type › Headers

X-Entayo-Project
​integer · min: 1

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

Update a record type › Request Body

name
​string
icon
​string
color
​string
follow_up_days
​integer · min: 0 · max: 365

0 = no automatic follow-up.

Update a record type › Responses

The record type. With follow_up_days, also follow_up_days and follow_up_updated (contacts whose follow-up changed).

No data returned

Delete a record type

DELETE
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}
Bearer (entayo_…)

Deletes the type and every record of it. Cannot be undone.

Delete a record type › path Parameters

id
​integer · min: 1 · required

Delete a record type › 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 a record type › Responses

Done.

success
​boolean

List fields of a record type

GET
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}/fields
Bearer (entayo_…)

List fields of a record type › path Parameters

id
​integer · min: 1 · required

List fields of a record type › 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 fields of a record type › Responses

The fields, in order.

No data returned

Update fields (and their order)

PUT
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}/fields
Bearer (entayo_…)

Update fields (and their order) › path Parameters

id
​integer · min: 1 · required

Update fields (and their order) › Headers

X-Entayo-Project
​integer · min: 1

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

Update fields (and their order) › Request Body

​object[] · required

Update fields (and their order) › Responses

The fields.

No data returned

Add a field

POST
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}/fields
Bearer (entayo_…)

Add a field › path Parameters

id
​integer · min: 1 · required

Add a field › 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 a field › Request Body

name
​string · required
field_type
​FieldType · enum
Enum values:
text
number
email
url
phone
date
datetime
select
is_required
​boolean
default_value
​string
options_json
​string[]

Choices for select / multi_select.

show_in_table
​boolean
is_pinned
​boolean

Add a field › Responses

The new field.

No data returned

Distinct values of a field

GET
https://apac.zocton.com/entayo-crm/api
/entity-types/{id}/field-values
Bearer (entayo_…)

The values a field holds across the type (for filter pick-lists), optionally with counts.

Distinct values of a field › path Parameters

id
​integer · min: 1 · required

Distinct values of a field › query Parameters

slug
​string · required
q
​string

Only values containing this.

counts
​string · enum
Enum values:
1
limit
​integer
filter
​string

An encoded filter — see Filters.

Distinct values of a field › Headers

X-Entayo-Project
​integer · min: 1

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

Distinct values of a field › Responses

The values.

No data returned