Create webhook configuration
Creates a new webhook configuration for the entity. The generated secret key is returned only in this initial response and should be stored securely.
Authentication
x-api-keystring
RootPay API key sent in the x-api-key header. Keys are environment-scoped: live_* for production, test_* for sandbox.
Request
This endpoint expects an object.
url
event_types
Non-empty allowlist of subscribed webhook event types. Persisted as NOT NULL on webhook_configs (see migration backfill).
description
Response
Webhook configuration created successfully
data
Response model for webhook creation that includes the secret key.
warning