رفتن به محتوا
The Consortium

Intelligence APIOperational

POST_v1_webhooks_id_replay

Requeue dead deliveries (designed)

درخواست

امتحان کنید

Planned: it answers with a typed refusal · No credits

https://api.nexustandards.com

POST/v1/webhooks/{id}/replay

curl -s -X POST "https://api.nexustandards.com/v1/webhooks/<id>/replay" \
  -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>/replay", { 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>/replay", 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": {
    "requeued": 0
  },
  "meta": {}
}

Requeues the dead deliveries of the webhook, or the one event named in the body. 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

  • idالزامی

    path · string

    Webhook subscription id (UUID, RFC 9562)

  • Idempotency-Keyاختیاری

    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

  • 400Problem, RFC 9457

    Bad request (stable code in the problem)

  • 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

  • 422

  • 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 a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.