API v1 / Integration details
Webhooks
Receive application ledger events and verify their signatures before processing.
Configure an endpoint
Add a public HTTPS receiver under Webhooks. Store the signing secret when it is returned. Each ledger.posted event includes a stable event ID.
Verify the request
Read X-SPG-Timestamp, X-SPG-Event-Id, and X-SPG-Signature. Check timestamp freshness, then calculate HMAC-SHA256 with the signing secret over the timestamp, a period, and the original request body. Compare in constant time and deduplicate by event ID.
X-SPG-Signature: sha256=<hex digest>
HMAC_SHA256(signingSecret, timestamp + "." + rawBody)Handle retries
Respond with 2xx after durably accepting the event. Delivery retries use increasing delays and may deliver the same event more than once.