API
The API has been introduced in v3.4. Therefore, it is only available & supported on v3.4 and above.
This page explains the ways to interact with the Abuse Manager Pro API.
Generating your API ID For Authentication
Login to your WHMCS installation (WHMCS Admin)
Go to Setup > Staff Management > Manage API Credentials
Click on API roles, click on Create API Role button, DO NOT give it any actions, press save
Click on API credentials, click on Generate New API Credential button, select your admin user, select the API role created previously
Copy the identifier only - we do not need the secret
This identifier will be the API_ID that needs to be passed in the header of your call to authenticate with the API
API URL / Endpoint
The Abuse Manager Pro API can be consumed from:
Available Actions/Functions
Actions Index
Create
POST
https://URL-TO-YOUR-WHMCS/modules/addons/abusemanagerpro/includes/api.phpCreate
Creates an abuse report automatically
Headers
Request Body
Create
Error Codes
Example PHP Curl Script
The example below shows how to create an abuse report programmatically using the API service.
Last updated