Easymailing
Activity

List the activity of a record

GET /activities

GET/activities

Returns the activity timeline of one contact, company or opportunity, newest first: what happened and who did it, as the Activity tab of the record in the Customer App shows it. It covers changes to the record, tasks, notes, files, emails and meetings linked to it and, for a contact, also its subscriptions, campaign results, automations, orders, forms and surveys.

When to use: To know what has happened with a record before acting on it: the last emails and meetings, who changed what, which campaigns it received, how an opportunity moved through its stages. Narrow it with category[], type[] and the dates when the record has a long history.

When not to use: It is read-only: to add something to the timeline, create a note with create_note or a task with create_task; the activity is written by the action itself. To read the full text of a note, use get_note or list_notes; for tasks, list_tasks. To read one member's subscription history in an audience, use list_member_activities, which is empty in accounts that already use the new Customer App. There is no combined timeline of the whole account: you must name the record.

Filters: Exactly one of contact, company or opportunity is required, with the UUID of the record. A UUID that is not valid, does not exist or belongs to a record the user cannot see gives 404. category[] and type[] keep only those categories and types; occurred_from and occurred_to keep a range of days in the time zone of the account. The order is fixed (most recent occurred_at first); there is no order parameter and no text search. A company or an opportunity only has crm rows and the automation rows of the workflows it went through, so another category gives an empty list. Visibility is decided row by row: a task or note row is hidden to a user without crm.tasks_notes.read or who cannot see that task, and an email or meeting row is hidden to a user who cannot read that mailbox or calendar. Hidden rows are not removed: they come back with availability unavailable (or deleted when the email or meeting was deleted for good), no data and an anonymous actor, so the list never leaks their content. Rows from a Google mailbox or calendar that was disconnected are not returned at all. Pagination: activity is paged with itemsPerPage (default 25, maximum 50) and an opaque cursor[gt]: to read the next page, call again with the same record and the same filters and the cursor[gt] of the hydra:next link of the previous response. The cursor only works for the same user, record and filters. The response gives the total number of rows in hydra:totalItems, counted when the first page is read (hidden rows count; rows written afterwards do not change it); keep following hydra:next until a page comes back empty.

Permissions: Requires any of the contacts.read, crm.contacts_companies.read or crm.opportunities.read capabilities. Reading a contact requires the contacts.read capability; no CRM seat is needed. The rows of the crm category (company, owner, opportunities, tasks, notes, files, emails and meetings) are included only if the user also has a CRM seat and crm.contacts_companies.read; without them they are left out silently. Reading a company requires a CRM seat and crm.contacts_companies.read. Reading an opportunity requires a CRM seat, crm.opportunities.read and read access to its pipeline.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

contact?string

UUID of a contact: its activity. Send exactly one of contact, company and opportunity.

Formatuuid
company?string

UUID of a company: its activity. Send exactly one of contact, company and opportunity.

Formatuuid
opportunity?string

UUID of an opportunity: its activity. Send exactly one of contact, company and opportunity.

Formatuuid
category[]?array<>

Keep only these categories (up to 8). Repeat the parameter to send several: category[]=marketing&category[]=crm. Values are combined with OR. Without it, every category the user can see is returned.

type[]?array<string>

Keep only these activity types, for example marketing.email.campaign or opportunity.stage_changed (up to 60, each up to 190 characters). Repeat the parameter to send several. Values are combined with OR and with the category filter by AND.

occurred_from?string

First day to include, YYYY-MM-DD, in the time zone of the account.

Formatdate
occurred_to?string

Last day to include, YYYY-MM-DD, in the time zone of the account, until 23:59:59.

Formatdate
itemsPerPage?integer

Activities per page. Default 25, maximum 50.

Range1 <= value <= 50
Default25
cursor[gt]?string

Opaque cursor of the next page, taken from the hydra:next link of the previous response. Use it only with the same record and the same filters, as the same user.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/activities?contact=3a9e1f52-6c47-4d08-b1a3-9e2d7c5f8a40&company=7f3c2a10-5b8e-4d1a-9c2e-3a6f0b9d4e21&opportunity=5d8a3c16-9e2b-4f70-a1c4-6b0e7d3f2a95&category%5B%5D=marketing&category%5B%5D=crm&type%5B%5D=note.created&type%5B%5D=task.completed&occurred_from=2026-10-01&occurred_to=2026-10-31&itemsPerPage=25&cursor%5Bgt%5D=q3F0aGlzLWlzLW5vdC1hLXJlYWwtY3Vyc29y" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "type": "string",    "category": "contact",    "channel": "email",    "occurred_at": "2019-08-24T14:15:22Z",    "first_occurred_at": "2019-08-24T14:15:22Z",    "last_occurred_at": "2019-08-24T14:15:22Z",    "occurrence_count": 1,    "initiated_via": "ui",    "actor": {      "kind": "user",      "name": "string"    },    "availability": "available",    "data": {      "email": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "access": "metadata_only",        "content_state": "index_only",        "subject": "string",        "snippet": "string",        "preview": "string",        "sender_name": "string",        "sender_address": "string",        "sender_kind": "string",        "sender_contact_id": "78611e60-84e8-44b3-9903-38fa0f37ff75",        "sent_by_name": "string",        "recipient_name": "string",        "recipient_address": "string",        "recipient_kind": "string",        "recipient_contact_id": "5eac5e12-afec-481c-9f5c-255d733b75b3",        "recipient_others": 0,        "attachment_count": 0,        "ai_summary": "string",        "ai_summary_state": "none"      },      "meeting": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "title": "string",        "conference_type": "string",        "conference_url": "string",        "original_time_zone": "string",        "location": "string",        "participant_count": 0,        "organizer_name": "string",        "booking": {          "page_title": "string",          "guest_name": "string"        }      },      "campaign": {        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",        "subject": "string",        "thumbnail_url": "string",        "sent_at": "2019-08-24T14:15:22Z"      },      "reference": {        "kind": "note",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "execution_id": "02ca5b65-a269-4c45-8d4a-0c74ff3ae670",        "preview": {}      }    },    "causation_id": "string"  }]