Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Add domain

POSThttps://api.butterix.com/v1/sites/:site/domains

Requires the admin role. Returns the TXT verification record and CNAME target to configure. A domain can be connected to one site only.

Authentication

AuthorizationBearer

An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.

biti_sessionstring

The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.

Path parameters

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
domainstringRequired

Response

New domain (unverified)
domainstringOptional
verifiedbooleanOptional
primarybooleanOptional

Whether this is the primary domain

verifyRecordobjectOptional

TXT record to add

type"TXT"Optional
namestringOptional
valuestringOptional
cnamestringOptional

CNAME target

createdAtintegerOptional

Errors