Skip to main content

Set Conversation Labels

POST 

/accounts/:account_id/conversations/:conversation_id/labels

Add labels to a conversation.

note

Using this request will overwrite the existing list of labels associated to the conversation: labels you leave out are removed. Send the full list — or [] to remove every label.

To add or remove single labels without sending the full list, use Bulk Update Conversations with labels.add / labels.remove. The labels themselves are managed with the Labels endpoints.

Settings:

SettingValue
URLhttps://online.99digital.co.il/api/v1/accounts/{account_id}/conversations/{conversation_id}/labels
MethodJSON via POST

Authorization:

Header ParameterDescription
api_access_tokenUser API key

The user API key provides access to endpoints based on the user's permission level, and can be obtained on the profile page.

Permissions:

  • User token: the caller must be able to see the conversation — see Who can see a conversation. New rules system: Inbox assign labels for the conversation's inbox.
  • Agent-bot token: allowed.

Path Parameters:

ParameterDescriptionRequired
account_idThe numeric ID of the accountYes
conversation_idThe numeric ID of the conversation (its display ID)Yes

Request body:

ParametertypeDescriptionRequired
labelsarray of stringsAn array of labels: the full list of label titles the conversation should have (see List Labels)Yes

Request body example:

{
"labels": ["vip", "billing"]
}

Response:

{
"payload": [
"vip",
"billing"
]
}

Response-Explain:

ParameterDescription
payloadArray of strings (label): the titles of the conversation's labels after the change

Remarks​

Request​

Responses​

The conversation's labels after the change.