# grant.created

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

Sent when a user successfully authenticates with your Nylas application for the first time.

## data.object fields

- `code` (integer) - Nylas notification code.
- `grant_id` (string) - Unique identifier for the grant.
- `integration_id` (string) - Identifier for the connector (integration) used to create this grant.
- `login_id` (string) - Identifier for the login session that created this grant. Only present for hosted auth flows.
- `provider` (string) (google, microsoft, imap, yahoo, icloud, ews, eas) - Email provider for this grant.
- `email` (string) - Email address associated with the grant.
- `name` (string) - Display name of the grant owner. Absent when the provider does not return a display name.
- `scope` (array) - OAuth scopes granted during authentication.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "grant.created",
  "source": "/nylas/system",
  "id": "<WEBHOOK_ID>",
  "time": 1723821985,
  "data": {
    "application_id": "<NYLAS_APPLICATION_ID>",
    "object": {
      "code": 25012,
      "grant_id": "<NYLAS_GRANT_ID>",
      "integration_id": "<NYLAS_INTEGRATION_ID>",
      "login_id": "<LOGIN_ID>",
      "provider": "google",
      "email": "user@example.com",
      "name": "John Doe",
      "scope": [
        "https://www.googleapis.com/auth/gmail.readonly",
        "https://www.googleapis.com/auth/calendar"
      ]
    }
  },
  "webhook_delivery_attempt": 1
}
```
