How to update conversations via API?

Markdown

View as Markdown

The update endpoint keeps your inbox organized programmatically: change a conversation's status as it moves through your workflow, and assign it to the right teammate.

Update a conversation

curl -s -X PATCH \
  -H "Authorization: Bearer $HC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "pending",
    "assignee": "USER_ID"
  }' \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID"

Requires the conversation.write scope. At least one field must be provided; the response is the updated conversation.

FieldDescription
statusOne of open, pending, closed. Any other value returns 400 invalid_status.
assigneeA user ID from your center, or null to unassign. A user outside the center returns 400 invalid_assignee.

Status values

StatusMeaning
openNew or active — needs attention.
pendingIn progress — being worked on but not closed.
closedResolved.

Assign and unassign

Find user IDs with the center users endpoint:

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

Then pass the ID as assignee — or null to leave the conversation unassigned:

curl -s -X PATCH \
  -H "Authorization: Bearer $HC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "assignee": null }' \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID"

Tip

Closing or re-opening a conversation is a deliberate action your team can see. If you build automation on this endpoint, make status changes explicit and logged — not a side effect. Updates also fire the conversation_updated webhook, so downstream systems can react.

Endpoint reference

ActionMethodEndpointScope
Update conversationPATCH/v0/centers/:centerId/conversations/:conversationIdconversation.write
List center usersGET/v0/centers/:centerId/usersconversation.read

Next steps

Related Articles

Was this article helpful?