How to participate in discussions via API?

Markdown

View as Markdown

Every conversation carries a discussion — a thread your team uses to coordinate, separate from the messages the customer sees. The API lets you post entries, mention teammates (who get notified), and find the conversations you were mentioned in.

Please Note

Discussion is internal-only. Nothing posted there ever reaches the customer — unlike a reply, which sends a real email. The scopes are separate on purpose: discussion needs only conversation.write, never conversation.reply.

Post a discussion entry

curl -s -X POST \
  -H "Authorization: Bearer $HC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "<p>This looks like the same bug we shipped a fix for last week.</p>"
  }' \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID/discussion"

The entry is appended to the conversation's discussion and returned in the response. Discussion entries appear in conversation reads with role: "note".

Mention teammates

Mentioned users are notified by email and Slack. First, look up user IDs:

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

Then mention in either of two ways — they can be combined, and the server dedupes by user ID:

1. Inline placeholders (recommended). Write {{@USER_ID}} in the content; the server resolves each placeholder to proper mention markup with the user's display name:

curl -s -X POST \
  -H "Authorization: Bearer $HC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "<p>Hey {{@65c2d3e4f5060708091011bb}}, can you take a look at this one?</p>"
  }' \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID/discussion"

2. An explicit mentions array alongside the content — useful for notifying people without naming them inline:

{
  "content": "<p>FYI to the team on this thread.</p>",
  "mentions": ["65c2d3e4f5060708091011bb", "65c2d3e4f5060708091011cc"]
}

The response includes a resolved mentions array of {id, name, email} for every user notified. A user ID that doesn't belong to your center returns 400 invalid_mention.

Find conversations you were mentioned in

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

mentioned=me filters by the API key's owner; pass a user ID for someone else, and repeat the parameter for OR semantics.

Read a discussion

Conversation reads include the full discussion thread (newest first, entries truncated at 2,000 characters). To read a long entry in full, fetch it by ID — the same message endpoint returns discussion entries:

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

Tip

Posting an entry fires the discussion_created webhook on a conversation's first entry, and discussion_message_created for every one after it — see the webhook event reference.

Endpoint reference

ActionMethodEndpointScope
Post discussion entryPOST/v0/centers/:centerId/conversations/:conversationId/discussionconversation.write
Get entry (untruncated)GET/v0/centers/:centerId/conversations/:conversationId/messages/:messageIdconversation.read
List center usersGET/v0/centers/:centerId/usersconversation.read

Next steps

Related Articles

Was this article helpful?