REST API
Add Domains
REST API
Add Domains
Add and verify domains using API in bulk
Endpoint
POST
https://shootmail.app/api/public/domain
Authorization
Send API key in the header, just the API key, nothing else. Here is how to generate API Key
header: {
'Authorization': 'shootmail-api-key',
'Content-Type': 'application/json'
}
Request
Request body should contain the following params
{
"domains": [
{
"domain": "transact.example.com",
"domainType": "Transactional"
},
{
"domain": "market.example.com",
"domainType": "Marketing"
}
]
}
Response
Response format will confirm to the structure given in response format section.
200 Response
[
{
"data": {
"domain": "transact.example.com",
"status": "pending",
"records": [
{
"name": "rmJLwijCtJHpOIf6xcoAR6s1MV._domainkey.transact",
"type": "CNAME",
"value": "rmJLwijCtJHpOIf6xcoAR6s1MV.dkim.amazonses.com",
"status": "pending",
"record": "rmJLwijCtJHpOIf6xcoAR6s1MV",
"ttl": "Auto"
},
{
"name": "3vqCHcVH5czix4Yhpm22b6pbDL._domainkey.transact",
"type": "CNAME",
"value": "3vqCHcVH5czix4Yhpm22b6pbDL.dkim.amazonses.com",
"status": "pending",
"record": "3vqCHcVH5czix4Yhpm22b6pbDL",
"ttl": "Auto"
},
{
"name": "elQ9vveWwVePPTHITZ5douEjPy._domainkey.transact",
"type": "CNAME",
"value": "elQ9vveWwVePPTHITZ5douEjPy.dkim.amazonses.com",
"status": "pending",
"record": "elQ9vveWwVePPTHITZ5douEjPy",
"ttl": "Auto"
},
{
"name": "_dmarc.transact",
"record": "\"v=DMARC1; p=none;\"",
"status": "pending",
"ttl": "Auto",
"type": "TXT",
"value": "\"v=DMARC1; p=none;\""
}
],
"type": "Transactional"
},
"error": null,
"status": 200
}
]
On this page