# reactions.add

> React to a message.

Source: https://slaiky.xyz/docs/reference/methods/reactions.add

`POST https://app.slaiky.xyz/api/methods/reactions.add` · needs `reactions:write`

## Arguments

| Argument | Type | Required | What |
| --- | --- | --- | --- |
| `messageId` | id | yes | Message id. |
| `emoji` | string | yes | Unicode emoji or :custom_name:. 1–64 characters. |

## Answer

`{ "ok": true, … }` with: reactions: Reaction[]. A refusal is `{ "ok": false, "error": { "code", "message" } }` ([errors](/docs/errors)).

## Example

Recorded on a real server (ids replaced).

*you run*

```sh

curl -s https://app.slaiky.xyz/api/methods/reactions.add \
  -H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"messageId":"7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06","emoji":"👀"}'

```

*Slaiky → your app · `answer`*

```json

{
  "ok": true,
  "reactions": [
    {
      "emoji": "👍",
      "count": 1,
      "userIds": [
        "7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07"
      ]
    },
    {
      "emoji": "👀",
      "count": 1,
      "userIds": [
        "7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03"
      ]
    }
  ]
}

```
