Skip to content
Documentation
Hevia for developers

Conversations

Chat conversations with their messages as the guest saw them.

Chat conversations with their messages as the guest saw them. Internal notes of the team are never part of the API.

List conversations

GET /conversations

ScopePackageIdempotency-Key
conversations:readScale (API)not used

An unknown filter value is a 400 invalid_request with field filter.

Parameters

NameInTypeDescription
limitqueryinteger1 to 100. Default 25.
offsetqueryintegerDefault 0.
filterquerystringOne of all, open, request, live, unassigned, done.
includequerystringOne of messages.

Request

curl "https://hevia.app/api/v1/conversations?filter=open&limit=25" \
  -H "Authorization: Bearer $HEVIA_KEY"

Response

200 OK.

JSON
{
  "data": [
    {
      "id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
      "language": "de",
      "status": "open",
      "inbox_status": "example inbox status",
      "priority": "example priority",
      "assignee_name": "example assignee name",
      "tags": [
        "example tag"
      ],
      "contact": {
        "name": "Anna Example",
        "email": "anna@example.com",
        "phone": "+49 30 1234567"
      },
      "started_at": "2026-11-10T09:30:00.000Z",
      "updated_at": "2026-11-10T09:30:00.000Z",
      "message_count": 1,
      "messages": [
        {
          "role": "guest",
          "content": "Do you have a table for four tonight?",
          "at": "2026-11-10T09:30:00.000Z",
          "author": "example author"
        }
      ]
    }
  ],
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 1,
    "next_offset": null
  }
}

Fields of Conversation:

FieldTypeDescription
idstring (uuid)
languagestring
statusstring
inbox_statusstring | null
prioritystring | null
assignee_namestring | null
tagsstring[]
contactobject | null
started_atstring (date-time)
updated_atstring (date-time)
message_countinteger
messagesMessage[]

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

One conversation with its messages (internal notes are never included)

GET /conversations/{id}

ScopePackageIdempotency-Key
conversations:readScale (API)not used

Parameters

NameInTypeDescription
id (required)pathstring (uuid)Id

Request

curl "https://hevia.app/api/v1/conversations/3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70" \
  -H "Authorization: Bearer $HEVIA_KEY"

Response

200 OK.

JSON
{
  "data": {
    "id": "3f1c2a9e-5b7d-4e21-9c0a-6d8e2f4b1a70",
    "language": "de",
    "status": "open",
    "inbox_status": "example inbox status",
    "priority": "example priority",
    "assignee_name": "example assignee name",
    "tags": [
      "example tag"
    ],
    "contact": {
      "name": "Anna Example",
      "email": "anna@example.com",
      "phone": "+49 30 1234567"
    },
    "started_at": "2026-11-10T09:30:00.000Z",
    "updated_at": "2026-11-10T09:30:00.000Z",
    "message_count": 1,
    "messages": [
      {
        "role": "guest",
        "content": "Do you have a table for four tonight?",
        "at": "2026-11-10T09:30:00.000Z",
        "author": "example author"
      }
    ]
  }
}

Fields of Conversation:

FieldTypeDescription
idstring (uuid)
languagestring
statusstring
inbox_statusstring | null
prioritystring | null
assignee_namestring | null
tagsstring[]
contactobject | null
started_atstring (date-time)
updated_atstring (date-time)
message_countinteger
messagesMessage[]

Errors

StatusCodeWhen
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
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.