Contacts
Customer records: people who wrote, booked, bought or were imported.
Customer records: people who wrote, booked, bought or were imported. A contact is identified by its e-mail address (e:<email>), phone number (p:<digits>) or a generated id (m:<uuid>).
List contacts
GET /contacts
| Scope | Package | Idempotency-Key |
|---|---|---|
contacts:read | Scale (API) | not used |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | 1 to 100. Default 25. |
offset | query | integer | Default 0. |
email | query | string | Exact e-mail address. |
updated_since | query | string (date-time) | ISO moment; only records changed at or after it. |
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/contacts?limit=25" \
-H "Authorization: Bearer $HEVIA_KEY"Response
200 OK.
JSON
{
"data": [
{
"id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"name": "Anna Example",
"email": "anna@example.com",
"phone": "+49 30 1234567",
"company_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"fields": {},
"tags": [
"example tag"
],
"note": "example note",
"merged_into": "example merged into",
"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 Contact:
| Field | Type | Description |
|---|---|---|
id | string | Identity: e:<email>, p:<digits> or m:<uuid> |
name | string | null | |
email | string | null | |
phone | string | null | |
company_id | string | null | |
fields | object | |
tags | string[] | |
note | string | null | |
merged_into | 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 or update a contact (matched by e-mail or phone)
POST /contacts
| Scope | Package | Idempotency-Key |
|---|---|---|
contacts:write | Scale (API) | honoured |
At least one of name, email or phone is required (400 invalid_request, field name). An existing contact with the same e-mail address or phone number is updated instead of duplicated; the answer says so with created.
Request body
JSON object ContactInput.
| Field | Type | Description |
|---|---|---|
name | string | |
email | string (email) | |
phone | string | |
company_id | string | |
tags | string[] | |
fields | object | |
note | string |
Request
curl -X POST "https://hevia.app/api/v1/contacts" \
-H "Authorization: Bearer $HEVIA_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"name":"Anna Example","email":"anna@example.com","phone":"+49 30 1234567","tags":["newsletter"]}'Response
200 Updated or replayed, 201 Created.
JSON
{
"data": {
"id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"name": "Anna Example",
"email": "anna@example.com",
"phone": "+49 30 1234567",
"company_id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
"fields": {},
"tags": [
"example tag"
],
"note": "example note",
"merged_into": "example merged into",
"created_at": "2026-11-10T09:30:00.000Z",
"updated_at": "2026-11-10T09:30:00.000Z"
},
"created": true
}Fields of Contact:
| Field | Type | Description |
|---|---|---|
id | string | Identity: e:<email>, p:<digits> or m:<uuid> |
name | string | null | |
email | string | null | |
phone | string | null | |
company_id | string | null | |
fields | object | |
tags | string[] | |
note | string | null | |
merged_into | 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 |