The headers we send
Which endpoints are signed. Every endpoint created on or after 24 September 2026 is signed. Endpoints created before that date are not signed unless we have switched signing on for you. Until then they receive only the plain-text
X-Webhook-Secret and X-Auth-Secret headers, with no end date. To have an older endpoint signed, contact support, or delete it and create it again.
Verifying a signature
- Read the raw request body as bytes, before any JSON parsing. Do not parse the JSON and serialise it again: any difference in spacing, key order or escaping changes the signature, and verification fails even though the call is genuine.
- Compute
"sha256=" + hex(HMAC-SHA256(key = your secret as UTF-8, message = raw body)), using lowercase hex. - Compare it with
X-Platnova-Signaturein constant time, using one of the functions below, never==. - If they match, accept the call.
- If it does not match, answer with a non-2xx status, such as
401. See Answer honestly.
secret and the body {"event":"webhook.test"} (24 bytes, no trailing newline), the signature is:
Answer honestly
We judge a delivery only by your HTTP status code. Any 2xx counts as delivered, and that event is never sent again. We cannot see what your code decides after it answers. So if your verification fails, answer with a non-2xx status (for example401). If you answer 200 with something like {"received": true, "verified": false}, we record the event as delivered and stop retrying. Your system has then dropped the event, and neither side gets any warning. A non-2xx answer gets the event retried, shows up as a failure in your dashboard, and, if it keeps happening, pauses the endpoint and emails you.
Key id
X-Platnova-Key-Id names the secret that produced the signature. It is the first 8 hex characters of SHA-256 of the secret, so it identifies a secret without revealing it. It is not secret itself, and it is safe to log.
Use it when you hold more than one Platnova secret. For example, two Platnova businesses might post to one URL. Look up the secret by key id, then verify with that secret. Do not try each secret in turn.
To work out the key id of a secret you hold:
GET /v1/webhooks show each endpoint’s key_id, never its secret, so you can match what you hold against what we send.
Your secret is shown once
We generate every endpoint’s secret:pnwh_ followed by 64 hex characters. You cannot choose your own; an endpoint created with a secret in the request is refused with data.code webhook_secret_not_accepted.
The secret is shown once: when the endpoint is created, and when you regenerate it. Store it in a secrets manager straight away. After that, the dashboard and GET /v1/webhooks show only its key id. We never return a secret again.
Regenerating the secret
If you lose the secret, or it may have leaked, regenerate it from the dashboard: Settings → Webhooks → the endpoint’s menu → Regenerate secret. The dashboard callsPOST /v1/webhooks/{id}/rotate-secret, which needs a signed-in session with permission to update webhooks. It cannot be called with an API key. It takes no body.
The old secret stops working at once. There is no overlap: a secret you are replacing because it leaked should not keep working. The response carries the new secret, shown once:
- Have your receiver ready to load a new secret from configuration.
- Regenerate, and put the new secret into your secrets manager.
- Restart or reload the receiver.
Unsigned endpoints receive the secret itself in
X-Webhook-Secret and X-Auth-Secret. After a regeneration those headers carry the new secret straight away.Sending a test event
Coming soon. This feature is not live yet; this section describes how it will work. Until it ships, only
X-Platnova-Signature (and the legacy plain-text headers) are sent.POST /v1/webhooks/{id}/test, which sends this body straight away, signed exactly like a real delivery:
A test event is not stored as an event. It does not appear in your event history, and it never counts towards pausing the endpoint.

