Skip to main content
Tags classify your conversations so you can segment, report on, and route them. This page describes the recommended flow to manage them through the API: first you retrieve the company’s tag catalog, then you check the tags associated with a conversation, and finally you assign or update them.
1

Retrieve the company's available tags

Get the catalog with the id of each tag.
2

Check the conversation's current tags

Review which tags the conversation already has before modifying them.
3

Assign or update the tags

Send the complete list of id values the conversation should end up with.

Authentication

Every endpoint on this page belongs to the https://api.jelou.ai domain and uses basic authentication.
See Introduction to learn how to build the Authorization: Basic header.

1. Retrieve the company’s available tags

Returns the catalog of tags available to a company. Use this endpoint to find the id values you need when assigning tags.

Endpoint

Path parameters

Query parameters

Request example

Response example

Response details


2. Get a conversation’s information

Returns the full information of a conversation, including the tags currently associated with it.

Endpoint

Path parameters

Query parameters

Request example

Response example

The tags assigned to a conversation are read from the data.tags attribute.

3. Assign or update a conversation’s tags

Assigns or updates the tags of a conversation.

Endpoint

Path parameters

Body parameters

Request example

Response example


Considerations

The array sent in tags fully replaces the conversation’s current tags. It does not add tags to the existing ones.
  • Every tag you send must exist and be available to the specified channel.
  • To keep the already assigned tags and add new ones, send both the existing and the new tags in the array.
  • If you send an empty array ([]), all tags associated with the conversation are removed.

Example

Say the conversation currently has the tags [14, 15]. To add tag 20 and keep the existing ones, send all three:
If you send only the new tag, tags 14 and 15 are replaced and the conversation keeps tag 20 alone:

Response codes