https://my.hosthunt.in/developers/api
1 Dec 2026
Reseller API
Run your hosting business on top of HostHunt. Sell our hosting, Cloud VPS, VPS by IP and domains under your own brand, pay from your wallet, control servers and handle support — straight from your website, billing system or scripts.
- Base URL
- https://my.hosthunt.in/api/v1
- Format
- JSON over HTTPS
- Authentication
- Bearer token
- Rate limit
- 120 requests / min per token
Authentication
Every request carries an API token in the Authorization header. Create tokens in the client area under
Account → API access. You choose each token's permissions, an optional expiry date and an
optional IP allowlist. The token is shown once when it is created — we only keep a hash of it.
Requests & responses
Send request bodies as JSON with Content-Type: application/json (form encoding also works). Every response is JSON
with the same envelope, and every response carries a request_id — quote it when you contact support.
Money is a number in the invoice's currency (INR) with two decimals. Dates are YYYY-MM-DD; timestamps are ISO 8601 with
the time-zone offset (2026-11-12T13:30:00+05:30). IDs are integers unless documented otherwise.
Errors
Check the HTTP status first, then error.code — a stable string you can switch on. error.message is written
for people and may change.
| Status | Codes | Meaning |
|---|---|---|
| 400 | invalid_json invalid_idempotency_key |
The request could not be read. |
| 401 | unauthenticated invalid_token |
No token, or the token is wrong, revoked or expired. |
| 402 | insufficient_balance |
The wallet balance does not cover the invoice. |
| 403 | insufficient_scope ip_not_allowed api_access_disabled account_inactive email_not_verified |
Authenticated, but not allowed to do this. |
| 404 | not_found route_not_found feature_disabled ip_not_available |
The resource does not exist or is not yours. |
| 405 | method_not_allowed |
Wrong HTTP method. |
| 409 | conflict already_paid service_not_active not_ready ticket_closed idempotency_in_progress ip_taken |
The request clashes with the current state. |
| 422 | validation_failed request_failed order_failed confirmation_required not_supported registrant_details_required idempotency_key_reused plan_not_available use_vps_orders |
The request was understood but cannot be done as sent. |
| 429 | rate_limited |
Too many requests. Wait for Retry-After seconds. |
| 5xx | internal_error upstream_error |
Something failed on our side. Safe to retry with the same Idempotency-Key. |
Rate limits
Each token may make 120 requests per minute. Every response tells you where you stand:
| X-RateLimit-Limit | Requests allowed in the current window |
| X-RateLimit-Remaining | Requests left in the current window |
| X-RateLimit-Reset | Unix time when the window resets |
| Retry-After | On a 429: seconds to wait before retrying |
Some actions have their own, tighter limits per account: power actions 6 per minute per server (60 in total), reinstalls 3 per 10 minutes per server, orders and payments 30 per hour, domain orders 20 per hour, new tickets 20 per hour.
Idempotency
Networks fail. To retry an order, a payment, a reinstall or a new ticket safely, send an Idempotency-Key header with a
unique value (a UUID is ideal). If we have already handled a request with that key, we return the original response again
(with Idempotent-Replayed: true) instead of ordering or charging twice. Keys are kept for 48 hours.
Reusing a key with a different body is refused with 422 idempotency_key_reused. A retry while the first request is
still running gets 409 idempotency_in_progress.
Pagination
List endpoints take page (from 1) and per_page (1-100, default 25) and return a meta object with
page, per_page, total and total_pages.
Permissions
A token can only do what its permissions allow. Give each integration the smallest set it needs; WRITE permissions can change things or spend money.
account:readcatalog:readorders:writeWRITEinvoices:readinvoices:payWRITEservices:readservices:powerWRITEservices:rebuildWRITEservices:passwordWRITEwebhooks:writeWRITEdomains:readdomains:writeWRITEtickets:readtickets:writeWRITESelling a server, end to end
A typical storefront integration — your customer pays you, you buy from us with your wallet:
- Show plans. List products and add your own margin to
pricing[].price. - Ask for options. Get a product returns the locations and operating systems to offer.
- Order and pay. Create an order with
pay_with_wallet: trueand anIdempotency-Key. - Wait for it. Poll Get a service every 30-60 seconds until
statusisactiveandip_addressis set. - Hand over control. Offer your customer power and reinstall buttons that call the API.
- Renew. Each period a renewal invoice appears: list unpaid invoices daily and pay them before
due_date, or the service is suspended.
Selling VPS by IP
Let your customer choose the IP address first — an exact IP, or an IP range — and only then a plan. This is the same flow as the VPS by IP page of our store, and the server is built on the IP that was chosen.
- Show the IPs. List IPs. Group them by
group(first two parts of the address) and markexactones. - Show the plans on that IP. Get an IP’s plans gives prices for each billing cycle and the operating systems to offer.
- Order and pay. Order a VPS on an IP with
ip,plan_id,billing_cycle,os_id,pay_with_wallet: trueand anIdempotency-Key. - Wait for it. Poll Get a service until
statusisactive. From then on it is a normal VPS: power, reinstall and renewals work as usual.
ip_not_available or ip_taken, send your customer back to step 1.Account
3 endpoints.
Permissions used: account:read
Check a token
Confirms the token works and shows its permissions. Handy as the first call of an integration.
Get account
account:read Your profile, wallet balance, money owed and how many services you have in each status.
List wallet transactions
account:read Every movement of your wallet balance, newest first. Paginated (default 50 per page).
Query parameters
Catalog
3 endpoints.
Permissions used: catalog:read
List products
catalog:read Every product you can order, grouped like the store, with the price of each billing cycle. Prices exclude GST, which is added on the invoice.
Query parameters
103.151vbi-…, os_family, ips[] with each IP’s id and os). Order those with Order a VPS on an IP: plan_id = order.plan_id, ip = one of ips[].id.Get a product and its order options
catalog:read One product, plus an order block that says which fields Create an order needs for it and, for Cloud VPS, the locations and operating systems you can pick. The “VPS by IP” product also carries vps_by_ip.ips: the IPs you can order on now, each with its plans (prices and OS), as in Get an IP's plans.
Check domain availability
catalog:read Live availability and price of one name across up to 10 extensions.
Query parameters
example.com,example.inOrders
3 endpoints.
Permissions used: orders:write
Create an order
orders:write Supports Idempotency-Key Orders a service exactly like the store's checkout does — same prices, coupons, stock and location checks. An invoice is created; send pay_with_wallet: true to pay it from your wallet straight away, which starts provisioning. Without it, pay later with Pay an invoice.
Body parameters
monthly quarterly semi_annual annual biennial triennial — one the product has a price fordomain in the same orderregister_domainorder.choicesid from the product’s order.choices.os. Left out, the one marked default is installed (Windows plans list only Windows images)422 use_vps_orders here). If the wallet balance is too low the order is still placed: payment.paid is false with error_code: insufficient_balance, and the invoice stays unpaid. Poll Get a service until status is active. If your account is in our reseller program, the order is priced at your reseller rate, like the store does for you: the invoice and the renewals use that amount. Proxy plans need a completed KYC on your account and free stock; otherwise the answer is 422 request_failed with the reason in message. Reseller hosting accounts are created with the plan’s reseller permissions and account limits already applied.List orders
orders:write New · 29 Nov 2026 Your orders, newest first, with their invoice and services. Add idempotency_key to find the order an API request placed with that Idempotency-Key — the way to recover an order whose answer you never received. Works with a token that has orders:write or services:read.
Query parameters
meta.idempotency.state says completed, in_progress, failed (with http_status and error) or not_foundpending processing active cancelled fraudPOST again with the same Idempotency-Key and body within 48 hours: you get the first answer back (header Idempotent-Replayed: true) and nothing is ordered twice. The key lookup here keeps working after that.Get an order
orders:write New · 29 Nov 2026 One order, same shape as in List orders.
VPS by IP
3 endpoints.
Permissions used: catalog:read orders:write
List IPs
catalog:read New · 22 Nov 2026 Every IP your customer can order a VPS on right now — the same list as the store’s VPS by IP page. type is exact for one ready IP address (the server gets exactly that IP) or series for an IP range (the server gets a free IP from that range, free says how many are left when we know). Pass each item’s id to Get an IP’s plans and Order a VPS on an IP.
Query parameters
exact or series — only that kind1 also returns each IP’s plans (slower); IPs with nothing orderable are then left outip_not_available or plan_not_available then.Get an IP's plans
catalog:read New · 22 Nov 2026 The plans that can be ordered on one IP, each with the price of every billing cycle it sells and the operating systems it can install. Prices exclude GST, which is added on the invoice.
specs is what the server really gets (trust it over the plan name); a field is null where we don’t know it, and bandwidth_gb: null can mean unmetered. login.custom_password: a password sent with Order a VPS on an IP is set on the server. login.password_reset: Set a new server password works once the server is built. Errors: 404 ip_not_available — the IP was sold or withdrawn; list the IPs again.Order a VPS on an IP
orders:write Supports Idempotency-Key New · 22 Nov 2026 Orders a plan on the IP you picked, through the same checkout as the store: the server is built on that IP (or on a free IP of that range), with the same prices, coupons and stock checks. An invoice is created; send pay_with_wallet: true to pay it from your wallet straight away, which starts provisioning.
Body parameters
id from List IPsid from Get an IP’s planspricing[].cycleos[].id. Left out, the first one is installedvps1.example.comlogin.custom_password: true. Left out there, a strong one is generated. Other plans set their own password (see login in the answer)404 ip_not_available the IP is gone · 409 ip_taken another buyer is checking out with this exact IP · 422 plan_not_available the plan is not sold on this IP any more · 422 validation_failed wrong cycle or OS. Poll Get a service until status is active (or add a webhook); ip_address then shows the server’s IP. login.password is as_sent, generated or provider_generated; the password itself is never in this answer — read it with Get a server login once the server is active, or set your own with Set a new server password. Renewals, power and reinstall work like any other VPS. If your account is in our reseller program, the order is priced at your reseller rate.Invoices
3 endpoints.
Permissions used: invoices:read invoices:pay
List invoices
invoices:read Newest first. Paginated.
Query parameters
all (default) unpaid paid overdue cancelled refundedGet an invoice
invoices:read One invoice with its line items.
Pay an invoice
invoices:pay Supports Idempotency-Key Pays an unpaid invoice in full from your wallet. This runs the normal paid-invoice steps: the service is provisioned or renewed. Top up the wallet in the client area.
402 insufficient_balance, 409 already_paid.Services
7 endpoints.
Permissions used: services:read services:power services:rebuild services:password
List services
services:read All your services — hosting, servers, everything — newest first. actions tells you which server actions a service supports right now.
Query parameters
active pending suspended cancelled terminatedhosting reseller cloud_vps vps dedicated …Get a service
services:read One service, with its disk and bandwidth limits, what the server runs (specs, VPS only) and the ids of its unpaid invoices.
specs and the limits come from the server itself (synced from our provider every few minutes), so they are what the machine really has. limit_mb = GB × 1024. A value is null when it is not known yet (server still being built) or not reported; used_mb is filled for hosting accounts only. actions.password says whether Set a new server password works for this server.Start, stop or reboot a server
services:power Sends a power action to a VPS. The action runs in the background and takes up to a minute. Limited to 6 per minute per server.
Body parameters
start · stop (power off now) · shutdown (graceful) · reboot409 service_not_active (suspended or not active), 409 not_ready (still being set up), 422 not_supported (not a VPS).List operating systems for a reinstall
services:read The operating systems this server can be reinstalled with. Use an id as os_id in Reinstall a server.
Reinstall a server
services:rebuild Supports Idempotency-Key Erases everything on the server and installs a fresh operating system. Limited to 3 per 10 minutes per server.
Body parameters
REBUILDSet a new server password
services:password New · 29 Nov 2026 Sets a new root (Linux) or Administrator (Windows) password on a running VPS without reinstalling — nothing on the server is touched. Send your own password or leave it out to have a strong one generated; the answer carries the password. Limited to 3 per 5 minutes per server.
Body parameters
services:password or services:rebuild. applies is now, or after_reboot on servers that pick the password up at the next restart (reboot it with power). Not every server type can change its password without a reinstall: check actions.password in Get a service; otherwise the answer is 422 not_supported — use Reinstall with a password. Other errors: 409 not_ready, 409 service_not_active, 422 validation_failed. The password is not stored with an Idempotency-Key.Get a server login
services:password New · 29 Nov 2026 The current username and password of a VPS, as the client area shows them. Limited to 5 per 5 minutes per server.
services:password or services:rebuild. Errors: 404 login_unavailable (the server is still installing — the login shows a few minutes after it is ready), 409 not_ready, 422 not_supported (not a VPS).Domains
4 endpoints.
Permissions used: domains:read domains:write
List domains
domains:read Your domains with expiry dates and nameservers. Paginated.
Get a domain
domains:read One domain.
Register a domain
domains:write Supports Idempotency-Key Orders a domain registration and creates its invoice. Your account needs a full address and phone number (the registrar requires them).
Body parameters
example.in422 registrant_details_required — complete your profile address first.Change nameservers
domains:write Sets 2-4 nameservers. Some extensions are changed by our team — then status is pending_review.
Body parameters
Support
5 endpoints.
Permissions used: tickets:read tickets:write
List departments
tickets:read Departments a ticket can be opened in.
List tickets
tickets:read Most recently updated first. Paginated.
Query parameters
open answered client_reply on_hold closedGet a ticket
tickets:read One ticket with its conversation (internal staff notes are never included).
Open a ticket
tickets:write Supports Idempotency-Key Opens a support ticket. Our team is notified as usual.
Body parameters
low medium (default) high criticalReply to a ticket
tickets:write Adds your reply to an open ticket.
Body parameters
409 ticket_closed.Webhooks
7 endpoints.
Permissions used: webhooks:write
List webhooks
webhooks:write New · 29 Nov 2026 Your webhook endpoints. We POST an event to each one when one of your services changes status — for example pending → active when a server is ready, active → suspended, or → cancelled / terminated. Up to 5 endpoints. Works with a token that has webhooks:write or services:read.
Add a webhook
webhooks:write New · 29 Nov 2026 Adds an endpoint. The answer carries its signing secret — shown only once, so save it. Changes are checked every few minutes, so an event arrives within about 5 minutes of the change.
Body parameters
https:// on a public address, up to 500 charactersservice.status_changed (the default)POST with a JSON body:id (evt_…), type (service.status_changed), created_at, and data with previous_status, status and service (the same fields as List services).Headers:
X-Webhook-Id (the event id — the same on every retry, use it to skip duplicates), X-Webhook-Event, X-Webhook-Timestamp, and X-Webhook-Signature: t=<timestamp>,v1=<signature>.Check the signature:
v1 = hex HMAC-SHA256 of <t>.<raw body> with your secret. In PHP: hash_equals(hash_hmac('sha256', $t . '.' . $rawBody, $secret), $v1). Reject events whose t is more than 5 minutes old.Answer with any 2xx within 8 seconds. Anything else (or no answer) is retried after 1, 5, 15, 60 minutes, 3, 6 and 12 hours, then dropped. An endpoint that fails 50 times in a row is switched off (
active: false, see disabled_reason); switch it back on with Change a webhook. A service that changes twice between checks sends one event with its latest status. The first event for a new order has previous_status: null.Get a webhook
webhooks:write New · 29 Nov 2026 One endpoint with its last 20 deliveries: state is pending (will be retried at next_attempt_at), delivered or failed.
Change a webhook
webhooks:write New · 29 Nov 2026 Change the URL, events or description, or switch the endpoint off and on. Send only what changes.
Body parameters
false pauses deliveries; true resumes them and resets the failure countSend a test event
webhooks:write New · 29 Nov 2026 Sends a signed webhook.test event to the endpoint right now and tells you what it answered.
Change the signing secret
webhooks:write New · 29 Nov 2026 Makes a new secret (shown once). Events sent from now on are signed with it.
Delete a webhook
webhooks:write New · 29 Nov 2026 Removes the endpoint and its pending deliveries.
Security checklist
- Use one token per integration, named after it, so you can revoke one without touching the others.
- Give each token only the permissions it needs, and an IP allowlist with your server's addresses.
- Store tokens in environment variables or a secrets manager, never in source code.
- Watch Recent API calls for requests you do not recognise; revoke the token at once if you see any.
- Always send an
Idempotency-Keyon orders and payments, and retry 5xx / network errors with the same key.
Changelog
Every change to the Reseller API, newest first. Changes inside v1 only ever add — new endpoints, new fields, new error
codes — so your code should ignore fields it does not know. Anything that would break an existing integration goes into a new
version (/api/v2), announced here in advance.
-
v1.3.1
- FixedVPS service and plan names always match the server’s real specs: a name that promised a different disk or RAM size (e.g. “50 GB” on a 20 GB server) is shown with the real sizes, in services, orders and webhooks.
- FixedPlace an order checks a sent
passwordup front and answers422 validation_failedwhen it is too short (or, on some VPS plans, longer than 72 characters or has spaces or quotes). - FixedService names keep plan details in brackets such as “(NVMe)”; only a location is left out.
-
v1.3
- AddedWebhooks: get a signed POST when one of your services changes status (
service.status_changed— e.g. pending → active, active → suspended, → cancelled). Add, test, pause and delete endpoints through the API. New permissionwebhooks:write(tokens withservices:readcan use it too). - AddedList orders and Get an order.
GET /orders?idempotency_key=…finds the order an API request placed with that key, so an order whose answer was lost can be recovered. - AddedSet a new server password (root / Administrator, no reinstall) and Get a server login. New permission
services:password; tokens withservices:rebuildcan use both too. - AddedOrder a VPS on an IP takes a
passwordand answers with aloginblock. Plans in Get an IP’s plans and List products carrylogin.custom_password/login.password_resetandspecs(vCPU, RAM, disk, bandwidth). - AddedGet a service:
specs(OS, vCPU, RAM, disk, bandwidth) for VPS servers,actions.password, anddisk.limit_mb/bandwidth.limit_mbfilled from the server’s real plan. - FixedVPS service names no longer end with a location in brackets.
- AddedWebhooks: get a signed POST when one of your services changes status (
-
v1.2.5
- ChangedAccounts in our reseller program now see their reseller price in List products, Get a product, List IPs and Get an IP’s plans (prices and setup fee), the same amount an order charges.
-
v1.2.4
- ChangedList IPs, Get an IP’s plans and the “VPS by IP” entries in List products leave out IP ranges with no free IPs and locations with no plan in stock; they come back by themselves when IPs free up. A range that can be ordered from two places is listed once.
- ChangedThe IP list is now refreshed from our providers every few minutes instead of on every call, so answers are faster. When a provider is slow, its last known IPs stay listed; an order is always checked again, and answers
ip_not_availableorplan_not_availableif the IP sold out meanwhile. - ChangedAccounts in our reseller program: Create an order and Order a VPS on an IP are priced at your reseller rate, like the store, and renewals keep that rate.
- AddedProxy plans can be ordered with Create an order. They need a completed KYC on your account and free stock; otherwise the answer is
422 request_failedwith the reason inmessage. - ChangedReseller hosting ordered through the API is created with the plan’s reseller permissions and account limits already applied.
-
v1.2.3
- ChangedIn List products the “VPS by IP” group now lists its real plans — one entry per plan with prices per cycle,
os_family, andips[](the IPs it can be ordered on, each with its OS list) — instead of one placeholder product. These entries have string ids (vbi-…) and are ordered with Order a VPS on an IP. Add?ip=103.151to keep only IPs starting with that.
- ChangedIn List products the “VPS by IP” group now lists its real plans — one entry per plan with prices per cycle,
-
v1.2.2
- AddedThe store’s “VPS by IP” product in List products and Get a product now carries
vps_by_ip: every IP that can be ordered now, each with its plans, prices per billing cycle and OS list — the same data as List IPs withplans=1.
- AddedThe store’s “VPS by IP” product in List products and Get a product now carries
-
v1.2.1
- Added
os_familyon VPS by IP plans (linuxorwindows,nullwhen a plan is not split by OS) so you can show Linux and Windows plans in separate tabs.
- Added
-
v1.2
- AddedVPS by IP: List IPs, Get an IP’s plans and Order a VPS on an IP — sell a VPS on an exact IP or an IP range, with prices per billing cycle and the OS list of each plan.
- AddedError codes
ip_not_available(404),ip_taken(409),plan_not_availableanduse_vps_orders(422). - ChangedThe store’s “VPS by IP” product is now listed with
type: vps, and itsorderblock points toPOST /vps/orders. Create an order answers422 use_vps_ordersfor it instead of a generic failure. - ChangedVPS plans sold through VPS by IP can be missing from List products when their store group is hidden; List IPs always has them.
- Added
GET /api/v1now returns achangeloglink.
-
v1.1
- DocsNew three-pane reference: request samples in cURL, PHP, Node.js and Python for every endpoint, and a Download PDF button.
-
v1.0.1
- FixedWindows plans list only Windows images in
order.choices.os; an order sent withoutos_idinstalls the plan’s default image.
- FixedWindows plans list only Windows images in
-
v1.0
- AddedFirst release: account & wallet, catalog, orders, invoices & wallet payments, services with VPS power and reinstall, domains and support tickets; scoped tokens, IP allowlists, rate limits and idempotency keys.