domain
Api reference

Platform API

Public server endpoints for creating and launching Domain0 connections.

The hosted Platform API is intentionally narrow. It lets your server create and read a connection, then issue short-lived access for the browser flow.

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