Adds a custom domain to be used to send on behalf.
| Argument | Data Type | Required | Description |
| domain | string | Yes | Domain name to be be sent on be half. Examples: mydomain.com sub.domain.com |
| domainid | integer | Yes | Domain ID found from the domains section to tie the custom domain to. This will be the return-path/tracking domain as well |
| XML Response | JSON Response |
| <response> <customfromdomain> <id>7</id> <domain>test.com</domain> </customfromdomain> </response> |
{
"customfromdomain": {
"id": "7",
"domain": "test.com"
}
} |