Tasks
Tasks of the team, optionally linked to a contact, deal or conversation.
Tasks of the team, optionally linked to a contact, deal or conversation.
List tasks
GET /tasks
| Scope | Package | Idempotency-Key |
|---|---|---|
tasks:read | Scale (API) | not used |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | 1 to 100. Default 25. |
offset | query | integer | Default 0. |
open | query | boolean | true: only open tasks, false: only done. |
deal_id | query | string (uuid) | |
contact_id | query | string | |
due_before | query | string (date-time) | |
cursor | query | string | Keyset paging: empty for the first page, then pagination.next_cursor. Same cost at any depth; replaces offset. |
Request
curl "https://hevia.app/api/v1/tasks?open=true" \
-H "Authorization: Bearer $HEVIA_KEY"Response
200 OK.
JSON
{
"data": [
{
"id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"title": "Website relaunch",
"note": "example note",
"due_at": "2026-11-10T09:30:00.000Z",
"done_at": "2026-11-10T09:30:00.000Z",
"contact_id": "e:anna@example.com",
"company_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"deal_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"conversation_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"created_at": "2026-11-10T09:30:00.000Z",
"updated_at": "2026-11-10T09:30:00.000Z"
}
],
"pagination": {
"limit": 25,
"offset": 0,
"total": 1,
"next_offset": null
}
}Fields of Task:
| Field | Type | Description |
|---|---|---|
id | string (uuid) | |
title | string | |
note | string | null | |
due_at | string | null | |
done_at | string | null | |
contact_id | string | null | |
company_id | string | null | |
deal_id | string | null | |
conversation_id | string | null | |
created_at | string (date-time) | |
updated_at | string (date-time) |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | Invalid request |
| 401 | unauthorized | Missing or invalid key |
| 403 | insufficient_scope | The key or token does not have the scope of the endpoint. |
| 403 | plan_required | The business's package does not include the API (Scale) or the feature of the endpoint. |
| 429 | rate_limited | Rate limit (120 requests per minute and key); see the RateLimit-* headers |
Create a task
POST /tasks
| Scope | Package | Idempotency-Key |
|---|---|---|
tasks:write | Scale (API) | honoured |
Request body
JSON object TaskInput.
| Field | Type | Description |
|---|---|---|
title | string | |
note | string | |
due_at | string (date-time) | |
done | boolean | |
contact_id | string | |
company_id | string (uuid) | |
deal_id | string (uuid) | |
conversation_id | string (uuid) |
Request
curl -X POST "https://hevia.app/api/v1/tasks" \
-H "Authorization: Bearer $HEVIA_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"title":"Call Anna back","due_at":"2026-11-20T09:00:00Z","contact_id":"e:anna@example.com"}'Response
200 Updated or replayed, 201 Created.
JSON
{
"data": {
"id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"title": "Website relaunch",
"note": "example note",
"due_at": "2026-11-10T09:30:00.000Z",
"done_at": "2026-11-10T09:30:00.000Z",
"contact_id": "e:anna@example.com",
"company_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"deal_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"conversation_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"created_at": "2026-11-10T09:30:00.000Z",
"updated_at": "2026-11-10T09:30:00.000Z"
},
"created": true
}Fields of Task:
| Field | Type | Description |
|---|---|---|
id | string (uuid) | |
title | string | |
note | string | null | |
due_at | string | null | |
done_at | string | null | |
contact_id | string | null | |
company_id | string | null | |
deal_id | string | null | |
conversation_id | string | null | |
created_at | string (date-time) | |
updated_at | string (date-time) |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | Invalid request |
| 401 | unauthorized | Missing or invalid key |
| 403 | insufficient_scope | The key or token does not have the scope of the endpoint. |
| 403 | plan_required | The business's package does not include the API (Scale) or the feature of the endpoint. |
| 409 | conflict | Idempotency-Key conflict (same key, different request, or still running) |
| 413 | payload_too_large | Body too large |
| 422 | invalid_request | Invalid body |
| 429 | rate_limited | Rate limit (120 requests per minute and key); see the RateLimit-* headers |
Change a task or mark it done
PATCH /tasks/{id}
| Scope | Package | Idempotency-Key |
|---|---|---|
tasks:write | Scale (API) | not used |
Send only the fields you change. done: true marks the task done, done: false opens it again.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id (required) | path | string (uuid) | Id |
Request body
JSON object TaskInput.
| Field | Type | Description |
|---|---|---|
title | string | |
note | string | |
due_at | string (date-time) | |
done | boolean | |
contact_id | string | |
company_id | string (uuid) | |
deal_id | string (uuid) | |
conversation_id | string (uuid) |
Request
curl -X PATCH "https://hevia.app/api/v1/tasks/3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70" \
-H "Authorization: Bearer $HEVIA_KEY" \
-H "Content-Type: application/json" \
-d '{"done":true}'Response
200 OK.
JSON
{
"data": {
"id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"title": "Website relaunch",
"note": "example note",
"due_at": "2026-11-10T09:30:00.000Z",
"done_at": "2026-11-10T09:30:00.000Z",
"contact_id": "e:anna@example.com",
"company_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"deal_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"conversation_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"created_at": "2026-11-10T09:30:00.000Z",
"updated_at": "2026-11-10T09:30:00.000Z"
}
}Fields of Task:
| Field | Type | Description |
|---|---|---|
id | string (uuid) | |
title | string | |
note | string | null | |
due_at | string | null | |
done_at | string | null | |
contact_id | string | null | |
company_id | string | null | |
deal_id | string | null | |
conversation_id | string | null | |
created_at | string (date-time) | |
updated_at | string (date-time) |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | Invalid request |
| 401 | unauthorized | Missing or invalid key |
| 403 | insufficient_scope | The key or token does not have the scope of the endpoint. |
| 403 | plan_required | The business's package does not include the API (Scale) or the feature of the endpoint. |
| 404 | not_found | Not found |
| 413 | payload_too_large | Body too large |
| 422 | invalid_request | Invalid body |
| 429 | rate_limited | Rate limit (120 requests per minute and key); see the RateLimit-* headers |