Where the deployment's license key stands
const url = 'https://example.com/v1/license';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/license \ --header 'Authorization: Bearer <token>'Whose key, which use, until when and how many days are left, and from 30 days before it expires how to get the next one, as the runtime’s startup banner says it. Never the key itself. mode: development when the runtime runs with KINDGI_DEV and needs no key. The license is the deployment’s: its own token (KINDGI_API_TOKEN), or a system key holding system:license (the renewal job’s), reads all of it, renew with where the deployment keeps its key included. Where the deployment serves exactly one tenant, that tenant’s admins read the countdown only (mode, standing, expiresAt, startsUntil, daysLeft, renewBy): never whose key it is or where it’s kept. Anyone else is refused: GET /v1/identity/me/permissions says so before asking (licenseOperatorOnly, with tenant.admin). A deployment that doesn’t report it answers 404.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The license status.
object
Example
{ "mode": "development", "use": "production", "standing": "valid", "renewBy": "command", "preview": { "standing": "valid" }}Missing / malformed / expired / revoked bearer token.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Not the deployment’s own token, a system key holding system:license, or an admin of the one tenant it serves (license-operator-only). On a runtime serving one tenant, a system key holding anything but system:license (system-key-scope-not-served).
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Headers
Section titled “Headers”See also
PUT /v1/license: Hand the running server a renewed license key- Licensing
- Run with authorization
- People, API keys and service accounts
- Error code
authz-backend-unavailable - Error code
database-busy - Error code
license-operator-only - Error code
rate-limit-exceeded - Error code
system-key-scope-not-served - Every error code