How to read conversations via API?

Markdown

View as Markdown

The Conversations API gives you programmatic access to your support inbox: list and filter conversations, read full message threads, and follow the internal discussion your team keeps alongside each one.

What a conversation is

A conversation is a thread between a customer (the contact) and your team. Each one carries:

  • Messages — the visible thread: inbound customer messages, outbound agent replies, and AI-generated answers.
  • Discussion — a separate internal-only thread for team coordination. Customers never see it.
  • A draft — at most one in-progress reply stored on the conversation.
  • Status (open, pending, closed), an optional assignee, and the contact.

Conversations have both an id (used in all API paths) and a human-facing number (what your team sees as "#422"). To resolve a number to a full conversation:

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/number/422"

Channels

The from field tells you where a conversation originated:

fromChannel
emailThe customer emailed your support address.
widgetThe customer chatted via the embedded widget.
websiteThe customer interacted on your help center website (e.g. AI search).

Read endpoints work identically for all channels. Replies are always delivered by email, whatever the channel — see How to reply to customers via API?

Message roles

RoleMeaning
userInbound message from the customer.
agentOutbound message from a human agent.
aiAI-generated reply (common on widget and website conversations).
noteInternal discussion entry posted by a teammate.
systemSystem-generated entry.

Read a conversation

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID"

One call returns everything: metadata, contact, assignee, the stored draft, all messages, and the full discussion thread — both sorted newest-first.

To keep responses manageable, each message body is truncated at 2,000 characters. Truncated entries carry "truncated": true and a content_length object with the real lengths. To read a full body, fetch the entry by ID — the single-message response is never truncated:

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID/messages/MESSAGE_ID"

The :messageId parameter accepts either the message's id or its email message_id (the RFC 5322 Message-ID — URL-encode it, since it contains <, >, and @). The same endpoint returns discussion entries too.

Please Note

Reading a conversation via the API does not mark it as read in the dashboard.

List and filter conversations

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations?status=open&unread=true&limit=20"

Each conversation in a list response inlines its 5 most recent messages and the full discussion thread (truncated the same way). messages_has_more: true means older messages exist — fetch the single conversation to read them.

ParameterDescription
statusFilter by open, pending, or closed. Repeat the parameter for multiple.
assigneeFilter by assignee user ID, or unassigned.
contactFilter by contact ID.
mentionedConversations where a user was mentioned in discussion. Pass me for the key's owner, or a user ID. Repeat for OR semantics.
searchFull-text search across messages and metadata.
unreadtrue to return only unread conversations.
created_after / created_beforeISO 8601 bounds on creation time.
limit, starting_after, ending_beforeCursor pagination (1–100, default 50).

GET /conversations/count honors the same filters and returns totals per status (open, pending, closed, total).

List your team

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/users"

Returns the members of your center — the user IDs you need for assignee filters, assignment, and mentions.

Endpoint reference

ActionMethodEndpointScope
List conversationsGET/v0/centers/:centerId/conversationsconversation.read
Count conversationsGET/v0/centers/:centerId/conversations/countconversation.read
Get conversationGET/v0/centers/:centerId/conversations/:conversationIdconversation.read
Get by numberGET/v0/centers/:centerId/conversations/number/:numberconversation.read
Get messageGET/v0/centers/:centerId/conversations/:conversationId/messages/:messageIdconversation.read
List center usersGET/v0/centers/:centerId/usersconversation.read

Next steps

Related Articles

Was this article helpful?