Claim an email domain
POST
/org/domains
const url = 'https://api.global.stillbox.example/v1/org/domains';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"domain":"acme.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.global.stillbox.example/v1/org/domains \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "domain": "acme.com" }'Prove it with the DNS record returned.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
domain
required
string
Responses
Section titled “Responses”The domain and the TXT record that proves it
Media typeapplication/json
object
domain
required
string
verified
required
boolean
verified_at
string format: date-time
record_name
required
The TXT record to add, e.g. _stillbox-verification.acme.com.
string
record_value
required
string
Example generated
{ "domain": "example", "verified": true, "verified_at": "2026-04-15T12:00:00Z", "record_name": "example", "record_value": "example"}The request is invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}