Create a webhook endpoint
Register a URL for webhook deliveries. The response is the only time the signing `secret` is shown. The URL must use https and a public address; in test mode `http://localhost` and `http://127.0.0.1` also work. Plan limits apply (`plan_limit`). Accepts `Idempotency-Key`. Requires the `webhooks:write` scope.
Register a URL for webhook deliveries. The response is the only time the signing secret is shown. The URL must use https and a public address; in test mode http://localhost and http://127.0.0.1 also work. Plan limits apply (plan_limit). Accepts Idempotency-Key.
Requires the webhooks:write scope.
secretKeyAuthorizationBearer <token>A secret key: wc_live_... or wc_test_.... Keep it on your server.
idempotency-key?stringSend a unique value (a UUID works) to make retries safe. A replay within 24 hours returns the first response; the same key with a different body is a 409 idempotency_conflict.
1 <= length <= 255application/json- body
url*stringurilength <= 2048events?array<>Defaults to every event type.
1 <= items <= 50The endpoint was created.
application/json- response
id*string^whk_[0-9A-Za-z]{6,64}$mode*stringlive or test. Always the mode of the API key that made the request.
"live""test"url*stringevents*array<>Event types sent to this endpoint.
disabled_at*|Set when the endpoint was disabled, by you or after ten failed deliveries in a row.
date-timecreated_at*stringISO 8601 with a UTC offset.
date-timesecret*stringSigning secret (Standard Webhooks). Shown only in this response; store it now.
curl -X POST 'https://api.whocoming.com/v1/webhook-endpoints' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com"}'{ "id": "string", "mode": "live", "url": "string", "events": [ "rsvp.created" ], "disabled_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "secret": "string"}