Request
Try it
Planned: it answers with a typed refusal · No credits
POST/v1/webhooks
curl -s -X POST "https://api.nexustandards.com/v1/webhooks" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <a-unique-key-per-attempt>" \
-d '{}'const res = await fetch("https://api.nexustandards.com/v1/webhooks", { 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", 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": {}
} Subscribes an https URL to the change feed events of this API by type (or *). The receiver is validated with the CloudEvents web-hook handshake (OPTIONS with WebHook-Request-Origin) before anything is stored; private, loopback and internal addresses are refused. The secret is shown once, in the answer. 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
Idempotency-Keyoptionalheader · 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
- 409Problem, RFC 9457
Refusal
- 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.