# thread.replied.legacy

Source: https://developer.nylas.com/docs/reference/notifications/message-tracking/thread-replied-legacy/

Legacy format for thread replied tracking notifications.

> The `deltas` array and nested `object_data` fields may be `null` rather than absent.

## data.object fields

- `grant_id` (string) **(required)** - The v3 grant ID.
- `object` (string) **(required)** (thread) - Always `thread`.
- `deltas` (array) **(required)** - Array of delta change objects in v2 format.
  - `date` (integer) - Unix timestamp of the reply event.
  - `object` (string) - Always `message`.
  - `type` (string) - The delta type, always `thread.replied`.
  - `object_data` (object) - The v2-format reply data.
    - `account_id` (string) - The v2 account ID.
    - `id` (string) - The v2 webhook ID.
    - `namespace_id` (string) - The v2 namespace ID.
    - `object` (string) - Always `message`.
    - `attributes` (any, nullable) - Legacy attributes field. Always `null`.
    - `metadata` (object) - Reply metadata.
      - `from_self` (boolean) - Whether the reply was sent by the tracked message sender.
      - `message_id` (string) - The v2 reply message ID.
      - `payload` (string) - Custom payload set when creating reply tracking.
      - `reply_to_message_id` (string) - The v2 ID of the message being replied to.
      - `thread_id` (string) - The v2 thread ID.
      - `timestamp` (integer) - Unix timestamp of the reply.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "thread.replied.legacy",
  "source": "/com/nylas/v2/webhooks",
  "id": "<WEBHOOK_ID>",
  "time": 1733180746,
  "webhook_delivery_attempt": 1,
  "data": {
    "application_id": "<V3_NYLAS_APPLICATION_ID>",
    "grant_id": "<V3_NYLAS_GRANT_ID>",
    "object": {
      "deltas": [
        {
          "date": 1733180719,
          "object": "message",
          "object_data": {
            "account_id": "<V2_NYLAS_ACCOUNT_ID>",
            "id": "<V2_WEBHOOK_ID>",
            "metadata": {
              "from_self": true,
              "message_id": "<V2_MESSAGE_ID>",
              "payload": "Hello world",
              "reply_to_message_id": "<V2_REPLY_TO_MESSAGE_ID>",
              "thread_id": "<V2_THREAD_ID>",
              "timestamp": 1733180490
            },
            "namespace_id": "<V2_NAMESPACE_ID>",
            "object": "message"
          },
          "type": "thread.replied"
        }
      ],
      "grant_id": "<V3_NYLAS_GRANT_ID>",
      "object": "thread"
    }
  }
}
```
