Build on NewHost
The NewHost API lets your own systems do what you do in the dashboard: deploy applications, manage domains and DNS, read hosting, invoices and wallet data, and receive signed webhooks when things change. It is a JSON REST API at https://api.newhost.co.za/v1.
New to NewHost and setting up hosting, a domain or e-mail in the dashboard? Start with the Get started guide.
Your first request
curl https://api.newhost.co.za/v1/account \
-H "Authorization: Bearer sk_live_..."Getting started
Create a key and make your first call in five minutes.
Authentication
Public and secret keys, scopes and browser origins.
Webhooks
Event types, payloads and signature verification.
Postman collection
Import every endpoint with examples.
API reference
| Area | What you can do | Endpoints |
|---|---|---|
| Catalogue | Plans, domain availability and prices. Callable with a public key from browsers. | 3 |
| Account | The account that owns the API key. | 1 |
| Applications | Node.js / Next.js applications, their deployments and environment variables. | 14 |
| Databases | Managed databases attached to your applications. | 1 |
| Domains | Registered domains, registration orders and DNS records. | 7 |
| Web & email hosting | Plesk-based website and email hosting subscriptions. | 5 |
| Billing | Invoices and the prepaid wallet. | 3 |
| Webhooks | Endpoints that receive signed event notifications. | 3 |
| AI gateway | OpenAI-compatible chat completions for Claude, GPT, Gemini and more, on NewHost credits or your own provider key. | 2 |