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>"
}Add reaction to a document referenced by ID and type.
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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
reference ID and type with reaction name
900message, post, comment, story 100The API version of the document (Ex. If using with message v5, the referenceVersion will be 5)
Returns a reaction id is added