Data Structure
CreateWebhookSubscriptionInput
An input object forWebhookSubscription creation
| Parameter | Type | Description |
|---|---|---|
label | String | Optional webhook subscription record label. |
triggerEvent | WebhookTriggerEvent! | An event ID that triggers this webhook. |
targetUrl | String! | An endpoint URL where the webhook will be sent. |
signature | String | Optional signature that could be used for payload authentication. |
Mutations
createWebhookSubscription
Creates a new webhook subscription for a given event type by CreateWebhookSubscriptionInput input object. Once created, the subscription becomes active and will receive event payloads when the specified event is triggered.- 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 create webhook subscriptions.
- The API user context must be present and valid - otherwise, access is denied.
| Argument | Type | Description |
|---|---|---|
input | CreateWebhookSubscriptionInput! | Input data for creating a webhook subscription. |
Related Features
ThecreateWebhookSubscription mutation supports the same advanced features as other mutations:
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