curl "https://your-paneldns-domain.com/api/v1/legal-version" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"ok": true,
"version": "2026-04-01"
}
Org
Legal Version
Returns the current platform legal version string. No specific scope required (any valid token).
GET
/
api
/
v1
/
legal-version
curl "https://your-paneldns-domain.com/api/v1/legal-version" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"ok": true,
"version": "2026-04-01"
}
Returns the legal version string currently in force on the platform. The WHMCS reseller module
calls this at provisioning time so the version it stamps on new sub-client records matches what
the platform considers current (
CONSENT-API-01).
The value is read from the platform settings key legal_version, falling back to the
legal.version config value when that setting has never been written.
curl "https://your-paneldns-domain.com/api/v1/legal-version" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"ok": true,
"version": "2026-04-01"
}
version is returned at the top level of the response, not inside a data object. This differs
from most other endpoints on this API — decode it as $body['version'], not $body['data']['version'].Response fields
string
The current legal version identifier. An empty string means no version has been configured on
the platform yet — treat that as “nothing to stamp” rather than as a version value.
This is the reseller-tier endpoint and requires a reseller Bearer token. The operator tier has a
separate, unauthenticated endpoint at
GET /platform/v1/legal-version which returns the
version plus the legal document URLs. The two endpoints are not interchangeable. That
endpoint is documented in the operator reference, not on this site.