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 atrial, 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 itsvalidPeriods.grantedModules: The premium modules the license unlocks, such asauditingorlivechat-enterprise.
Common workflows
Check what a workspace is licensed for
Get the licenses to see validity, limits, and granted modules.
Get the maximum active users to compare the seat limit against current usage.
Apply a new license
Add the license string to the workspace.
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-settingandedit-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
validPeriodsdoes not unlock modules.