Activity
Timelines and follow-ups: contact/deal activities, pinned notes, to-do tasks, the calls log, and the meetings log.
All endpoints require a Bearer JWT in the Authorization header plus an X-Workspace-Id header selecting the workspace.
Activities
/api/activitiesAuth requiredList timeline activities, newest first. Filter by contact or deal.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| contact_id | number | No | — |
| deal_id | number | No | — |
| limit | number | No | Default 50, max 200 |
| offset | number | No | Default 0 |
Response
[
{
"kind": "call",
"id": 9,
"subject": "Intro call with Jane",
"when": "2026-03-28T14:30:00Z",
"done": true,
"contact_id": 3,
"deal_id": null
}
]/api/activitiesAuth requiredLog an activity on a contact or deal. At least one of contact_id or deal_id is required.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| contact_id | number | No | Required unless deal_id is set |
| deal_id | number | No | Required unless contact_id is set |
| type | string | No | Default 'note' |
| description | string | Yes | Required, non-empty |
Response
{
"kind": "note",
"id": 10,
"subject": "Sent pricing one-pager",
"when": "2026-03-28T15:00:00Z",
"done": true,
"contact_id": 3,
"deal_id": 7
}/api/activities/{activity_id}Auth requiredDelete an activity.
Response
{ "deleted": 10 }Notes
/api/notesAuth requiredList free-text notes pinned to deals, contacts, or companies.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| entity | string | No | deal | contact | company |
| entity_id | number | No | — |
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 1,
"workspace_id": 1,
"entity": "deal",
"entity_id": 7,
"body": "Legal reviewing MSA",
"author": "Jane",
"created_at": "2026-03-28T10:00:00Z"
}
]/api/notesAuth requiredPin a note to an entity. entity_id is required.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| body | string | Yes | Required, non-empty |
| author | string | No | — |
| entity | string | No | Default 'deal' |
| entity_id | number | Yes | Required |
Response
{
"id": 2,
"workspace_id": 1,
"entity": "deal",
"entity_id": 7,
"body": "Champion confirmed budget",
"author": "Jane",
"created_at": "2026-03-28T11:00:00Z"
}/api/notes/{note_id}Auth requiredDelete a note.
Response
{ "deleted": 2 }Tasks
/api/tasksAuth requiredList human follow-up tasks (not agent tasks), open first, then by due date.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| done | boolean | No | — |
| owner | string | No | — |
| deal_id | number | No | — |
| limit | number | No | Default 100, max 300 |
Response
[
{
"id": 2,
"workspace_id": 1,
"ref": "T-002",
"title": "Send revised quote",
"deal_ref": "D-007",
"deal_id": 7,
"contact_id": 3,
"due_label": "Thu",
"owner": "Jane",
"done": false
}
]/api/tasksAuth requiredCreate a follow-up task.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | Required |
| contact_id | number | No | — |
| deal_id | number | No | — |
| due | string | No | Due label, e.g. 'Thu' |
| owner | string | No | — |
Response
{
"id": 3,
"ref": "T-003",
"title": "Call back Thursday",
"done": false
}/api/tasks/{task_id}Auth requiredUpdate a task. All fields optional; returns 400 when no fields are provided.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | No | — |
| contact_id | number | No | — |
| deal_id | number | No | — |
| due | string | No | — |
| owner | string | No | — |
| done | boolean | No | — |
Response
{ "id": 3, "ref": "T-003", "title": "Call back Thursday", "done": true }/api/tasks/{task_id}/toggleAuth requiredFlip a task's done flag and return the updated task.
Response
{ "id": 3, "ref": "T-003", "title": "Call back Thursday", "done": true }/api/tasks/{task_id}Auth requiredDelete a task.
Response
{ "deleted": 3 }Calls
/api/callsAuth requiredList logged calls, newest first.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| owner | string | No | — |
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 1,
"workspace_id": 1,
"ref": "C-001",
"subject": "Discovery call",
"company": "Acme Corp",
"contact_id": 3,
"when_label": "Fri Mar 28, 2:30 PM",
"duration_min": 30,
"owner": "Jane",
"summary": "Confirmed budget and timeline"
}
]/api/callsAuth requiredLog a call.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| subject | string | Yes | Required |
| company | string | No | — |
| contact_id | number | No | — |
| when_at | string | No | ISO timestamp |
| duration_min | number | No | — |
| owner | string | No | — |
| summary | string | No | — |
Response
{
"id": 2,
"ref": "C-002",
"subject": "Follow-up call",
"company": "Globex",
"when_label": "Mon Mar 30, 10:00 AM"
}/api/calls/{call_id}Auth requiredUpdate a logged call. All fields optional; returns 400 when no fields are provided.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| subject | string | No | — |
| company | string | No | — |
| contact_id | number | No | — |
| when_at | string | No | — |
| duration_min | number | No | — |
| owner | string | No | — |
| summary | string | No | — |
Response
{ "id": 2, "ref": "C-002", "subject": "Follow-up call", "duration_min": 15 }Meetings
/api/meetingsAuth requiredList logged meetings, newest first.
Query Parameters
| Field | Type | Required | Note |
|---|---|---|---|
| limit | number | No | Default 50, max 200 |
Response
[
{
"id": 1,
"workspace_id": 1,
"title": "QBR",
"company": "Acme Corp",
"contact_id": 3,
"when_label": "Fri Mar 28, 2:30 PM",
"attendees": ["jane@acme.com", "rep@hivemeld.ai"]
}
]/api/meetingsAuth requiredLog a meeting. Attendees are stored as a comma-separated string.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | Yes | Required |
| company | string | No | — |
| contact_id | number | No | — |
| when_at | string | No | ISO timestamp |
| attendees | string | No | Comma-separated emails |
Response
{
"id": 2,
"title": "Demo",
"company": "Globex",
"attendees": ["john@globex.com"]
}/api/meetings/{meeting_id}Auth requiredUpdate a logged meeting. All fields optional; returns 400 when no fields are provided.
Request Body
| Field | Type | Required | Note |
|---|---|---|---|
| title | string | No | — |
| company | string | No | — |
| contact_id | number | No | — |
| when_at | string | No | — |
| attendees | string | No | — |
Response
{ "id": 2, "title": "Demo (rescheduled)", "attendees": ["john@globex.com"] }