Derbasî naverokê bibe
The Consortium

Pêşdebir

POST_v1_webhooks

NXS Risk Policy and Governance API

Open. Reading is free and needs no key.

POST /v1/webhooks DNayê pêşkêşkirin

All operations

Create a webhook

Subscribes a receiver (https only) to the change feed events by type; the receiver is validated with the CloudEvents web-hook handshake before it is stored, and the signing secret is shown once. Needs a Passport bearer token carrying the scope grf.webhook_subscribe:write; the account that created a webhook is its only reader and writer. Answers 503 WEBHOOKS_OFF while GRF_DATABASE_URL is unset. (D until switched on) State: designed (typed refusal until built).

This operation is not served. It answers with a typed refusal.

Parameters

None.

Responses

  • 201 The webhook answer
  • 400 BAD_BODY or INVALID_REQUEST (a problem, RFC 9457)
  • 401 AUTH_REQUIRED or TOKEN_INVALID (a problem, RFC 9457)
  • 403 INSUFFICIENT_SCOPE (a problem, RFC 9457)
  • 404 WEBHOOK_NOT_FOUND (a problem, RFC 9457)
  • 429 RATE_LIMITED (a problem, RFC 9457)
  • 500 INTERNAL (a problem, RFC 9457)
  • 503 WEBHOOKS_OFF while GRF_DATABASE_URL is unset (a problem, RFC 9457)