POST
/
api
/
v2
/
reactions
add reaction to any document.
curl --request POST \
  --url https://apix.us.amity.co/api/v2/reactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "referenceId": "<string>",
  "referenceType": "message",
  "reactionName": "<string>",
  "referenceVersion": 123
}'
{
  "addedId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

reference ID and type with reaction name

referenceId
string
required
Maximum length: 900
referenceType
enum<string>
required
Available options:
message,
post,
comment,
story
reactionName
string
required
Maximum length: 100
referenceVersion
integer

The API version of the document (Ex. If using with message v5, the referenceVersion will be 5)

Response

Returns a reaction id is added

addedId
string