support@ or info@) to an individual’s inbox, or for giving one person multiple addresses across different domains.
Aliases are managed by updating the emails array on a mailbox principal using PATCH /api/principal/{name}. The full array you provide replaces the existing one, so always include every address you want to keep — including the primary address.
Add Aliases to a Mailbox
PATCH /api/principal/{name}
Update the emails array on a mailbox to add one or more aliases. Every address in the array will deliver to that mailbox’s inbox.
Path Parameters
The primary email address of the mailbox (e.g.,
alice@example.com).Request Parameters
The complete list of email addresses for this mailbox. Include the primary address and all aliases you want active. Any address omitted from this array will be removed.
Example — Add Two Aliases
Example Response
Remove an Alias
To remove an alias, send aPATCH request with an emails array that omits the address you want to delete. All other addresses in the array are preserved.
Example — Remove info@example.com
info@example.com no longer delivers to Alice’s inbox.
List Current Aliases
To see all aliases currently active on a mailbox, retrieve the principal and inspect itsemails array:
All alias addresses must belong to domains that are registered in your UGMail account. You cannot add an alias on a domain you have not added via
POST /api/principal. See the Domains API for how to register a domain.
