Skip to main content

Toggle Conversation Priority

POST 

/accounts/:account_id/conversations/:conversation_id/toggle_priority

Set or clear the priority of a conversation.

Send priority with the new value. Leave it out, or send null, to clear the priority. The conversation's priority field shows the result.

SettingValue
MethodPOST
Path/api/v1/accounts/{account_id}/conversations/{conversation_id}/toggle_priority
AuthorizationUser token or agent-bot token. New rules: Inbox priority of conversations for the inbox.

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.

Body parameters (JSON)

NameTypeRequiredDescription
prioritystringNolow, medium, high, urgent. Omit or send null to clear it.

Example request

curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/toggle_priority' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "priority": "urgent" }'

Example response: 200 OK with an empty body. The conversation now has "priority": "urgent".

Remarks​

  • Despite its name, the endpoint does not cycle through the priorities: it sets the value you send.
  • A change fires the conversation_updated webhook event.

Request​

Responses​

The priority was changed, with an empty body.