Dashboard
APICreate Webhook API - Add Event Notifications | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Create Webhook - Add Real-Time Event Notifications

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.

POST/v2/projects/{project_id}/integrations/webhooks

Authorization

Bearer TokenRequired

Creating a webhook requires the webhooks:create permission. 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.

Path Parameters

project_idstringrequired

The unique identifier of the project.

Request Body

urlstringrequired

The destination URL for webhook events.

Last updated: