AxisDocs
AxisDocs

V2 / Security

Authentication

Configure bearer token headers, HMAC webhook signature verification, and environment-scoped keys in v2.

All v2 API requests authenticate using a bearer token in the Authorization header over HTTPS.

Request Headers

HeaderFormatPurpose
AuthorizationBearer ax_live_...Authenticates the workspace key
Content-Typeapplication/jsonRequired on POST, PUT, and PATCH requests
X-Request-IdUUID v4Optional idempotency and trace correlation ID

Verifying Webhook Signatures

Every outbound webhook event includes an X-Axis-Signature header containing a hex-encoded HMAC-SHA256 digest computed over the raw request body:

import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyWebhookSignature(
  rawBody: string,
  signatureHex: string,
  secret: string,
): boolean {
  const expected = createHmac('sha256', secret).update(rawBody).digest('hex');
  const a = Buffer.from(expected, 'utf8');
  const b = Buffer.from(signatureHex, 'utf8');
  return a.length === b.length && timingSafeEqual(a, b);
}
Type to search full-text index Pagefind / Static
Getting Started with AxisDocs V2 / Overview Scaffold the MIT Lite starter or Pro bundle with Astro 5, Tailwind CSS v4, four studio themes, and zero client framework runtime. Authentication V2 / Security Configure bearer token headers, HMAC webhook signature verification, and environment-scoped keys in v2. API Activation Reference V2 / API Reference Validate and bind a license key to a deployment hostname using the dual-pane v2 activation endpoint. Workers Static Assets Deployment V2 / Deployment Host static Astro HTML, Pagefind search shards, and edge webhook routes using a single wrangler.jsonc configuration. Getting Started (v1) V1 / Overview Legacy v1 documentation entry retained for existing integrations migrating to v2. API Activation Reference (v1) V1 / API Reference Legacy v1 endpoint for binding a commercial license token to a single hostname. Pro Changelog Demo Pro Preview Typed Content Collection release notes for AxisDocs v1.4 through v2.1. 3 Hero Scenarios & Billing Toggle Pro Preview Interactive API Console, CLI Flow, Spec Sheet, and Monthly/Annual pricing demo. Architecture Grid Homepage 4 studio themes, offline Pagefind search, versioned MDX, and build-time OG PNGs. Lite vs Pro Comparison Homepage Feature breakdown across MIT Lite ($0), Pro ($49), and Team ($99) editions. Pricing and Weekend SLA Homepage One-time licensing via Creem.io with asynchronous Weekend Support SLA Sat-Sun (UTC+8). Privacy Policy Legal Local-first privacy policy and Merchant of Record checkout metadata rules. Terms of Service Legal Commercial license grant, redistribution restrictions, and Weekend Support SLA. Refund Policy Legal 7-day unaccessed order policy and verifiable build defect resolution.