How webhooks work
When an event occurs, PIK sends an HTTP POST to your registered webhook URL with a JSON payload describing the event. Your endpoint must respond with 200 within 10 seconds. If PIK does not receive a 200 response it will retry.Setting up a webhook
Register your webhook URL in PIK Dashboard under Settings > Webhooks > Add endpoint. Select the event types you want to receive. Via API — Call POST /api/v1/webhooks with your endpoint URL and event type list. Your endpoint must be publicly accessible over HTTPS.Verifying signatures
Every webhook request includes a PIK-Signature header — a HMAC-SHA256 signature of the raw request body, signed with your webhook secret. To verify: Step 1 — Retrieve your webhook secret from PIK Dashboard under Settings > Webhooks. Step 2 — Compute HMAC-SHA256 of the raw request body using the secret as the key. Step 3 — Compare the result to the PIK-Signature header value. Discard requests that do not match. Never process a webhook that fails signature verification.Retries
If your endpoint does not return 200 within 10 seconds, PIK retries with exponential backoff:- First retry — 5 minutes after failure.
- Second retry — 30 minutes after first retry.
- Third retry — 2 hours after second retry.
- Fourth retry — 8 hours after third retry.
- Fifth retry — 24 hours after fourth retry.
