Add a new custom domain
Start the domain setup process. This creates a Cloudflare zone and returns the nameservers you need to configure at your domain registrar.
import requests
response = requests.post(
"https://api.coldsend.io/api/public/v1/domains",
headers={"X-API-Key": "your-api-key"},
json={
"domain": "mail.yourcompany.com"
}
)
print(response.json())
# Returns nameservers to configure
API key with format cs_live_xxx
Request schema for adding a new domain.
Domain name to add (e.g., example.com)
3 - 255Domain added successfully
Response for domain addition.
Domain ID
Domain name
Domain status
Nameservers to configure at your registrar
DNS records information
URL to check DNS status
URL for next step (activation)