Skip to main content
POST

Recipes

1

1. Set the message ID

Provide the message_id of the message you want to react to.
2

2. Set the reaction type

Provide a valid name of the reaction, such as "like", "love", or "haha".
3

3. As a result, the API returns a '200 OK' status code, indicating that the reaction was added.

1

1. Use 'Authorization' header to pass API key

2

2. Use 'On-Behalf-Of' header to pass user id

3

3. Set the message ID

Provide the message_id of the message you want to react to.
4

4. Set the reaction type

Provide a valid name of the reaction, such as "like", "love", or "haha".
5

5. As a result, the API returns a '200 OK' status code, indicating that the reaction was added.

Duplicate Reactions If the user has already added the same reaction to the message, the request will be silently ignored and treated as successful. No duplicate reactions will be created. Reaction Limits
  • Per User Per Message: A user can add up to 20 different reactions to a single message.
  • Per Message (All Users): A message can have up to 20 distinct reaction types total.
Public Dialog Restriction Reactions are not supported for messages in type=1 (PUBLIC) dialog. If you attempt to add a reaction to a message in a type=1 (PUBLIC) dialog, the request will fail with an error.

Path Parameters

string
required
ID of the message. Generated automatically by the server after message creation.

Body Parameters

string
required
The type of reaction to add. Examples: "like", "love", "haha", "angry".

Headers

string
required
A user session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
string
default:"ApiKey {your_api_key}"
API key from Dashboard. Expected format: ApiKey {your_api_key}. Must be used either QB-Token or Authorization.
string
User ID. The user ID of the user on whose behalf the request is being made.

Responses

Reaction successfully added
An error response
array of strings
An error response
array of strings
An error response
array of strings
An error response
array of strings