assistanz
Assistanz

Generating API token for resellers in cpanel

Generating API token for resellers in cpanel

In this blog, Which represents the steps to Generating API token for resellers in WHM/CPANEL.

Overview:

The API token is part of a new set of defaults that every reseller has access to. Newly created Resellers should have these default privileges.  API tokens allow you to log in to your server without the need for a password. You can use an API token to authenticate with WHM’s remote API. If you use a remote billing solution, you will need to set up an API token on all of your cPanel & WHM servers.

Requirements:

The following steps guide you to get the API token in WHM:

  1. Please enter the Manage API Tokens location from the below path:  Home »Development »Manage API Tokens
  2. Click the (+ Generate token ) option in the Manage API Tokens.
  3. Provide the token name under the Manage API Tokens.
  4. After selecting the privileges please hit the save button.
  5. Now you will get the below output with the token.
    You successfully created the API token “test”.Copy the following token to a safe place: XXXXXXXXXXXXXXXX
  6. Click: Yes, I saved my token button.
  7. That’s it from the WHM part.

 

WHMCS PROCESS:

  • We need to add a server for the Cpanel product to be assigned to the WHMCS.
  • Please go to the below location. Setup > Products/Services  > servers > Add a new server
  • Provide the server details to connect the server.
  • Add the generated token in the corresponding field in the WHMCS Add a new server.
  • Tick the SSL mode checkbox.
  • Complete the add new server filed processes.

 

Please follow the below steps to activate the API token for a particular user from the command line:

When updating, Cpanel attempts to add these default privileges to old resellers but we have seen some cases where this doesn’t happen so we ran it manually for a particular user.

~]#/scripts/fix_reseller_acls --add-default-privs --reseller=username

The output should be:
~~~
[*] Processing reseller: ‘username’….
[*] Adding default privileges to ‘username’…
[*] Added default privileges to ‘username’…
[+]Proccessed reseller: ‘username’
~~~

And now we should able to access the API token interface while using the reseller. If you would like to add this to all resellers you can use the ‘–all-resellers’ flag when logged in as the ROOT user:

~~~

#/scripts/fix_reseller_acls --add-default-privs --all-resellers

~~~

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support