Skip to Content
Xeonr Developer Docs
API SpecificationCustom domains

Create Domain

POST
/xeonr.burrow.v1.DomainService/CreateDomain

Registers a hostname against one of the team's reserved names and returns the TXT and CNAME records to add. Nothing is served until VerifyDomain succeeds.

Refuses a hostname already under the deployment's own wildcard — that is a reservation, not a custom domain. Refused with permission_denied against a name a product manages: its domains are added through that product. Needs the admin role.

Required scopes: burrow:domains:admin

Authorization

BearerAuth
AuthorizationBearer <token>

A Xeonr Auth access token whose audience is this API, or a team API key (xk_…), presented as Authorization: Bearer ….

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

team?string
Lengthlength <= 128
domain?string
Match^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$
Length3 <= length <= 253
reservation?string

Reservation is the reserved name this hostname serves, by id or by name. A custom domain always points at one: there is no tunnel to route to otherwise.

Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.DomainService/CreateDomain" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "domain": "map[cnameTarget:edge.brw.xnr.app createdAt:2026-09-20T14:40:00Z domain:preview.example.com id:9d4e2b7a-1c3f-4a5e-8b6d-0f2a4c6e8b13 reservationId:5b2d7c1e-9a4f-4e3b-8c6d-2f1a0b9e7d34 reservationName:checkout team:urn:xeonr:auth:team:0f3c9a2e-8f1b-4c2d-9e6a-1b2c3d4e5f60 txtName:_burrow-challenge.preview.example.com txtValue:burrow-verify-3f9a1c7e5b2d4f6a8c0e1b3d5f7a9c2e verified:false]"
}