Difference between revisions of "API Authentication Credentials"
m (→Creating Admin API Authentication Credentials) |
|||
Line 1: | Line 1: | ||
<div class="docs-alert-info"><i class="fa fa-question-circle"></i> This page describes a feature available in version 7.2 and above</div> | <div class="docs-alert-info"><i class="fa fa-question-circle"></i> This page describes a feature available in version 7.2 and above</div> | ||
− | + | In WHMCS 7.2 and later, you can generate unique API authentication credentials. This allows for better management and security for provisioning access to API connected devices and systems. | |
− | WHMCS | + | For more information about using the WHMCS API, see our [https://developers.whmcs.com/api/ API documentation]. |
==Managing API Roles== | ==Managing API Roles== | ||
− | + | To manage admin API authentication roles in the Admin Area, go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Manage API Credentials''' or, prior to WHMCS 8.0, '''Setup > Staff Management > Manage API Credentials'''. | |
[[File:API_Cred_admin_menu_nav.png|300px]] | [[File:API_Cred_admin_menu_nav.png|300px]] | ||
Line 13: | Line 13: | ||
===Creating Admin API Roles=== | ===Creating Admin API Roles=== | ||
− | Click | + | To create an admin API role: |
+ | |||
+ | # Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Manage API Credentials''' or, prior to WHMCS 8.0, '''Setup > Staff Management > Manage API Credentials'''. | ||
+ | # Click '''Create API Role''' to open the '''Role Management''' modal. | ||
+ | # Enter a role in the '''Role Name ''' section. | ||
+ | # Check the desired API permissions. | ||
+ | # Optionally, enter a description. | ||
[[File:API_admin_menu_roles_modal.png|550px]] | [[File:API_admin_menu_roles_modal.png|550px]] | ||
Line 19: | Line 25: | ||
==Managing API Credentials== | ==Managing API Credentials== | ||
− | + | To manage admin API authentication credentials, go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Manage API Credentials''' or, prior to WHMCS 8.0, '''Setup > Staff Management > Manage API Credentials'''. | |
[[File:API_Cred_admin_menu_nav.png|300px]] | [[File:API_Cred_admin_menu_nav.png|300px]] | ||
Line 25: | Line 31: | ||
===Creating Admin API Authentication Credentials=== | ===Creating Admin API Authentication Credentials=== | ||
− | + | To create new admin API authentication credentials: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | # Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Manage API Credentials''' or, prior to WHMCS 8.0, '''Setup > Staff Management > Manage API Credentials'''. | |
+ | # Click '''Generate New API Credential''' to open the '''Generate New API Credential''' modal. | ||
+ | # Select the admin who the new credential will authenticate. | ||
+ | # Optionally, enter a description.[[File:API_Cred_generate_select_admin2.png|550px]] | ||
+ | # Click '''Generate''' to provision a unique API credential for the selected admin. The credential identifier and secret will display. | ||
+ | #* These two values should be used in leu of the admin's username and password for API authentication. | ||
+ | #* To the right of each value is a quick copy button for your convenience.[[File:API_Cred_generated_pair2.png|550px]]<div class="docs-alert-warning">You must copy the Secret value at this time. If you lose this, you will need to generate a new credential pair.</div> | ||
+ | # Click the '''X''' at the top right corner to exit. | ||
− | + | The new API credential will appear in the list. | |
[[File:API_Cred_table2.png|550px]] | [[File:API_Cred_table2.png|550px]] |
Revision as of 18:07, 17 December 2021
In WHMCS 7.2 and later, you can generate unique API authentication credentials. This allows for better management and security for provisioning access to API connected devices and systems.
For more information about using the WHMCS API, see our API documentation.
Contents
Managing API Roles
To manage admin API authentication roles in the Admin Area, go to Configuration () > System Settings > Manage API Credentials or, prior to WHMCS 8.0, Setup > Staff Management > Manage API Credentials.
Creating Admin API Roles
To create an admin API role:
- Go to Configuration () > System Settings > Manage API Credentials or, prior to WHMCS 8.0, Setup > Staff Management > Manage API Credentials.
- Click Create API Role to open the Role Management modal.
- Enter a role in the Role Name section.
- Check the desired API permissions.
- Optionally, enter a description.
Managing API Credentials
To manage admin API authentication credentials, go to Configuration () > System Settings > Manage API Credentials or, prior to WHMCS 8.0, Setup > Staff Management > Manage API Credentials.
Creating Admin API Authentication Credentials
To create new admin API authentication credentials:
- Go to Configuration () > System Settings > Manage API Credentials or, prior to WHMCS 8.0, Setup > Staff Management > Manage API Credentials.
- Click Generate New API Credential to open the Generate New API Credential modal.
- Select the admin who the new credential will authenticate.
- Optionally, enter a description.
- Click Generate to provision a unique API credential for the selected admin. The credential identifier and secret will display.
- Click the X at the top right corner to exit.
The new API credential will appear in the list.
You may create as many API credential pairs for an admin as you require. You may remove any credential pair to invalidate access and authentication attempts that are received with that Identifier.
Furthermore, you may alter the admin's login password freely without invalidating credentials provisioned by this feature. If you disable or remove entirely an admin user, any associated API credentials will become invalid. As noted above, if your copy of the Secret is forgot or otherwise unknown, simply create a new API credential pair, then use the freshly generated Identifier and Secret in your integration. We advise you promptly delete the former credential pair whose secret is unknown
Updating Credential Descriptions
You may update the description and associated API Roles at any time. Find the credential you wish to edit in the table list. Click the associated edit button (depicted by a pencil icon) to open the Credential Management dialog screen.
You may update just the description for a credential at any time directly in the description field of the table. This field is provided to enable effective management of multiple credentials associated with a given admin users and for your contextual use.
To simply update a description, locate the desired credential by utilizing the API Credential table's search function and/or by using column sorting & pagination. Once you have found the credential, click the current description to active the editor.
Once you have typed in the new description, click the check button to the immediate right.
Removing Admin API Authentication Credentials
You may revoke API authentication by removing a generated credential.
To remove a authentication with a given credential, locate the desired credential by utilizing the API Credential table's search function and/or by using column sorting and pagination. Once you have found the credential to be removed, click the delete button found in the right most column of that row.
A confirmation dialog screen will be presented. Click the Delete Credentials button to permanently remove the credential.