Create webhook configuration

View as Markdown
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.
urlstringRequiredformat: "uri"1-2083 characters
event_typeslist of enumsRequired

Non-empty allowlist of subscribed webhook event types. Persisted as NOT NULL on webhook_configs (see migration backfill).

descriptionstring or nullOptional

Response

Webhook configuration created successfully
dataobject
Response model for webhook creation that includes the secret key.
warningstring or null