Skip to main content
Use this endpoint to create a new subscription that delivers webhook events to your HTTPS endpoint. Once created, Off the Hook immediately begins matching on-chain activity against the subscription’s address filters and queues deliveries signed with the subscription’s secret. The secret is returned only in this response — store it somewhere safe before the request completes.

Request

POST /v1/subscriptions

Headers

Body

object
required
Webhook delivery target. Only HTTPS is supported today; additional destination types (SQS, Pub/Sub) are planned.
string[]
required
One or more event kinds to subscribe to. Must be non-empty. Example: ["wallet.transfer.broadcasted"]. See Supported events for valid values.
string
default:"enabled"
Whether the subscription should immediately receive events. Accepted values: "enabled" or "disabled". Defaults to "enabled" when omitted.
string
A human-readable label for your own reference. Not interpreted by Off the Hook.

Supported events

Example request

Response

201 Created
The secret field is only returned when creating a subscription or rotating the secret. Store it immediately — subsequent GET requests will not include it.

Response fields

string
required
Unique subscription identifier. Always prefixed with sub_.
object
required
Webhook delivery target.
string[]
required
The event kinds this subscription will receive.
object
required
Address filters attached to this subscription.
string
required
"enabled" or "disabled".
string
required
The human-readable label supplied at creation time. Empty string if none was provided.
string
required
ISO 8601 timestamp of when the subscription was created.
string
required
ISO 8601 timestamp of the most recent update.

Errors