# Webhook event schema not matching the actual event \[#92082\]

**URL:** <https://forums.nylas.com/t/webhook-event-schema-not-matching-the-actual-event-92082/227>\
**Category:** Question and Answers\
**Tags:** webhooks\
**Created:** [June 21, 2024, 7:35am UTC](https://forums.nylas.com/t/webhook-event-schema-not-matching-the-actual-event-92082/227 "2024-06-21T07:35:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deeptanshu](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@Deeptanshu](https://forums.nylas.com/u/Deeptanshu)\
**Post date:** [June 21, 2024, 7:35am UTC](https://forums.nylas.com/t/webhook-event-schema-not-matching-the-actual-event-92082/227/1 "2024-06-21T07:35:03Z")

</div>

I am facing a situation while disconnecting the app from [gmail](https://myaccount.google.com/connections) and the corresponding **grant.expired** event of the webhook, It’s not returning the required **login\_id** which is crucial for our business logic.  
Strangely enough this field is provided in the schema of this webhook event which is kind of an anomaly.

Ref: [Notification schemas | Nylas Docs](https://developer.nylas.com/docs/v3/notifications/notification-schemas/#grant-expired-notifications)

 ![Screenshot 2024-06-21 at 11.26.11 AM](https://us1.discourse-cdn.com/flex015/uploads/nylas3/original/1X/b6283277dd80004c6da9843a3c2005dde6f62e19.png)

Any help on this please.

Using nylas v3

---

<div class="post-metadata">

**Author:** ![Blag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/blag/32/9_2.png) [@Blag](https://forums.nylas.com/u/Blag)\
**Post date:** [June 21, 2024, 3:26pm UTC](https://forums.nylas.com/t/webhook-event-schema-not-matching-the-actual-event-92082/227/2 "2024-06-21T15:26:18Z")

</div>

> [@Deeptanshu](#):
>
> I am facing a situation while disconnecting the app from [gmail](https://myaccount.google.com/connections) and the corresponding **grant.expired** event of the webhook, It’s not returning the required **login\_id** which is crucial for our business logic.  
> Strangely enough this field is provided in the schema of this webhook event which is kind of an anomaly.

Hello @Deeptanshu I’m checking with the team and will get back to you as soon as possible

---

<div class="post-metadata">

**Author:** ![Blag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/blag/32/9_2.png) [@Blag](https://forums.nylas.com/u/Blag)\
**Post date:** [June 21, 2024, 3:56pm UTC](https://forums.nylas.com/t/webhook-event-schema-not-matching-the-actual-event-92082/227/3 "2024-06-21T15:56:44Z")

</div>

@Deeptanshu You should use **grant\_id** instead of login\_id. We’re going to update the docs to remove the mention of login\_id (which was removed as it was a redundant value).
