developers

Build on inchost.

Everything a customer can do in the dashboard, your code or an AI assistant can do too: find and register domains, manage DNS, order and run hosting, send SMS and top up the wallet.

1. Create a key

Sign in, open Dashboard → Developers and create a key. Every key can read. Add manage to change DNS, mailboxes and databases, and spend to pay from the wallet.

2. Call the API

curl https://inchost.incpritech.com/api/v1/domains/check \
  -H "Authorization: Bearer ih_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"yourshop.co.tz"}'

Responses

Success: { "success": true, "data": … }. Errors: { "error": "…" } with 400 (invalid), 401 (bad key), 402 (wallet too low), 403 (missing permission), 404, 409 (conflict), 429 (slow down, 120 requests a minute) or 5xx.

REST API reference

Base URL https://inchost.incpritech.com/api/v1

Account and wallet

GET/accountWallet balance, reseller and student status, and counts.read
GET/pricesHosting plans with monthly, yearly and pay-once totals, and the SMS price for this account.read
POST/reseller/applyApply for wholesale reseller prices.manage
GET/reseller/brandread
PUT/reseller/brandmanage
GET/reseller/clientsread
GET/reseller/earningsread
POST/student/applyVerify a student account to unlock Scholar plans.manage
POST/wallet/topupsSend a mobile money prompt to add money to the wallet. Body: amount, phone.manage
GET/wallet/topups/:idCheck whether a top-up has been paid.read

Domains

GET/domainsList your domains.read
POST/domains/checkAvailability and yearly price of a domain. Body: domain.read
POST/domains/suggestCheck a name across .co.tz, .or.tz, .tz, .com, .org and .africa at once. Body: query (e.g. mambo or mambo.co.tz).read
POST/domainsRegister a domain from the wallet. Body: domain, period, contact, nameservers?, clientLabel?.spend
POST/domains/transferTransfer a domain in. Body: domain, authCode, clientLabel?.spend
GET/domains/:idExpiry, renewal price, nameservers, lock and privacy.read
POST/domains/:id/syncRefresh status from the registry, e.g. after a transfer.read
POST/domains/:id/renewRenew from the wallet. Body: period.spend
PUT/domains/:id/nameserversReplace nameservers. Body: nameservers[].manage
GET/domains/:id/contactsRegistrant contact.read
PUT/domains/:id/contactsUpdate the registrant contact.manage
PUT/domains/:id/lockTransfer lock on or off. Body: locked.manage
PUT/domains/:id/privacyWhois privacy on or off. Body: enabled.manage
POST/domains/:id/transfer-codeShow the transfer (EPP) code. Dashboard only.dashboard

DNS

GET/domains/:id/dnsDNS records.read
POST/domains/:id/dns/enableTurn on free DNS management.manage
POST/domains/:id/dns/recordsAdd a record. Body: type, name, value, ttl?, priority?.manage
PUT/domains/:id/dns/records/:lineChange a record.manage
DELETE/domains/:id/dns/records/:lineDelete a record.manage

Hosting

GET/hostingList hosting accounts.read
POST/hostingOrder hosting from the wallet. Body: planId, term (monthly, yearly, once), domain, clientLabel?.spend
GET/hosting/:idUsage and limits.read
POST/hosting/:id/renewRenew from the wallet. Body: term.spend
POST/hosting/:id/passwordReset the account password. Dashboard only.dashboard
POST/hosting/:id/sslRequest a free SSL certificate.manage
GET/hosting/:id/emailsList mailboxes.read
POST/hosting/:id/emailsCreate a mailbox. Body: mailbox, password, quotaMb?.manage
PUT/hosting/:id/emailsChange a mailbox password. Body: mailbox, password.manage
DELETE/hosting/:id/emails/:mailboxDelete a mailbox.manage
GET/hosting/:id/databasesList MySQL databases.read
POST/hosting/:id/databasesCreate a database. Body: name, user, password.manage
DELETE/hosting/:id/databases/:nameDelete a database.manage
GET/hosting/:id/subdomainsList subdomains.read
POST/hosting/:id/subdomainsCreate a subdomain. Body: name.manage
DELETE/hosting/:id/subdomains/:nameDelete a subdomain.manage

SMS

GET/smsRecent SMS with delivery status.read
POST/smsSend SMS to up to 50 numbers from the wallet. Body: senderId, recipients[], message.spend
POST/sms/refreshPull the latest delivery reports.read
GET/sender-idsYour sender IDs, plus the shared sender if one is offered.read
POST/sender-idsRequest a sender ID. Body: name, purpose.manage

API keys

GET/keysList API keys. Dashboard only.dashboard
POST/keysCreate an API key. Dashboard only.dashboard
DELETE/keys/:idRevoke an API key. Dashboard only.dashboard

From your own code

Any language with an HTTP client works. Our JavaScript SDK (@incpritech/inchost) is coming to npm; until then, call the API directly:

const res = await fetch('https://inchost.incpritech.com/api/v1/domains/check', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.INCHOST_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ domain: 'yourshop.co.tz' }),
});
const { data } = await res.json();

MCP server for AI assistants

Let Claude or any MCP client manage the account by chatting. Assistants ask before spending, and spending tools need a key with the spend permission.

{
  "mcpServers": {
    "inchost": {
      "type": "http",
      "url": "https://inchost.incpritech.com/api/mcp",
      "headers": { "Authorization": "Bearer ih_live_YOUR_KEY" }
    }
  }
}