Create a webhook configuration.
curl --request POST \ --url https://auth.example.com/api/admin/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "url": "https://example.com", "registrationStates": [], "payloadFields": [], "events": [ "example" ], "secret": "example", "headers": { "additionalProperty": "example" }, "retryPolicy": { "maxRetries": 1, "initialDelayMs": 1, "backoffMultiplier": 1, "maxDelayMs": 1 }, "timeoutMs": 1, "clientId": "example" }'Create Webhook in the Webhooks area. The request body is JSON unless the detailed schema for this operation states otherwise.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Tenant selector for multi-tenant admin requests.
Idempotency key for state-changing operations that support replay protection.
Request Body required
Section titled “Request Body required ”object
Account-event registration-state filter. Empty accepts both states; other event families are unaffected.
Opt-in event-time fields for account.email.changed and account deletion notifications. Tenant-scoped subscriptions only. Configuration requires admin:webhooks:payload:read in addition to webhook management permission. Existing subscriptions default to no additional fields. Selected email snapshots expire after seven days. Configuration changes cannot grant access to events older than the changed configuration.
Subscription patterns. Tenant-scoped account.* subscriptions receive durable human account notifications: account.created, account.updated, account.deleted, account.registration.changed, and account.email.changed. Use registrationStates to filter guest or registered accounts. Removed state-specific names and user.created, user.updated, and user.deleted have no compatibility mapping and are not delivered as webhooks. Account events are delivered asynchronously by scheduled maintenance.
object
object
Responses
Section titled “ Responses ”Webhook created.
object
object
Account-event registration-state filter. Empty accepts both states; other event families are unaffected.
Opt-in event-time fields for account.email.changed and account deletion notifications. Tenant-scoped subscriptions only. Configuration requires admin:webhooks:payload:read in addition to webhook management permission. Existing subscriptions default to no additional fields. Selected email snapshots expire after seven days. Configuration changes cannot grant access to events older than the changed configuration.
object
object
Example
{ "webhook": { "registrationStates": [], "payloadFields": [] }}Error response.
object
Example generated
{ "error": "example", "message": "example", "error_description": "example"}