domain
Api reference

Server API

Create customer domain connections and issue browser access from any backend language.

Use the Server API when your backend is not TypeScript or JavaScript. It creates connections from a domain and DNS records, reads their state, and issues short-lived access for the customer-facing dialog.

Base URL

https://domain0.dev/api/domain0

Authentication

Send your server API key as x-api-key:

x-api-key: d0_your_key

Never authenticate from browser code

Use createDomain0PlatformClient() on your server. Issue a connection token before opening the embedded browser flow.

SDK or HTTP

The TypeScript SDK validates inputs and responses with the same Zod contracts used to generate this reference. Direct HTTP calls remain available for other server languages.

On this page