From 6b8ab98587b142264ebb217334c7749aa5b5f14c Mon Sep 17 00:00:00 2001 From: Colin Loretz Date: Thu, 5 Jun 2025 23:30:23 +0000 Subject: [PATCH 1/2] APPLICATION_DEAUTHORIZED --- docs/events/webhook-events.mdx | 40 +++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/docs/events/webhook-events.mdx b/docs/events/webhook-events.mdx index 73e97b51bd..feb3789c26 100644 --- a/docs/events/webhook-events.mdx +++ b/docs/events/webhook-events.mdx @@ -132,11 +132,12 @@ The table below includes the different webhook event types your app can subscrib The "Value" column corresponds to the event's `type` field value in the [event body object](/docs/events/webhook-events#event-body-object). -| Name | Value | Description | -|------------------------------------------------------------------------------|--------------------------|------------------------------------------------------------------------| -| [Application Authorized](/docs/events/webhook-events#application-authorized) | `APPLICATION_AUTHORIZED` | Sent when an app was authorized by a user to a server or their account | -| [Entitlement Create](/docs/events/webhook-events#entitlement-create) | `ENTITLEMENT_CREATE` | Entitlement was created | -| [Quest User Enrollment](/docs/events/webhook-events#quest-user-enrollment) | `QUEST_USER_ENROLLMENT` | User was added to a Quest (currently unavailable) | +| Name | Value | Description | +|----------------------------------------------------------------------------------|----------------------------|--------------------------------------------------------------------------| +| [Application Authorized](/docs/events/webhook-events#application-authorized) | `APPLICATION_AUTHORIZED` | Sent when an app was authorized by a user to a server or their account | +| [Application Deauthorized](/docs/events/webhook-events#application-deuathorized) | `APPLICATION_DEAUTHORIZED` | Sent when an app was deauthorized by a user | +| [Entitlement Create](/docs/events/webhook-events#entitlement-create) | `ENTITLEMENT_CREATE` | Entitlement was created | +| [Quest User Enrollment](/docs/events/webhook-events#quest-user-enrollment) | `QUEST_USER_ENROLLMENT` | User was added to a Quest (currently unavailable) | #### Application Authorized @@ -175,6 +176,35 @@ The "Value" column corresponds to the event's `type` field value in the [event b } ``` +#### Application Deauthorized + +`APPLICATION_DEAUTHORIZED` is sent when the app is deauthorized by a user. + +###### Application Deauthorized Structure + +| Field | Type | Description | +|-------|----------------------------------------------------------------|-------------------------------| +| user | [user object](/docs/resources/user#user-object-user-structure) | User who deauthorized the app | + +###### Application Deauthorized Example + +```json +{ + "version": 1, + "application_id": "1234560123453231555", + "type": 1, + "event": { + "type": "APPLICATION_DEAUTHORIZED", + "timestamp": "2024-10-18T14:42:53.064834", + "data": { + "user": { + // user data + } + } + } +} +``` + #### Entitlement Create `ENTITLEMENT_CREATE` is sent when an [entitlement](/docs/resources/entitlement) is created when a user purchases or is otherwise granted one of your app's SKUs. Refer to the [Monetization documentation](/docs/monetization/overview) for details. From 34836b7d112d7fb111bb43a2c68edef55b452a3d Mon Sep 17 00:00:00 2001 From: Colin Loretz Date: Fri, 6 Jun 2025 16:21:03 +0000 Subject: [PATCH 2/2] fix link --- docs/events/webhook-events.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/events/webhook-events.mdx b/docs/events/webhook-events.mdx index feb3789c26..9a597e782d 100644 --- a/docs/events/webhook-events.mdx +++ b/docs/events/webhook-events.mdx @@ -132,12 +132,12 @@ The table below includes the different webhook event types your app can subscrib The "Value" column corresponds to the event's `type` field value in the [event body object](/docs/events/webhook-events#event-body-object). -| Name | Value | Description | -|----------------------------------------------------------------------------------|----------------------------|--------------------------------------------------------------------------| -| [Application Authorized](/docs/events/webhook-events#application-authorized) | `APPLICATION_AUTHORIZED` | Sent when an app was authorized by a user to a server or their account | -| [Application Deauthorized](/docs/events/webhook-events#application-deuathorized) | `APPLICATION_DEAUTHORIZED` | Sent when an app was deauthorized by a user | -| [Entitlement Create](/docs/events/webhook-events#entitlement-create) | `ENTITLEMENT_CREATE` | Entitlement was created | -| [Quest User Enrollment](/docs/events/webhook-events#quest-user-enrollment) | `QUEST_USER_ENROLLMENT` | User was added to a Quest (currently unavailable) | +| Name | Value | Description | +|----------------------------------------------------------------------------------|----------------------------|------------------------------------------------------------------------| +| [Application Authorized](/docs/events/webhook-events#application-authorized) | `APPLICATION_AUTHORIZED` | Sent when an app was authorized by a user to a server or their account | +| [Application Deauthorized](/docs/events/webhook-events#application-deauthorized) | `APPLICATION_DEAUTHORIZED` | Sent when an app was deauthorized by a user | +| [Entitlement Create](/docs/events/webhook-events#entitlement-create) | `ENTITLEMENT_CREATE` | Entitlement was created | +| [Quest User Enrollment](/docs/events/webhook-events#quest-user-enrollment) | `QUEST_USER_ENROLLMENT` | User was added to a Quest (currently unavailable) | #### Application Authorized