Domains
API reference for listing your sending domains and whether each one can send.
List sending domains#
GET/api/v1/domains
Your domains and whether each can send. Only a domain with can_send: true works in a From address.
Request
curl https://agent.maillayer.com/api/v1/domains \ -H "Authorization: Bearer $MAILLAYER_KEY"
Response · 200
{
"data": [
{ "name": "mail.acme.com", "status": "verified", "can_send": true },
{ "name": "news.acme.com", "status": "pending", "can_send": false }
]
}Add and verify domains in the dashboard; see Verify a sending domain.