Skip to main content
GET
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.
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.