# POST /license/check

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

UrbeStack release 0.2.35 API operation in the license group.

Check the license with the license server

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

Contacts the license server immediately, records the result, and returns the resulting standing in the license object. The allowed field indicates whether the UrbeStack web interface allows sign-ins. The check has a 30-second timeout. The check_url field gives the URL selected by license.check_url or the default URL when the setting is empty or unset.

The check uses the recorded outbound IPv4 address and sends only the license request. If that IP address changes, use the urbestack-license-check command with --redetect to record and send the new IPv4 address. Move the license separately on the license server.

Only administrators can call this operation, and the token must have the license scope.

## As a command

- [urbestack-license-check](https://urbestack.com/docs/commands/urbestack-license-check.md): Contacts the license server, records the result and reports whether the UrbeStack web interface allows sign-ins.

## 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 POST "$API/license/check" \
  -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
