Domains

Create domain

Add a domain and get its DNS records.

POST/domains
1curl -X POST 'https://sendtern.com/domains' \
2  -H 'Authorization: Bearer st_your_api_key' \
3  -H 'Content-Type: application/json' \
4  -d '{
5  "name": "mail.acme.io"
6}'
Response
1{
2  "id": "47be30ca-24b7-48fb-b35d-ff287b89e66d",
3  "name": "mail.example.com",
4  "status": "pending",
5  "records": [
6    {
7      "type": "TXT",
8      "name": "_sendtern.mail.example.com",
9      "value": "sendtern-verification=example-token",
10      "status": "pending"
11    }
12  ]
13}

Creates a pending domain and returns the DNS records to publish.

Body parameters

namestringrequired

The domain or subdomain, for example mail.acme.io.

Questions sent for AI answers are processed by DeepSeek. Leave out credentials and personal data.