# grant.updated

Source: https://developer.nylas.com/docs/reference/notifications/grants/grant-updated/

Sent when a grant is modified, updated, or re-authenticated.

## data.object fields

- `code` (integer) - Nylas notification code. A value of `25014` indicates a normal update; `25027` indicates a re-authentication event.
- `grant_id` (string) - Unique identifier for the grant.
- `integration_id` (string) - Identifier for the connector (integration) associated with this grant.
- `provider` (string) (google, microsoft, imap, yahoo, icloud, ews, eas) - Email provider for this grant.
- `email` (string) - Email address associated with the grant.
- `reauthentication_flag` (boolean) - Whether this update was triggered by a re-authentication flow.
- `scope` (array) - Granted OAuth scopes. Only reliably present on `grant.created` events. For `grant.updated`, this field is typically absent.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "grant.updated",
  "source": "/nylas/system",
  "id": "<WEBHOOK_ID>",
  "time": 1723821985,
  "data": {
    "application_id": "<NYLAS_APPLICATION_ID>",
    "object": {
      "code": 25014,
      "grant_id": "<NYLAS_GRANT_ID>",
      "integration_id": "<NYLAS_INTEGRATION_ID>",
      "provider": "microsoft",
      "reauthentication_flag": false,
      "email": "user@example.com"
    }
  },
  "webhook_delivery_attempt": 1
}
```
