Get your free beta license ↗
API operation · license group
POST

/license/check

First published 3 Oct 20260.1.0Unchanged since publication

Check the license with the license server

Who may call it
AdministratorResellerCustomer
Token scope, any of
licenseall
Answers200 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

Run as root on the server

Example

See the API overview for how to set $API and $TOKEN.
Request
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

3 errors, each a status and a sentence
400Invalid setting key
401Authentication required
404Setting '<key>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-license-check/