extras
POST /v1/whmcs-licences/{licenceId}/key
Reveal a WHMCS licence key.
Authentication
Send an API key as a bearer token. The key must carry the billing.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/whmcs-licences/{licenceId}/key \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The licence key of one live WHMCS licence in scope, to paste into a WHMCS installation (Setup, then Licence, or $license in configuration.php). A POST although it reads, like revealDomainAuthCode: a credential must not be a cacheable, prefetchable GET. Every reveal is audit-logged (whmcs_licence.key_viewed) and the response is Cache-Control: no-store. Requires billing.view. A cancelled licence, or one outside scope, answers 404.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
licenceId (path) | Uuid | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
licence_key | string | Yes | The WHMCS licence key (for example Leased-… or Owned-…). |
Errors this endpoint can return
401 · 403 · 404 · 429 · 503