# Endpoint: POST /v1/licenses/activate
Activates an AxisDocs Pro license key for a deployment hostname.
## Headers
- Authorization: Bearer <token>
- Content-Type: application/json
## Request Body
- key (string, required): Commercial license identifier
- host (string, required): Target deployment domain
- label (string, optional): Environment label for audit log
## Examples
### cURL
```bash
curl -X POST \
https://api.axisdocs.dev/v1/licenses/activate \
-H "Authorization: Bearer axd_live_98f2c1a4" \
-H "Content-Type: application/json" \
-d '{"key":"AXD-PRO-4F8A-91C2","host":"docs.example.com"}'
```
### TypeScript
```ts
const res = await fetch("https://api.axisdocs.dev/v1/licenses/activate", {
method: "POST",
headers: {
Authorization: "Bearer axd_live_98f2c1a4",
"Content-Type": "application/json",
},
body: JSON.stringify({
key: "AXD-PRO-4F8A-91C2",
host: "docs.example.com",
}),
});
const license = await res.json();
```
### Python
```python
import httpx
res = httpx.post(
"https://api.axisdocs.dev/v1/licenses/activate",
headers={"Authorization": "Bearer axd_live_98f2c1a4"},
json={"key": "AXD-PRO-4F8A-91C2", "host": "docs.example.com"},
)
license_data = res.json()
```
## HTTP 200 OK (application/json)
```json
{
"activated": true,
"license_id": "lic_01J9X4K2M8P3",
"edition": "pro",
"activations_used": 1,
"activations_limit": 3,
"repository": "wtr1951/axisdocs-pro"
}
``` AxisDocs Pro / 3 Switchable Hero Scenarios
Three production Hero configurations
Switch between API Console, CLI Terminal Flow, and Minimal Spec Sheet, or pick a single default scenario in src/config/site.ts.
Documentation, product pages, and versioned API specs in one workspace.
Author v1 and v2 MDX endpoints with responsive parameter matrices, offline Pagefind search, four studio themes, and static OpenGraph builds.
pnpm create astro --template wtr1951/axisdocs-lite POST /v2/licenses/activate
Validates a commercial key against a deployment hostname and returns remaining seat capacity for wtr1951/axisdocs-pro.
| Field | Type | Status | Description |
|---|---|---|---|
| key string / required | string | required | Commercial license identifier |
| host string / required | string | required | Target deployment domain |
| label string / optional | string | optional | Environment label for audit log |
curl -X POST \
https://api.axisdocs.dev/v1/licenses/activate \
-H "Authorization: Bearer axd_live_98f2c1a4" \
-H "Content-Type: application/json" \
-d '{"key":"AXD-PRO-4F8A-91C2","host":"docs.example.com"}' const res = await fetch("https://api.axisdocs.dev/v1/licenses/activate", {
method: "POST",
headers: {
Authorization: "Bearer axd_live_98f2c1a4",
"Content-Type": "application/json",
},
body: JSON.stringify({
key: "AXD-PRO-4F8A-91C2",
host: "docs.example.com",
}),
});
const license = await res.json(); import httpx
res = httpx.post(
"https://api.axisdocs.dev/v1/licenses/activate",
headers={"Authorization": "Bearer axd_live_98f2c1a4"},
json={"key": "AXD-PRO-4F8A-91C2", "host": "docs.example.com"},
)
license_data = res.json() {
"activated": true,
"license_id": "lic_01J9X4K2M8P3",
"edition": "pro",
"activations_used": 1,
"activations_limit": 3,
"repository": "wtr1951/axisdocs-pro"
} Verify types, generate OG cards, and index docs in one build pass.
Every template route compiles offline with Astro Content Collections, local OFL font binaries, and static Pagefind search shards.
- check
1. Install & Typecheck
Standalone pnpm workspace with strict TypeScript and Zod schemas.
- og.png
2. Render Static OG PNGs
Satori and Resvg emit 1200x630 cards from bundled .woff fonts.
- dist/
3. Index & Deploy
Pagefind indexes docs and changelog into Cloudflare static assets.
pnpm install && pnpm dev
$ pnpm install
Packages: +451
Done in 6.3s using pnpm
$ pnpm dev
astro v5.18.2 ready
Local: http://localhost:4321/ $ pnpm check
Result (18 files): 0 errors, 0 warnings, 0 hints
$ pnpm build
[og] generated /og/index.png (1200x630)
[og] generated /og/docs/v2/getting-started.png (1200x630)
[pagefind] Indexed 12 pages in dist/pagefind/ $ npx wrangler deploy
Total Upload: static assets only (./dist)
Assets: html_handling=drop-trailing-slash, not_found_handling=404-page
Deployed axisdocs-pro-site to Cloudflare Workers Static HTML by default. Structured contracts everywhere else.
Configure brand metadata, pricing tiers, support schedules, and legal templates from one central TypeScript configuration file.
- Client Framework JS
- 0 KB (Astro 5 Static HTML + CSS)
- Studio Color Themes
- 4 WCAG AA palettes (2 dark, 2 light)
- Documentation Engine
- Typed v1 / v2 MDX collections + Zod
- Full-Text Search
- Offline Pagefind index + <dialog closedby="any">
- Social Card Pipeline
- 1200x630 Satori + Resvg PNGs from local OFL .woff
- Edge Hosting Target
- Cloudflare Workers Static Assets (wrangler.jsonc)
Monthly / Annual pricing toggle component
Included in Pro for SaaS buyers who sell recurring subscriptions, using tabular monospace alignment with zero layout shift.
Developer Sandbox
$0Single-project environment for local integration and evaluation.
Billed monthly
Production Core
$29Full multi-region API quota with versioned schemas and signed webhooks.
Billed monthly
Organization Seat
$79Shared workspace controls, audit logs, and role-scoped tokens.
Billed monthly