Data Structure
WebhookSubscription
An object that represents a submitted webhook subscription. Each WebhookSubscription object defines what event should be monitored and where the corresponding event payload should be delivered when the event occurs.| Parameter | Type | Description |
|---|---|---|
id | ID! | The webhook subscription record ID. |
label | String! | The webhook subscription record label. |
triggerEvent | WebhookTriggerEvent! | An event ID that triggers this webhook. |
targetUrl | String! | An endpoint URL where the webhook will be sent. |
status | WebhookSubscriptionStatus! | A status of the webhook subscription. |
createdAt | Int! | The timestamp when the subscription was created. |
WebhookTriggerEvent
An enumeration that defines the set of available options to which webhook subscription can be bound. Available options:| Trigger event name | Description |
|---|---|
USER_REGISTERED_TO_TRAINING | Triggers when user context have enrolled on LearningPath. |
USER_COMPLETED_TRAINING | Triggers when user context have complete LearningPath. |
USER_REGISTERED_TO_LIVE_SESSION | Triggers when user context have registered to LiveSession. |
USER_ATTENDED_TO_LIVE_SESSION | Triggers when user context have been marked as attended at the LiveSession. |
LEARNING_PATH_NEW_REVISION | Triggers when LearningPath have receive a new published revision. |
CERTIFICATE_EXPIRED | Triggers when earned user Certificate have been expired. |
| Trigger event name | Description |
|---|---|
*_BEFORE_LIVE_SESSION_STARTS | Triggers when LiveSession is about to start in period of time. |
*_BEFORE_CERTIFICATE_EXPIRE | Triggers when user Certificate is about to expire in period of time. |
Queries
listWebhookSubscriptions
- The API user context must have
AUTHENTICATEDscope to access webhook subscriptions. Anonymous users cannot retrieve this data. - The API user context must have permission to view webhook subscriptions.
- The API user context must be present and valid - otherwise, access is denied.
| Argument | Type | Description |
|---|---|---|
triggers | [WebhookSubscription] | Optional filter by trigger event. |
Related Features
ThelistWebhookSubscriptions query supports the same advanced features as other catalog queries:
Common error scenarios and solutions:
Authentication Errors
Authentication Errors
- 401 Unauthorized: Ensure you’re using a valid authentication token with
AUTHENTICATEDscope - 403 Forbidden: Verify your user account has the necessary permissions to access webhook subscription data