Create subscription (raw secret returned ONCE)

Create an outbound webhook subscription for the caller's partner. The server generates a 256-bit HMAC secret and returns the raw value ONCE in hmac_secret (never recoverable afterward except via reveal/rotate). Each partner may hold at most one non-deleted subscription per delivery_kind slot (one immediate + one batch).

Auth: Partner — authentication; requirePartnerCompanyId enforces bundle_id === 1 (403 otherwise). partner_company_id is taken from the auth user, not the body.

Rate limit: No rate limit.

Request

  • Body:
FieldTypeRequiredNotes
labelstringyesmax 255
webhook_urlstring (url)yesurl:http,https, max 2048
delivery_kindstringyesimmediate | batch; unique-slot rule — fails 422 if a non-deleted sub of the same kind already exists for this partner
batch_interval_hoursint|nullrequired if delivery_kind=batchone of [1,2,4,6,12]; nullable/ignored for immediate
eventsarray|nullnoomit or [] = all events (persisted as null). Batch subs ignore it (pinned null). On immediate slot, batch-kind events are rejected; hipages-only events rejected for non-hipages partners
events.*stringMust be one of the event names from the events catalog (GET /api/v1/partner/webhooks/events).
payload_modestringnofull | minimal; defaults full; forced full on batch subs
is_activeboolnodefaults true

Response{ data: { data: {.} } } envelope (HTTP 201). Same fields as the show/list presenter, PLUS the once-only secret block:

  • hmac_secret (string) — raw secret, shown ONCE
  • hmac_secret_warning (string) — store-it-now warning
  • (no events filter persisted for batch subs → events: null; payload_mode forced full; last_batch_dispatched_at set to creation time for batch, null for immediate)
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
boolean
events
array of strings
events
string
Response

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json