Skip to content
Documentation
Hevia for developers

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

ScopePackageIdempotency-Key
tasks:readScale (API)not used

Parameters

NameInTypeDescription
limitqueryinteger1 to 100. Default 25.
offsetqueryintegerDefault 0.
openquerybooleantrue: only open tasks, false: only done.
deal_idquerystring (uuid)
contact_idquerystring
due_beforequerystring (date-time)
cursorquerystringKeyset 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:

FieldTypeDescription
idstring (uuid)
titlestring
notestring | null
due_atstring | null
done_atstring | null
contact_idstring | null
company_idstring | null
deal_idstring | null
conversation_idstring | null
created_atstring (date-time)
updated_atstring (date-time)

Errors

StatusCodeWhen
400invalid_requestInvalid request
401unauthorizedMissing or invalid key
403insufficient_scopeThe key or token does not have the scope of the endpoint.
403plan_requiredThe business's package does not include the API (Scale) or the feature of the endpoint.
429rate_limitedRate limit (120 requests per minute and key); see the RateLimit-* headers

Create a task

POST /tasks

ScopePackageIdempotency-Key
tasks:writeScale (API)honoured

Request body

JSON object TaskInput.

FieldTypeDescription
titlestring
notestring
due_atstring (date-time)
doneboolean
contact_idstring
company_idstring (uuid)
deal_idstring (uuid)
conversation_idstring (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:

FieldTypeDescription
idstring (uuid)
titlestring
notestring | null
due_atstring | null
done_atstring | null
contact_idstring | null
company_idstring | null
deal_idstring | null
conversation_idstring | null
created_atstring (date-time)
updated_atstring (date-time)

Errors

StatusCodeWhen
400invalid_requestInvalid request
401unauthorizedMissing or invalid key
403insufficient_scopeThe key or token does not have the scope of the endpoint.
403plan_requiredThe business's package does not include the API (Scale) or the feature of the endpoint.
409conflictIdempotency-Key conflict (same key, different request, or still running)
413payload_too_largeBody too large
422invalid_requestInvalid body
429rate_limitedRate limit (120 requests per minute and key); see the RateLimit-* headers

Change a task or mark it done

PATCH /tasks/{id}

ScopePackageIdempotency-Key
tasks:writeScale (API)not used

Send only the fields you change. done: true marks the task done, done: false opens it again.

Parameters

NameInTypeDescription
id (required)pathstring (uuid)Id

Request body

JSON object TaskInput.

FieldTypeDescription
titlestring
notestring
due_atstring (date-time)
doneboolean
contact_idstring
company_idstring (uuid)
deal_idstring (uuid)
conversation_idstring (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:

FieldTypeDescription
idstring (uuid)
titlestring
notestring | null
due_atstring | null
done_atstring | null
contact_idstring | null
company_idstring | null
deal_idstring | null
conversation_idstring | null
created_atstring (date-time)
updated_atstring (date-time)

Errors

StatusCodeWhen
400invalid_requestInvalid request
401unauthorizedMissing or invalid key
403insufficient_scopeThe key or token does not have the scope of the endpoint.
403plan_requiredThe business's package does not include the API (Scale) or the feature of the endpoint.
404not_foundNot found
413payload_too_largeBody too large
422invalid_requestInvalid body
429rate_limitedRate limit (120 requests per minute and key); see the RateLimit-* headers

Generated from the product's own registries, so the reference matches the API.