V1 / API Reference
API Activation Reference (v1)
Legacy v1 endpoint for binding a commercial license token to a single hostname.
# API Activation Reference (v1) (V1)
Legacy v1 endpoint for binding a commercial license token to a single hostname.
import ApiEndpoint from '../../../components/ApiEndpoint.astro';
import Callout from '../../../components/Callout.astro';
<Callout variant="warning" title="Deprecated endpoint">
`POST /v1/licenses/activate` remains functional for backward compatibility. Migrate new clients to [POST /v2/licenses/activate](/preview/api-activation).
</Callout>
<ApiEndpoint
id="preview-v1-licenses-activate"
method="POST"
path="/v1/licenses/activate"
summary="Legacy activation endpoint binding a commercial license key to a single hostname without environment scoping."
params={[
{
name: 'key',
type: 'string',
required: true,
description: 'Legacy license string.',
},
{
name: 'host',
type: 'string',
required: true,
description: 'Hostname string (replaced by instance_host in v2).',
},
]}
curl={`curl -X POST \\
https://api.axisdocs.dev/v1/licenses/activate \\
-H "Authorization: Bearer $AXIS_API_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{"key":"AXD-PRO-4F8A-91C2","host":"docs.example.com"}'`}
typescript={`const response = await fetch('https://api.axisdocs.dev/v1/licenses/activate', {
method: 'POST',
headers: {
Authorization: \`Bearer \${process.env.AXIS_API_TOKEN}\`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
key: 'AXD-PRO-4F8A-91C2',
host: 'docs.example.com',
}),
});`}
python={`import os, requests
res = requests.post(
"https://api.axisdocs.dev/v1/licenses/activate",
headers={"Authorization": f"Bearer {os.environ['AXIS_API_TOKEN']}"},
json={"key": "AXD-PRO-4F8A-91C2", "host": "docs.example.com"},
)`}
response={`{
"activated": true,
"activation_id": "lic_act_49201",
"host": "docs.example.com",
"repository": "wtr1951/axisdocs-pro",
"remaining": 2
}`}
/> POST
HTTP 200 OK /v1/licenses/activate
Legacy activation endpoint binding a commercial license key to a single hostname without environment scoping.
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| key | string | Required | Legacy license string. |
| host | string | Required | Hostname string (replaced by instance_host in v2). |
curl -X POST \
https://api.axisdocs.dev/v1/licenses/activate \
-H "Authorization: Bearer $AXIS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"AXD-PRO-4F8A-91C2","host":"docs.example.com"}' curl -X POST \
https://api.axisdocs.dev/v1/licenses/activate \
-H "Authorization: Bearer $AXIS_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"key":"AXD-PRO-4F8A-91C2","host":"docs.example.com"}' const response = await fetch('https://api.axisdocs.dev/v1/licenses/activate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.AXIS_API_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
key: 'AXD-PRO-4F8A-91C2',
host: 'docs.example.com',
}),
}); import os, requests
res = requests.post(
"https://api.axisdocs.dev/v1/licenses/activate",
headers={"Authorization": f"Bearer {os.environ['AXIS_API_TOKEN']}"},
json={"key": "AXD-PRO-4F8A-91C2", "host": "docs.example.com"},
) Response Payload application/json
{
"activated": true,
"activation_id": "lic_act_49201",
"host": "docs.example.com",
"repository": "wtr1951/axisdocs-pro",
"remaining": 2
}