curl --request POST \
--url https://api.jetemail.com/outbound/domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"domain": "example.com"
}'
{
"success": true,
"message": "Domain added successfully",
"domain": "example.com",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"status": 0,
"created_date": 1735689600,
"dns": {
"dkim": {
"host": "jetemail._domainkey.example.com",
"value": "v=DKIM1; k=rsa; p=MIGfMA0..."
},
"spf": {
"host": "example.com",
"value": "v=spf1 include:spf.jetsmtp.net ~all"
},
"dmarc": {
"host": "_dmarc.example.com",
"value": "v=DMARC1; p=none"
}
}
}
Adds a new domain for sending email
curl --request POST \
--url https://api.jetemail.com/outbound/domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"domain": "example.com"
}'
{
"success": true,
"message": "Domain added successfully",
"domain": "example.com",
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"status": 0,
"created_date": 1735689600,
"dns": {
"dkim": {
"host": "jetemail._domainkey.example.com",
"value": "v=DKIM1; k=rsa; p=MIGfMA0..."
},
"spf": {
"host": "example.com",
"value": "v=spf1 include:spf.jetsmtp.net ~all"
},
"dmarc": {
"host": "_dmarc.example.com",
"value": "v=DMARC1; p=none"
}
}
}
Enter your Bearer token in the format "Bearer {token}"
Domain added successfully
The response is of type object
.