Skip to content
The Consortium

Intelligence APIOperational

POST_v1_webhooks_id_rotate

Rotate the signing secret (designed)

Request

Try it

Planned: it answers with a typed refusal · No credits

https://api.nexustandards.com

POST/v1/webhooks/{id}/rotate

curl -s -X POST "https://api.nexustandards.com/v1/webhooks/<id>/rotate" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <a-unique-key-per-attempt>" \
  -d '{}'
const res = await fetch("https://api.nexustandards.com/v1/webhooks/<id>/rotate", { method: "POST", headers: { "Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>" }, body: "{}" });
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.nexustandards.com/v1/webhooks/<id>/rotate", data="{}".encode(), method="POST", headers={"Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>"})
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "id": "string",
    "url": "string",
    "types": [
      "string"
    ],
    "secret": "string",
    "description": "string"
  },
  "meta": {}
}

Re-validates the receiver and issues a new secret, shown once; the previous secret stops signing at once. Needs a Passport bearer token with the scope nxs.webhook_subscribe:write; the webhooks are the caller's own. Designed until the API's webhook database is switched on (STANDARDS_API_DATABASE_URL): every route then answers 503 WEBHOOKS_OFF, and the change feed at /v1/changes carries the same changes. Availability: Planned (answers a typed problem response until built).

Parameters

Parameters

  • idrequired

    path · string

    Webhook subscription id (UUID, RFC 9562)

  • Idempotency-Keyoptional

    header · string

    Optional. A value of your own (a UUID is fine) that makes this write safe to retry: the same caller, key and request within 24 hours gets the first answer again, with the header Idempotent-Replayed: true, and the work is not done twice. It applies to a request that carries a credential.

Answers

Responses

  • 200

    The caller's own webhook data

  • 401Problem, RFC 9457

    Passport bearer token missing or invalid

  • 403Problem, RFC 9457

    Refusal

  • 404Problem, RFC 9457

    Not found, or version not in the snapshot

  • 409

  • 414

  • 422Problem, RFC 9457

    Refusal

  • 429Problem, RFC 9457

    Open-tier rate limit

  • 500Problem, RFC 9457

    Internal error

  • 501Problem, RFC 9457

    A planned route (the Planned problem, urn:therisk:problem:planned, with its own code and what it needs), or writes off

Get started

Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.