Appearance
Tasks and notes
Endpoints of the public API tagged Tasks and notes, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
A contact's tasks (newest first)
text
GET /api/v1/rest/contacts/{contactId}/tasks- Operation id:
listContactTasks - Scope:
tasks:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
contactId | string | yes | |
title | string | yes | |
description | string | yes | |
dueAt | string | yes | |
status | string | yes | |
completedAt | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Add a task to a contact
text
POST /api/v1/rest/contacts/{contactId}/tasks- Operation id:
createContactTask - Scope:
tasks:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
title | string | yes | |
description | string | no | |
dueAt | string | no |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
contactId | string | yes | |
title | string | yes | |
description | string | yes | |
dueAt | string | yes | |
status | string | yes | |
completedAt | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Mark a task done
text
POST /api/v1/rest/contacts/{contactId}/tasks/{taskId}/complete- Operation id:
completeContactTask - Scope:
tasks:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
taskId | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
contactId | string | yes | |
title | string | yes | |
description | string | yes | |
dueAt | string | yes | |
status | string | yes | |
completedAt | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
A contact's notes (newest first)
text
GET /api/v1/rest/contacts/{contactId}/notes- Operation id:
listContactNotes - Scope:
contacts:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
contactId | string | yes | |
body | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Add a note to a contact
text
POST /api/v1/rest/contacts/{contactId}/notes- Operation id:
createContactNote - Scope:
contacts:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
contactId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
body | string | yes |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
contactId | string | yes | |
body | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |