Before you can call the API, you order the Domain Reseller module, activate it, and generate an API key from the reseller portal. This page walks through each portal screen.

Order the module

Order the Domain Reseller module from the Hostraha store: https://portal.hostraha.com/store/domain-reseller The module is white-labelled, includes a free WHMCS module, and has a one-time setup fee.
Hostraha store page for the Domain Reseller module with the Order Now button

The Domain Reseller product in the Hostraha store.

Verify your account email

Verify your account email before you place domain orders. Until your email is verified, domain orders can stay pending and may not provision.
After ordering, the portal shows the notice “Please check your email and follow the link to verify your email address.” Open that email and follow the verification link.

Open the Reseller Area

Once the module is active, open Domains → Reseller Area from the portal navigation: https://portal.hostraha.com/index.php?m=DomainsReseller
Portal Domains menu open, showing the Reseller Area link

The Domains menu, with the Reseller Area link.

The Reseller Area has six tabs: Orders, Pricing, Domains, Settings, Logs, and API Documentation.

Orders

The Orders tab lists your domain orders with amount, payment status, provisioning status, and date.
Reseller Area Orders tab listing a domain order with paid and pending status

Orders tab, listing domain orders and their status.

Pricing

The Pricing tab shows the list price of every TLD available to your account. The API exposes the same data through pricing and TLDs.
Reseller Area Pricing tab listing TLD extensions with prices

Pricing tab, listing TLD extensions and their prices.

Domains

The Domains tab lists the domains in your reseller account with their status and expiry date. Manage any of them through the domain management endpoints.
Reseller Area Domains tab listing an active domain with its expiry date

Domains tab, showing an active domain and its expiry date.

Get your API credentials

Open the Settings tab. The API Details form holds everything you need to authenticate:
  • Credits — your prepaid balance in your account’s currency. Ordering deducts from it. See Credits and billing.
  • API URL — the endpoint you send requests to.
  • API Email Address — your username for the username header.
  • API Key — the secret used to compute the token. Use the Generate API Key button to create or rotate it.
  • Allowed IP Addresses — an allowlist of IPs permitted to call the API. Add your server IPs and click Submit.
The same page has an Integrations section with a downloadable WHMCS module, for resellers who sell Hostraha domains through their own WHMCS storefront.
Settings API Details form showing Credits, API URL, API Email Address, a hidden API Key with a Generate API Key button, Allowed IP Addresses, and the Integrations WHMCS module

Settings tab: the API Details form and the WHMCS module under Integrations. The API key is hidden here.

Keep your API key secret. Anyone with the key and your API email can generate valid tokens and spend your credits. If it is ever exposed, rotate it with Generate API Key.
With the API URL, API Email Address, and API Key in hand, continue to Authentication to compute your token and make your first call.

Logs

The Logs tab records every API request against your account — the action, request, response, timestamp, and source IP. Use it to audit calls and debug integrations.
Reseller Area Logs tab listing API requests with their responses, dates, and IP addresses

Logs tab, recording each API request with its response and source IP.

API Documentation

The API Documentation tab lists every call and model directly in the portal, along with the endpoint and the token formula. Use it as the authoritative reference for your account alongside these docs.
API Documentation tab showing the endpoint, authorization details, and a PHP request example

API Documentation tab: endpoint, authorization, and a request example.