LOCALHOST
All pages
Reference

API reference

Every endpoint of the API, grouped by what it works on, read from the API itself: the permission each needs, its parameters, what it returns and an example you can paste.

Base address
https://api.localhost.co.zw
Key
Authorization: Bearer lh_…, see keys and permissions
Version
0.1.0
Machine-readable
openapi.json · try calls out in the browser

Account

2 endpoints

Who the key belongs to and what it may do.

Sites and apps

6 endpoints

Containers that run on your account: create, deploy an image, start, stop, read logs.

Settings

6 endpoints

Environment variables for one site, or shared by every site. Secret values are never returned.

Git deploys

11 endpoints

Sites that build from a repository: connect a source, start builds, follow logs, roll back, previews.

Domains

15 endpoints

Check, register, move in, renew and manage names. Paid calls charge the wallet at once.

DNS

6 endpoints

The zones we hold for your names, and their records.

Databases

2 endpoints

The managed databases on the account. Read-only here; credentials stay in the panel.

Billing

10 endpoints

Wallet, invoices, transactions, what renews and what the account may have.

SMS

7 endpoints

One-time codes, plain messages and tracked campaigns, paid in credits.

Website builder

15 endpoints

Every change lands in the draft; nothing visitors see changes until publish.

Partners

24 endpoints

Clients you manage, your book of names and sites, prices, commissions and webhooks.

Connect

6 endpoints

Tunnels and connectors that give machines of yours a public address.

Privacy

4 endpoints

Closing an account and downloading its data, for the mobile app.

Mail

10 endpoints

Phone-auth

3 endpoints

Postmaster

2 endpoints

Seo

2 endpoints

Signatures

4 endpoints

Support

4 endpoints