Create a webhook
Creates a webhook endpoint. Optional event_schemas may be supplied at creation time to customize data.object for supported event namespaces while preserving the normal webhook envelope.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Array of event types to subscribe to, or [”*”] for all events
Optional event schema overrides to create with the webhook. Event schemas customize only the delivered webhook payload’s data.object for supported event namespaces. The webhook envelope fields are unchanged. After the webhook is created, manage event schemas through /v1/webhooks/{webhook_id}/event_schemas.
OIDC authentication method for obtaining access tokens. Required when configuring OIDC. ‘private_key_jwt’ — requires oidc_client_id, oidc_token_endpoint, oidc_access_token_ttl_seconds. ‘client_secret’ — requires oidc_client_id, oidc_client_secret, oidc_token_endpoint, oidc_access_token_ttl_seconds. Both methods optionally accept oidc_scope and oidc_resource_uri.
OIDC client secret. Required when oidc_auth_method is ‘client_secret’. Write-only; never returned in responses.
Optional. OIDC resource URI (Microsoft-specific; use oidc_scope for standard OAuth 2.0).
Optional. OAuth 2.0 scope for the token request (e.g. “api://<app-id>/.default”).