Skip to content
Documentation
Hevia for developers

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

ScopePackageIdempotency-Key
contacts:readScale (API)not used

Parameters

NameInTypeDescription
limitqueryinteger1 to 100. Default 25.
offsetqueryintegerDefault 0.
emailquerystringExact e-mail address.
updated_sincequerystring (date-time)ISO moment; only records changed at or after it.
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/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:

FieldTypeDescription
idstringIdentity: e:<email>, p:<digits> or m:<uuid>
namestring | null
emailstring | null
phonestring | null
company_idstring | null
fieldsobject
tagsstring[]
notestring | null
merged_intostring | 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 or update a contact (matched by e-mail or phone)

POST /contacts

ScopePackageIdempotency-Key
contacts:writeScale (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.

FieldTypeDescription
namestring
emailstring (email)
phonestring
company_idstring
tagsstring[]
fieldsobject
notestring

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:

FieldTypeDescription
idstringIdentity: e:<email>, p:<digits> or m:<uuid>
namestring | null
emailstring | null
phonestring | null
company_idstring | null
fieldsobject
tagsstring[]
notestring | null
merged_intostring | 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

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