Skip to main content
Every webhook endpoint has a secret. When the endpoint is signed, every call we make to it carries a signature of the request body, computed with that secret. Check the signature before you act on a call: it proves the call came from Platnova and that the body was not changed on the way.

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.
X-Platnova-Signature always holds exactly one sha256= value. Compare the whole header with the value you compute. Do not split it on commas or look for a list.

Verifying a signature

  1. 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.
  2. Compute "sha256=" + hex(HMAC-SHA256(key = your secret as UTF-8, message = raw body)), using lowercase hex.
  3. Compare it with X-Platnova-Signature in constant time, using one of the functions below, never ==.
  4. If they match, accept the call.
  5. If it does not match, answer with a non-2xx status, such as 401. See Answer honestly.
You can check your implementation against a known value. With the secret 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 example 401). 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:
The dashboard and 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 calls POST /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:
From that moment, every call we make is signed with the new secret and carries its key id. Until your receiver uses the new secret, our calls will fail your signature check. Answer them with a non-2xx status (see Answer honestly), and we retry them. Each retry is signed with the endpoint’s current secret, so once you have switched, the retries verify and no event is lost, provided you switch before the retries run out. To regenerate with the least disruption:
  1. Have your receiver ready to load a new secret from configuration.
  2. Regenerate, and put the new secret into your secrets manager.
  3. Restart or reload the receiver.
Endpoint owners and developers are told by email whenever a secret is regenerated, and by whom. The email names neither secret.
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.
To check your receiver end to end, use Send test event in the endpoint’s menu. The dashboard calls POST /v1/webhooks/{id}/test, which sends this body straight away, signed exactly like a real delivery:
It waits for your answer and returns what happened: 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.
delivered: true means the call reached your server and your server answered 2xx. It does not mean your verification passed. If your code answers 200 and then treats the call as unverified, we cannot tell. Check response_body, and answer non-2xx when verification fails.