# GET /license

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the license group.

Get the current license standing

- Who may call it: administrator
- Token scope, any of: license, read, all
- Answers: 200 OK

Returns the license object from stored data without contacting the license server. Only administrators can call this operation, and the token must have the license scope.

The allowed field indicates whether the UrbeStack web interface allows sign-ins. The state is valid while a valid reply is within its grace period and no later check has failed. It is offline if a later check failed and that grace period is still open. It is unanswered before the first reply, with a seven-day grace period starting at the recorded installation time. If no installation time is recorded, that grace period has no deadline yet. The state is invalid if the last reply rejected the license, or lapsed if the grace period expired. Both states block sign-ins and include a reason.

The response includes the recorded outbound IPv4 address in address, the installation time in installed_at, the last attempt time in checked_at, the last reply time in answered_at, and any attempt error in attempt_error. The offline_until field gives the grace period deadline when known. The needs_check field indicates whether a check is due. A recent failed attempt can delay a retry while sign-ins remain allowed, and unreached_since indicates when the server became unreachable. When a reply is on record, status and address_seen give the status and IP address reported by the license server. The response also includes terms and notices, along with plan, paid_until, cache_seconds, and offline_seconds when available. The check_url field gives the URL selected by license.check_url or the default URL when the setting is empty or unset.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/license" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "license": {
    "address": "info@example.com",
    "address_seen": "text",
    "allowed": true,
    "answered_at": "text",
    "attempt_error": "text",
    "cache_seconds": 1,
    "check_url": "text",
    "checked_at": "text",
    "installed_at": "text",
    "needs_check": true,
    "notices": [
      {
        "key": "panel.port",
        "level": "error",
        "message": "text"
      }
    ],
    "offline_seconds": 1,
    "offline_until": "text",
    "paid_until": "text",
    "plan": "text",
    "reason": "text",
    "state": "valid",
    "status": "valid",
    "terms": {
      "accepted": {},
      "covers": 1,
      "installed": 1
    },
    "unreached_since": "text"
  }
}
```

## Errors

- 400: Invalid setting key
- 401: Authentication required
- 404: Setting '<key>' not found
