Integrate Axon.
Validate an action before execution. Choose one execution owner for each request.
Validate only
Use mode validate_only when your application executes the action. Execute only after an HTTP success with validated: true and status: PASS. Treat other states as a hold, including skipped internal reasoning.
// Run on your server. Keep the API key out of browser code.
const response = await fetch("https://axon-n8n-production-1512.up.railway.app/webhook/validate", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.AXON_API_KEY,
"Content-Type": "application/json",
"Idempotency-Key": actionId // Stable, 16–80 letters/digits/_/-
},
body: JSON.stringify({
agent_id: "orders-agent",
action_type: "email_send",
content: agentOutput,
mode: "validate_only"
}),
signal: AbortSignal.timeout(25000)
});
const result = await response.json();
if (response.ok && result.validated === true && result.status === "PASS") {
await executeOnce(actionId, agentOutput); // Your durable idempotent executor
} else {
// Includes PROCESSING, SKIPPED, BLOCK and errors: do not execute.
await holdForReview(actionId, result);
}Validate and dispatch
Register and verify your HTTPS destination in API Keys. Use mode: validate_and_dispatch and its exact execution_endpoint. Axon delivers PASS actions to that endpoint. Your caller must not execute the action a second time. BLOCK actions are never dispatched.
A successful delivery means the endpoint accepted the HTTP request; it does not prove the downstream action executed. An unconfirmed delivery requires checking the receiver before retrying.
Background validation
The live_chat action queues validation and returns HTTP 202 with a request ID. It does not mean the message was delivered or approved. Poll /webhook/validation-status?request_id=… on the same API host using your Bearer key. Wait for a terminal result before allowing an action.
Authenticate callbacks
Save the signing secret shown once after destination verification. Check HMAC-SHA256 over the timestamp, a dot, and the exact raw request bytes. Compare against x-axon-signature using a constant-time comparison. Reject timestamps outside five minutes. Persist x-axon-event-id with the action in one transaction so retries cannot execute twice. Only the signed action.approved event authorizes dispatch.
Limits and billing
Free includes 100 lifetime validations. Pro is ₹799 per month for 5,000 validations per paid billing period, shared across keys. A valid semantic PASS or BLOCK consumes one validation. Invalid input and skipped internal reasoning do not. Internal model failures release their reservation. Delivery failures retain the charge for the completed validation.
Send a stable idempotency key when retrying an action. A duplicate returns 409 and does not grant another reservation. API keys expire after 90 days; rotate them in the dashboard. Revoking keys does not affect access to your account.