SDK reference
Mail administration
GET/
The organization's mail domains with their status, DNS records and which records were found.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/domains' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds a domain for sending and receiving mail: creates its sending identity and returns the DNS records to add. Hostnames under the platform's domain can't be added.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/domains' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"domain": "example"
}'POST/
A new DKIM key for the domain's mail (platform-generated keys only; the customer's DNS stays).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/domains/{domain}/dkim/rotate' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Checks the domain's DNS records and verification now.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/domains/{domain}/verify' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Sets or clears the domain's catch-all mailbox, which receives mail to unknown addresses.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/domains/{domain}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"catchAllMailboxId": "<catchAllMailboxId>"
}'DELETE/
Removes a domain and its aliases. Its mailboxes must be deleted first.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/domains/{domain}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Members of the organization, to choose mailbox members from.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/members' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Every mailbox of the organization with its members and aliases.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/admin/mailboxes' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a mailbox at one of the organization's domains, with a sender name and members.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/admin/mailboxes' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"localPart": "example",
"domain": "example"
}'PATCH/
Changes a mailbox's sender name or members.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/admin/mailboxes/{mailboxId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Example",
"members": [
"example"
]
}'DELETE/
Deletes a mailbox with all of its mail, drafts, labels and aliases.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/admin/mailboxes/{mailboxId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds another address, at one of the organization's domains, that delivers to the mailbox.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/admin/mailboxes/{mailboxId}/aliases' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"address": "example"
}'DELETE/
Removes an alias.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/admin/aliases/{address}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Messages sent, received, bounced and complained about per day, and the organization's sending limits.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/mail/usage' \
-H "Authorization: Bearer $CACTIVE_TOKEN"