API Endpoint

GET /management/slugs

List configured slug policy templates used during license generation.

GET /management/slugs

Endpoint context

Use these endpoints from internal tooling or your frontend backend to inspect licenses, manage slug policy templates, provisioning API keys, webhook endpoint configuration/logs, and offline JWT signing keys. Management routes require the management bootstrap key configured via MANAGEMENT_API_KEYS or MANAGEMENT_API_KEY.

  • Requires management API key auth.
  • Returns slug records including expiration policy, offline policy, and default slug flag.
  • Slug policies affect newly generated licenses and are snapshotted at issuance time.
bash
curl -sS http://localhost:8080/management/slugs \
  -H "Authorization: Bearer management_key_dev_123456"

Request body

json
{} (no request body)

Response body

json
{
  "slugs": [
    {
      "id": 1,
      "name": "default",
      "max_activations": 1,
      "expiration_type": "forever",
      "expiration_days": null,
      "fixed_expires_at": null,
      "offline_enabled": false,
      "offline_token_lifetime_hours": 24,
      "is_default": true,
      "created_at": "2026-04-21T09:00:00Z",
      "updated_at": "2026-04-21T09:00:00Z"
    }
  ]
}

Response field types

slugs

array

Slug policy records available for generation.

slugs[].offline_enabled

boolean

Whether licenses under this slug can receive offline JWTs.

slugs[].offline_token_lifetime_hours

number

Maximum lifetime for issued/refreshed offline JWTs, in hours.

Error codes

401

Missing or invalid management API key.

500

Unexpected server or storage error.

Back to API overview