Webhooks

Challenge it again

What a disabled endpoint needs after its server is fixed. An endpoint paused for failing too many times in a row kept every event it missed queued against it, and a challenge that passes sends them, oldest first; the webhooks guide says how long one is kept.

POST
/v1/webhooks/{id}
POST
/v1/webhooks/{id}
Challenge it again
What a disabled endpoint needs after its server is fixed.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
Challenge it again
curl --request POST \
  --url 'https://api.auray.ai/v1/webhooks/{id}' \
  --header 'Authorization: Bearer <api-key>'
  --header 'Content-Type: application/json' \
  --data '{
  
}'
{
  "id": "<string>",
  "object": "<string>",
  "url": "<string>",
  "products": "<string[]>",
  "status": "<string>",
  "verified": true,
  "verify_keys": "<string>",
  "signature_algorithm": "<string>",
  "verification": {
    "failed": "<string>",
    "status": 123
  },
  "request_id": "<string>"
}
Challenge it again
curl -X POST https://api.auray.ai/v1/webhooks/b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "id": "<string>",
  "object": "<string>",
  "url": "<string>",
  "products": "<string[]>",
  "status": "<string>",
  "verified": true,
  "verify_keys": "<string>",
  "signature_algorithm": "<string>",
  "verification": {
    "failed": "<string>",
    "status": 123
  },
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — webhooks:write.

Path Parameters

idstringrequired

Response

application/json

OK

idstring
objectstring
One of "webhook".
urlstring
A URL.
productsstring[]
statusstring
active if the challenge succeeded just now, pending if it did not. One of "pending", "active".
verifiedboolean
verify_keysstring
Where the public keys that sign your deliveries are published. Fetch it, cache it, and look up the kid each Auray-Signature names. A URL rather than a key, because a copy handed back here would go stale the moment one is rotated — and free rotation is the point of the scheme. A URL.
signature_algorithmstring
How Auray-Signature is signed: Ed25519 over <t>.<raw body>, the header reading t=…,v2=…,kid=…. THERE IS NO SHARED SECRET — this response used to return secret (whsec_…) for an HMAC scheme, and the same bytes that verified a delivery could forge one. The private half of this key never leaves the deployment. One key signs for every account, so the body names who it is for, inside what the signature covers: account (your account id, the id GET /v1/me returns) and webhook_id (the endpoint, or null for a per-request ?webhook). Compare account with yours and refuse anything else. One of "EdDSA".
verificationobject
Present ONLY when the challenge failed — and the response is still a success, because the endpoint was registered; it is your server that did not answer.
Show child attributes
failedstring
Which check failed, in our words: outbound_paused (deliveries are paused on our side; nothing was sent), host_paused (deliveries to this host are paused for now; nothing was sent), challenge_not_stored (nothing was sent; try again), private_address (the name resolves to an address we never send to), unreachable (no answer: DNS, connection, TLS or timeout), refused (it answered, not 2xx — status says what), nonce_not_echoed (it answered 2xx without the nonce), activation_failed (it echoed, and the endpoint could not be switched on; try again). What your server said is never quoted back. One of "outbound_paused", "host_paused", "challenge_not_stored", "private_address", "unreachable", "refused", "nonce_not_echoed", "activation_failed".
statusinteger
The HTTP status your endpoint answered with, if it answered. May be null.
request_idstring
Mirrored in the X-Request-Id header.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

Challenge it again
curl -X POST https://api.auray.ai/v1/webhooks/b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "id": "<string>",
  "object": "<string>",
  "url": "<string>",
  "products": "<string[]>",
  "status": "<string>",
  "verified": true,
  "verify_keys": "<string>",
  "signature_algorithm": "<string>",
  "verification": {
    "failed": "<string>",
    "status": 123
  },
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.