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
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.