Introduction to Licenses

Prev Next

A license unlocks premium capabilities in a Rocket.Chat workspace and defines its limits, such as the number of active users. The Licenses API lets administrators inspect the applied licenses, add a new license, and check limits programmatically.

The license object

License endpoints return a license object describing validity, limits, and granted modules. A trimmed example from Get Licenses:

{
  "license": {
    "license": {
      "version": "3.0",
      "information": {
        "id": "6569155ab286e50001b78ec1",
        "autoRenew": true,
        "visualExpiration": "2024-03-10T00:00:00Z",
        "trial": true,
        "tags": [{ "name": "Enterprise trial", "color": "#F3BE08" }]
      },
      "validation": {
        "serverUrls": [{ "value": "testspace.rocket.chat", "type": "url" }],
        "validPeriods": [
          { "validUntil": "2024-03-24T00:00:00Z", "invalidBehavior": "invalidate_license" }
        ]
      },
      "grantedModules": [
        { "module": "auditing" },
        { "module": "ldap-enterprise" },
        { "module": "livechat-enterprise" }
      ]
    }
  },
  "success": true
}

Fields you use most often:

  • information: What the license is — its ID, whether it is a trial, when it visually expires, and its tags.

  • validation: Where and until when the license is valid, including the workspace URLs it is bound to and its validPeriods.

  • grantedModules: The premium modules the license unlocks, such as auditing or livechat-enterprise.

Common workflows

Check what a workspace is licensed for

  1. Get the licenses to see validity, limits, and granted modules.

  2. Get the maximum active users to compare the seat limit against current usage.

Apply a new license

  1. Add the license string to the workspace.

  2. Validate the license to confirm it applied, then read it back to check the granted modules.

Conventions

  • These are administrative endpoints — they require workspace admin permissions such as view-privileged-setting and edit-privileged-setting. Each endpoint page lists its requirements.

  • Workspaces without a paid license run on Community defaults; license details also appear in the admin area under Subscription.

  • A license is bound to specific workspace URLs and periods — a valid license on the wrong URL or past its validPeriods does not unlock modules.