# How to participate in discussions via API?

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
> [https://developers.help.center/article/1019-how-to-reply-to-customers-via-api],
> 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
> [https://developers.help.center/article/1026-which-webhook-events-can-i-subscribe-to].


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

 * How to update conversations via API?
   [https://developers.help.center/article/1020-how-to-update-conversations-via-api]
 * How to read conversations via API?
   [https://developers.help.center/article/1018-how-to-read-conversations-via-api]