> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.paneldns.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Legal Version

> Returns the current platform legal version string. No specific scope required (any valid token).

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.

<RequestExample>
  ```bash cURL theme={null}
  curl "https://your-paneldns-domain.com/api/v1/legal-version" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "ok": true,
    "version": "2026-04-01"
  }
  ```
</ResponseExample>

<Note>
  `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']`.
</Note>

## Response fields

<ResponseField name="version" type="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.
</ResponseField>

<Info>
  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.
</Info>
