> ## Documentation Index
> Fetch the complete documentation index at: https://docs.periskope.app/llms.txt
> Use this file to discover all available pages before exploring further.

# reaction.updated

> The `reaction.updated` webhook is triggered when a reaction is updated on Periskope.

<ResponseExample>
  ```json The Reaction Object theme={null}
  {
    "org_id": "2997dd64-89bf-48d3-9a22-b314fca017e5",
    "message_id": "false_120363297269676566@g.us_3EB01F4653BB9DD05E9859_919004389372@c.us",
    "ack": "0",
    "id": {
      "id": "3EB01D1702AD13661CDAEA",
      "fromMe": true,
      "remote": "120363297269676566@g.us",
      "_serialized": "true_120363297269676566@g.us_3EB01D1702AD13661CDAEA_919289665999@c.us"
    },
    "orphan": "0",
    "reaction": "😀",
    "read": true,
    "reaction_id": "true_120363297269676566@g.us_3EB01D1702AD13661CDAEA_919289665999@c.us",
    "timestamp": "2024-05-13 11:22:14+00",
    "msg_id": {
      "id": "3EB01F4653BB9DD05E9859",
      "fromMe": false,
      "remote": "120363297269676566@g.us",
      "_serialized": "false_120363297269676566@g.us_3EB01F4653BB9DD05E9859_919004389372@c.us"
    },
    "orphan_reason": null,
    "sender_id": "919289665999@c.us",
    "org_phone": "919289665999@c.us",
    "chat_id": "120363297269676566@g.us",
    "unique_id": "3EB01F4653BB9DD05E9859"
  }
  ```
</ResponseExample>

Refer [Reaction](/api-reference/objects/the-reaction-object) object to find more details about `reaction object`.

<RequestExample>
  ```ts Node.js theme={null}
  import { PeriskopeApi } from '@periskope/periskope-client';

  const client = new PeriskopeApi({
    authToken: 'YOUR_API_KEY',
    phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
  });

  client.on('reaction.updated', (data) => {
    console.log(data);
  });
  ```
</RequestExample>

### Event structure 📦

You'll be receiving the data in the following format:

```json theme={null}
{
  "event": "<event-type>",
  "data": "<event-data>", // complete data object as mentioned in Objects section
  "org_id": "<your-organisation-id>",
  "timestamp": "<timestamp>" // timestamp of the event creation
}
```
