Register a webhook endpoint
POST
url must be HTTPS. events must be a non-empty array drawn from the
enum — an unknown value is a 400 that names the offenders.
bearerAuthheader
AuthorizationBearer <token>Authorization: Bearer hh_live_.... Create and revoke keys in
Organizer → Settings → API. A key carries full access to its partner's
data, including refunds and promo codes — treat it as a production
credential and keep it server-side.
application/json- body
url*stringMust be HTTPS.
Format
urievents*array<>Items
1 <= itemsThe created endpoint, including its signing secret.
application/json- response
data?curl -X POST 'https://hanghut.com/api/v1/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com", "events": [ "ticket.purchased" ]}'Example Response
{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "http://example.com", "events": [ "ticket.purchased" ], "is_active": true, "secret": "string", "created_at": "2019-08-24T14:15:22Z" }}