Manage2 API Function - Add Licenses
Last modified: 2026 March 4
Description
This function adds a new license to a Manage2 account.
Examples
Browser-based calls
XML
https://manage2.cpanel.net/XMLlicenseAdd.cgi?ip=192.0.2.0&packageid=8&groupid=13&force=1&dryrun=0&maxusers=120&external_notes=testlicenseJSON
https://manage2.cpanel.net/XMLlicenseAdd.cgi?output=json&ip=192.0.2.0&packageid=008&groupid=013&force=1&dryrun=0&maxusers=120&external_notes=testlicenseYAML
https://manage2.cpanel.net/XMLlicenseAdd.cgi?output=yaml&ip=192.0.2.0&packageid=008&groupid=013&force=1&dryrun=0&maxusers=120&external_notes=testlicense
cPanelLicensing PHP Class
|
|
cPanelLicensing Perl Module
|
|
Output (XML)
<XMLlicenseAdd licenseid="6793969" monthly_price="21.34" price="0.00" promoinfo="" reason="Activated EXAMPLECOMPANY license on 192.0.2.0 in the 'example' group." status="1" yearly="0"/>
Output (JSON)
|
|
Output (YAML)
|
|
Parameters
This function accepts the following parameters:
| Parameter | Type | Description | Example |
|---|---|---|---|
admin_email |
string | Required This parameter only applies to WHMCS Cloud licenses. The administrator email address for the WHMCS Cloud instance. This value must be unique. | [email protected] |
domain |
string | Required for WHMCS Cloud licenses This parameter only applies to WHMCS Cloud and WP Squared Cloud licenses. The domain name for the WHMCS Cloud or WP Squared Cloud instance. This value must be unique. | example.com |
dryrun |
Boolean | Whether to display error messages and price information but not activate the license:
0. |
1 |
external_notes |
string | A space for additional information associated with the license, up to 64 characters long.
Warning:
If the parameter’s value exceeds 64 characters, this function will return an error.
|
testlicense |
force or reactivateok |
Boolean | Whether to forcibly add the license to the specified IP address:
1. |
0 |
groupid |
string | The ID of the group to which to add the license.
|
013 |
hosted_sites |
integer | A positive integer for the total number of hosted sites on a Sitejet Studio license.This parameter defaults to 1.
Note:
This parameter is optional and only applies to Sitejet Studio licenses.
|
1 |
ip |
string | Required The IP address for which to add a license.
Note:
The following licenses do not require this parameter:
|
192.0.2.0 |
language |
string | This parameter only applies to WHMCS Cloud and WP Squared Cloud licenses. The default language for the WHMCS Cloud or WP Squared Cloud instance:
en-US. |
en-US |
maxusers |
integer | The maximum number of users allowed on the license. | 120 |
packageid |
string | Required The package’s ID number. The Manage2 List Package Information function returns a list of possible values. | 008 |
profiles |
integer | This parameter is optional and only applies to SocialBee licenses. It represents the number of additional profiles to add to a SocialBee license, and must be a positive multiple of 5. | 5 |
projects |
integer | The total number of additional projects for a koality license. This parameter defaults to 0. |
30 |
self_hosted_sites |
integer | A positive integer for the total number of self-hosted sites on a Sitejet Studio license.This parameter defaults to 0.
Note:
This parameter is optional and only applies to Sitejet Studio licenses.
|
1 |
servers |
integer | A positive integer for the total number of server monitors.
Note:
|
1 |
sites |
integer | This parameter is optional and only applies to 360 Monitoring, WP Guardian, or WP Guardian (cPanel Addon) licenses. Its value depends on your license type.
Note:
If you do not use this parameter, the |
20 |
users |
integer | This parameter is optional and only applies to SocialBee licenses. It represents the number of additional users to add to a SocialBee license, and must be a positive integer. | 1 |
workspaces |
integer | This parameter is optional and only applies to SocialBee licenses. It represents the number of additional workspaces to add to a SocialBee license, and must be a positive integer. | 1 |
zone |
string | Required for WHMCS Cloud and WP Squared Cloud licenses The data center zone for the instance:
|
us-south-tx2 |
Returns
This function returns the following values:
| Return | Type | Description | Example |
|---|---|---|---|
activation_code |
string | The activation code for a license of the following types:
|
ABC123-1Q2W3E-BMW555-V5F4R3-HJKL98 |
activation_link |
string | The link to use to activate a license of the following types:
Note:
WP Guardian (cPanel Addon) and Comet Backup licenses always return a blank string as the
activation_link value.
|
https://app.360monitoring.com/license/activate/ABC123-1Q2W3E-BMW555-V5F4R3-HJKL98 |
cname |
string | The CNAME DNS record for the WHMCS Cloud or WP Squared Cloud license’s associated instance. | 12345678-abcd-1234-efgh-567890abcdef.package.webpros.cloud |
hosted_sites |
integer | The total number of hosted sites on a Sitejet Studio license. | 1 |
licenseid |
integer | The new license ID. | 6793969 |
memory |
number | The amount of memory in GB for the WP Squared Cloud license. | 0.50 |
monthly_price |
numeric | The monthly base price of a license, in US dollars. | 21.34 |
password |
string | The password for the WHMCS Cloud or WP Squared Cloud instance. | 123456luggage |
phpworkers |
integer | The number of PHP workers for the WP Squared Cloud license. | 1 |
price |
numeric | The price for a license in US dollars. | 100.00 |
products_included |
string | The total number of products you can display in the web stores you create with Sitejet Commerce. One of:
|
100 |
profiles |
integer | The number of additional profiles you added to a SocialBee license. If you did not add this parameter, this return’s value is 0. |
5 |
projects |
integer | A positive integer that represents the total number of projects for a koality license. | 30 |
promoinfo |
string | Information about any applied promotional rates. One of:
|
"" |
reason |
string | Information about the license activation. | Activated EXAMPLECOMPANY license on 192.0.2.0 in the 'example' group. |
servers |
integer | The number of server monitors in the 360 Monitoring license. This must be a positive integer. | 1 |
sites |
integer | This return value depends on your license type.
|
20 |
self_hosted_sites |
integer | The total number of self-hosted sites on a Sitejet Studio license. | 1 |
status |
Boolean | Whether the function succeeded:
|
1 |
storage |
integer | The amount of storage in GB for the WP Squared Cloud license. | 10 |
username |
string | The username for the WHMCS Cloud or WP Squared Cloud instance. | admin |
users |
integer | The number of additional users you added to a SocialBee license. If you did not add this parameter, this return’s value is 0. |
1 |
vcpus |
integer | The number of virtual CPUs for the WP Squared Cloud license. | 1 |
workspaces |
integer | The number of additional workspaces you added to a SocialBee license. If you did not add this parameter, this return’s value is 0. |
1 |
wpcga_sites |
integer | The number of sites for a WP Guardian (cPanel Addon) license. | 100 |
yearly |
Boolean | Whether the license is a yearly license:
|
0 |