API by router
Email domains
GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/email/domains'Example Response
[ { "created_at": "2019-08-24T14:15:22Z", "dns_records": [ { "name": "string", "priority": 0, "record": "string", "status": "string", "ttl": "string", "type": "string", "value": "string" } ], "domain": "string", "from_email": "string", "from_name": "string", "full_from_address": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "region": "string", "resend_domain_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "verified_at": "2019-08-24T14:15:22Z" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
domain*DomainCustom domain name (e.g. mail.mattsplumbing.com.au)
Length
3 <= length <= 255from_email?|Email prefix (e.g. 'noreply')
from_name?|Display name in From: header
region?RegionResend region for email delivery
Default
"us-east-1"Successful Response
application/json- response
created_at*Created AtFormat
date-timedns_records?array<>|nulldomain*Domainfrom_email?string|nullfrom_name?string|nullfull_from_address?string|nullid*IdFormat
uuidis_active*Is Activeregion*Regionresend_domain_id?string|nullstatus*Statusupdated_at*Updated AtFormat
date-timeverified_at?|nullcurl -X POST 'https://example.com/v1/email/domains' \ -H 'Content-Type: application/json' \ -d '{ "domain": "string"}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "dns_records": [ { "name": "string", "priority": 0, "record": "string", "status": "string", "ttl": "string", "type": "string", "value": "string" } ], "domain": "string", "from_email": "string", "from_name": "string", "full_from_address": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "region": "string", "resend_domain_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "verified_at": "2019-08-24T14:15:22Z"}GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
curl -X GET 'https://example.com/v1/email/domains/active-sender'Example Response
{}PATCH
HTTPBearerheader
AuthorizationBearer <token>domain_id*Domain IdFormat
uuidX-Api-Key?string|nullapplication/json- body
from_email?string|nullfrom_name?string|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timedns_records?array<>|nulldomain*Domainfrom_email?string|nullfrom_name?string|nullfull_from_address?string|nullid*IdFormat
uuidis_active*Is Activeregion*Regionresend_domain_id?string|nullstatus*Statusupdated_at*Updated AtFormat
date-timeverified_at?|nullcurl -X PATCH 'https://example.com/v1/email/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "dns_records": [ { "name": "string", "priority": 0, "record": "string", "status": "string", "ttl": "string", "type": "string", "value": "string" } ], "domain": "string", "from_email": "string", "from_name": "string", "full_from_address": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "region": "string", "resend_domain_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "verified_at": "2019-08-24T14:15:22Z"}DELETE
HTTPBearerheader
AuthorizationBearer <token>domain_id*Domain IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/email/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty
POST
HTTPBearerheader
AuthorizationBearer <token>domain_id*Domain IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
created_at*Created AtFormat
date-timedns_records?array<>|nulldomain*Domainfrom_email?string|nullfrom_name?string|nullfull_from_address?string|nullid*IdFormat
uuidis_active*Is Activeregion*Regionresend_domain_id?string|nullstatus*Statusupdated_at*Updated AtFormat
date-timeverified_at?|nullcurl -X POST 'https://example.com/v1/email/domains/497f6eca-6276-4993-bfeb-53cbbbba6f08/verify'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "dns_records": [ { "name": "string", "priority": 0, "record": "string", "status": "string", "ttl": "string", "type": "string", "value": "string" } ], "domain": "string", "from_email": "string", "from_name": "string", "full_from_address": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "region": "string", "resend_domain_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z", "verified_at": "2019-08-24T14:15:22Z"}