Settings API
Domains
Base URL https://acme.yet.com.br/api/settings
List domains
/api/settings/domainsIts domains, with whether each has mail here, and the ones still asked for (claims).
Who: Runs the company’s Settings
curl https://acme.yet.com.br/api/settings/domains \
-H "Authorization: Bearer $YET_API_KEY"{
"domains": [
{
"name": "acme.dev",
"mail": true
}
],
"claims": [
{
"domain": "acme.com.br",
"txt": "yet-verify=4f2a…",
"created_at": "2026-10-23T12:00:00Z"
}
]
}Ask for a domain
/api/settings/domainsAnswers with the TXT record to publish: once its DNS shows it, the domain is the company’s.
Who: Runs the company’s Settings
Body
namestringrequired- The domain.
curl -X POST https://acme.yet.com.br/api/settings/domains \
-H "Authorization: Bearer $YET_API_KEY" \
-d '{
"name": "acme.com.br"
}'Verify a domain
/api/settings/domains/claims/{domain}Checks its DNS now and, when it shows the record, makes it the company’s.
Who: Runs the company’s Settings
curl -X POST https://acme.yet.com.br/api/settings/domains/claims/{domain} \
-H "Authorization: Bearer $YET_API_KEY"Stop asking for a domain
/api/settings/domains/claims/{domain}Gives up a claim not verified yet.
Who: Runs the company’s Settings
curl -X DELETE https://acme.yet.com.br/api/settings/domains/claims/{domain} \
-H "Authorization: Bearer $YET_API_KEY"Publish the claim in Cloud
/api/settings/domains/claims/{domain}/cloudPuts the TXT record in the domain’s zone in Cloud, making the zone first if need be.
Who: Runs the company’s Settings
curl -X POST https://acme.yet.com.br/api/settings/domains/claims/{domain}/cloud \
-H "Authorization: Bearer $YET_API_KEY"A domain’s health
/api/settings/domains/{domain}Its DNS as the internet sees it, its standing in SES and the week’s numbers.
Who: Runs the company’s Settings
curl https://acme.yet.com.br/api/settings/domains/{domain} \
-H "Authorization: Bearer $YET_API_KEY"Turn its mail on
/api/settings/domains/{domain}/mailThe mail server, SES, and a mailbox for each of its people.
Who: Runs the company’s Settings
curl -X POST https://acme.yet.com.br/api/settings/domains/{domain}/mail \
-H "Authorization: Bearer $YET_API_KEY"Publish its mail records in Cloud
/api/settings/domains/{domain}/dnsPuts the records its mail needs in the domain’s zone in Cloud.
Who: Runs the company’s Settings
curl -X POST https://acme.yet.com.br/api/settings/domains/{domain}/dns \
-H "Authorization: Bearer $YET_API_KEY"Pause or resume its mail
/api/settings/domains/{domain}Paused, the domain sends nothing.
Who: Runs the company’s Settings
Body
pausedbooleanrequired- Whether it is paused.
curl -X PUT https://acme.yet.com.br/api/settings/domains/{domain} \
-H "Authorization: Bearer $YET_API_KEY" \
-d '{
"paused": true
}'Remove a domain
/api/settings/domains/{domain}Only one with nobody on it.
Who: Runs the company’s Settings
curl -X DELETE https://acme.yet.com.br/api/settings/domains/{domain} \
-H "Authorization: Bearer $YET_API_KEY"