Skip to main content
Toktra sends HTTP POST requests to your endpoint when events occur — policy violations, budget alerts, lockouts, and more. Webhooks are the fastest way to integrate Toktra events into your own systems.

Register a webhook

string
required
Your HTTPS endpoint URL. Must return a 2xx status within 10 seconds.
array
List of event types to subscribe to. Omit to subscribe to all events.
string
Optional human-readable label for this webhook.

Request

Response

Save the signing_secret immediately — it is only shown once. You will use it to verify incoming webhook payloads.

Verify webhook signatures

Every webhook request includes an X-Toktra-Signature header containing an HMAC-SHA256 signature of the raw request body, signed with your signing_secret. Always verify this signature before processing the payload.

Event payload format

All webhook payloads share a common envelope:

Event types


Retry behavior

If your endpoint returns a non-2xx status or times out, Toktra retries with exponential backoff: After 5 failed attempts the delivery is marked as failed. You can manually retry failed deliveries from the dashboard or via the API.

View delivery logs

Returns a paginated list of recent delivery attempts, including HTTP status codes and response bodies.

Test a webhook

Send a test event to verify your endpoint is reachable:
Toktra sends a ping event to your endpoint: