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

Recent activity across the project

GET
https://apac.zocton.com/entayo-crm/api
/activities/recent
Bearer (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 (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