Register a new endpoint to receive real-time event notifications from your subscription bot. When payments complete, memberships change, or other events occur, BotSubscription sends HTTP POST requests to your specified URL with event details and a signature for verification.
API key scope:webhooks:create (required for restricted keys).
Each project is capped at 10 webhook endpoints; the endpoint returns 409 when that limit is reached, and also rejects a second endpoint that reuses an existing URL with 409. The secret is returned only on creation—store it immediately to verify incoming signatures.
Retries: save the first successful response. A completed request made with Idempotency-Key cannot replay its signing secret and returns 409 IDEMPOTENCY_RESPONSE_NOT_REPLAYABLE. Reconcile registration state before starting another creation attempt.
Register endpoints with HTTPS, including during development. Localhost, loopback, private and reserved addresses are blocked, including hostnames resolving to them. See webhook receiver requirements.
Path Parameters
project_idstringrequired
The unique identifier of the project.
Request Body
urlstringrequired
The final, publicly reachable HTTPS URL for webhook events. Redirects are not followed.