bCom Hosting API

REST for websites, domains, DNS, email, VPS and billing. Same actions as the control panel, for scripts and CI.

Authentication

Create a token in the control panel. Send it as a Bearer token on every request.

Authorization: Bearer bch_live_…

Create a token OpenAPI

Endpoints

MethodPath
GET/api/v1/accountProfile
GET/api/v1/websitesWebsites
POST/api/v1/websitesCreate website
GET/api/v1/websites/{id}Website + files, DNS, PHP
POST/api/v1/websites/{id}/cachePurge cache
GET/api/v1/domainsDomains
GET/api/v1/domains/check?q=Availability
GET/api/v1/domains/{id}/dnsDNS records
POST/api/v1/domains/{id}/dnsReplace DNS
GET/api/v1/emailsMailboxes
POST/api/v1/emailsCreate mailbox
GET/api/v1/vpsVPS list
POST/api/v1/vps/{id}/powerstart | stop | restart
GET/api/v1/billingInvoices

Examples

curl https://hosting.bcom.africa/api/v1/domains/check?q=shop.co.tz \
  -H "Authorization: Bearer bch_…"

curl https://hosting.bcom.africa/api/v1/websites \
  -H "Authorization: Bearer bch_…" \
  -H "Content-Type: application/json" \
  -d '{"domain":"shop.co.tz","type":"wordpress","plan":"business"}'