Reseller guideAPI credentials and IPs
MAILOCEAN / RESELLER GUIDE

API credentials and IPs

Create a tenant-scoped token and authorize your WHMCS server.

Permissions and prerequisites

The tenant owner or an administrator with API permission manages tokens. Provisioning and changing WHMCS reseller services requires a tenant administrator with full permissions.

  1. Sign in as the tenant owner or an administrator with API permission.
  2. For WHMCS provisioning and service changes, use a token owned by a tenant administrator with full permissions.
  3. Determine the actual outbound public IP of your WHMCS server.

Create the token

  1. Open Customer portal → API.
  2. Enter one allowed outbound IP or CIDR per line; a /0 network is rejected.
  3. Generate the token and securely copy the value shown once.
  4. In WHMCS, open Addons → MailOcean → API connection, save the token and test the connection.
Customer portal API access settings
Demo screenshot · The IP address is an example; use your WHMCS server’s actual outgoing IP. Open full size ↗

Protect access

Treat the token like a password and allow only necessary server IPs. Each API request uses HTTPS and Authorization: Bearer <token>.

  1. Keep the token only in your authorized WHMCS environment and use HTTPS and Bearer authorization for requests.
  2. Update the allowlist and retest when the outbound IP changes.
  3. If exposure is suspected, rotate the token and update WHMCS; the old token stops working immediately.
Rotating or revoking a token immediately invalidates the old one. Update WHMCS and test again. A /0 network, which allows every IP, is not accepted.

Need a hand?

Talk to our team about reseller onboarding, connection or your agreement.

info@mail-ocean.com ↗