orvachat

Chats

Send Reaction

POST/api/v1/chat/react

React to a message with an emoji. Prefix the Id with "me:" for your own message; an empty Body removes the reaction.

Parameters

  • PhonestringRequired

    The chat the message is in.

  • BodystringRequired

    The emoji. An empty text removes your reaction.

  • IdstringRequired

    The message id. Put "me:" in front for your own message.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/chat/react" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "Phone": "923001234567",
  "Body": "❤️",
  "Id": "3EB0ABCDEF1234567890"
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "Details": "Sent",
    "Id": "3EB06F9067F80BAB89FF",
    "Timestamp": "2022-05-10T12:49:08-03:00"
  },
  "success": true
}