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

Activity

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

The activity log — emails, calls, meetings, notes … on a record.


A record's activity

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

Newest first.

A record's activity › path Parameters

id
​integer · min: 1 · required

The record id (entity_id).

A record's activity › query Parameters

type
​string

An activity type slug, e.g. email.

direction
​Direction · enum
Enum values:
inbound
outbound
internal
Default: outbound
include_related
​string · enum

Also the activity of related records (a company's people).

Enum values:
1
page
​integer
Default: 1
limit
​integer
Default: 50

A record's activity › Headers

X-Entayo-Project
​integer · min: 1

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

A record's activity › Responses

One page of activity.

​Activity[]
total
​integer
page
​integer
limit
​integer

Log an activity

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

Moves the record's follow-up date on by its type's default interval.

Log an activity › path Parameters

id
​integer · min: 1 · required

The record id (entity_id).

Log an activity › Headers

X-Entayo-Project
​integer · min: 1

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

Log an activity › Request Body

activity_type_id
​integer · required

From List activity types.

direction
​Direction · enum
Enum values:
inbound
outbound
internal
Default: outbound
subject
​string
body
​string
​object
logged_by
​string · enum
Enum values:
manual
ai
Default: manual
created_at
​string · date-time

When it happened; now if left out.

Log an activity › Responses

Logged.

No data returned

Get an activity

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

Get an activity › path Parameters

id
​integer · min: 1 · required

Get an activity › 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 an activity › Responses

The activity.

No data returned

Update an activity

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

Update an activity › path Parameters

id
​integer · min: 1 · required

Update an activity › 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 an activity › Request Body

activity_type_id
​integer
direction
​Direction · enum
Enum values:
inbound
outbound
internal
Default: outbound
subject
​string
body
​string
​object
created_at
​string · date-time

Update an activity › Responses

The activity.

No data returned

Delete an activity

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

Delete an activity › path Parameters

id
​integer · min: 1 · required

Delete an activity › 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 an activity › Responses

Done.

success
​boolean

Open a TurboWorkflow email

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

The email behind an activity that TurboWorkflow logged (a campaign or workflow send): subject, HTML, to, from, when, status. It is fetched from TurboWorkflow when you ask and never stored in the CRM. Any other activity → 400. The project no longer connected to the TurboWorkflow project that sent it → 409. TurboWorkflow no longer has it → 404. TurboWorkflow not reachable → 502 or 503; try again later.

Open a TurboWorkflow email › path Parameters

id
​integer · min: 1 · required

Open a TurboWorkflow email › Headers

X-Entayo-Project
​integer · min: 1

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

Open a TurboWorkflow email › Responses

The email.

subject
​string
html
​string
to
​string | null
from
​string | null
sent_at
​string | null
status
​string | null
campaign_name
​string | null
workflow_name
​string | null
truncated
​boolean

true when a very long body was cut short.


Recent activity across the project

GET
https://apac.zocton.com/entayo-crm/api
/activities/recent
Bearer (zk_… or entayo_…)

Recent activity across the project › query Parameters

entity_type
​string

Record type slug.

activity_type
​string

Activity type slug.

direction
​Direction · enum
Enum values:
inbound
outbound
internal
Default: outbound
logged_by
​string · enum
Enum values:
manual
ai
date_from
​string · date
date_to
​string · date
search
​string
page
​integer
Default: 1
limit
​integer
Default: 50

Recent activity across the project › Headers

X-Entayo-Project
​integer · min: 1

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

Recent activity across the project › Responses

{ data, total, page, limit, total_pages }.

No data returned

Activity and follow-ups between two dates

GET
https://apac.zocton.com/entayo-crm/api
/activities/calendar
Bearer (zk_… or entayo_…)

Activity and follow-ups between two dates › query Parameters

entity_type_slug
​string · required
from
​string · date · required
to
​string · date · required

Activity and follow-ups between two dates › Headers

X-Entayo-Project
​integer · min: 1

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

Activity and follow-ups between two dates › Responses

{ activities, entity_dates }.

No data returned