Skip to content
Sign in Create account

Read Unlimited entitlement

GET /api/v1/extension/entitlement

Reports whether the API key's account has an active Unlimited licence. The body is active, plan (unlimited_monthly, unlimited_yearly, or null) and current_period_end. ticket is optional and is present only when the licence is active and the subscription price matches the catalog. ticket is an Ed25519 signature (kid, sub, plan, iat, exp, sig) that expires 72 hours after iat. It is omitted when there is no active paid licence. If the licence is active and the price matches but signing is not configured, the response is 503 entitlement_not_configured and no unsigned ticket is returned. This route does not inspect message content.

Authenticate with an API key.

Responses

200 Entitlement for this API key. ticket is optional.

application/json object

  • active boolean required
  • current_period_end string or null required
  • plan string or null required
  • ticket object

    Present only for an active paid licence whose price matches the catalog.

    • exp integer required
    • iat integer required
    • kid string required
    • plan string required
      One of: "monthly", "yearly"
    • sig string required
    • sub string required
    • v integer required

Generated sample

{
  "active": true,
  "current_period_end": "string",
  "plan": "string",
  "ticket": {
    "exp": 0,
    "iat": 0,
    "kid": "string",
    "plan": "monthly",
    "sig": "string",
    "sub": "string",
    "v": 0
  }
}
401 The cloak API key is missing or invalid (invalid_api_key).

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"
429 too_many_requests. Limit is 30 requests per minute for the API key's user.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"

text/html string

503 entitlement_not_configured. Signing is not configured for an otherwise active matching licence. Retry-After is 3600.

application/json ErrorWithCode

  • error_code string required
  • message string required
  • request_id string (uuid)
  • status string required
    Example: "error"