Skip to main content
The UGMail Management API gives you programmatic control over every aspect of your email infrastructure. Use it to create and configure custom domains, provision unlimited mailboxes, manage aliases and forwarders, and retrieve the DNS records you need to go live — all through a single, consistent REST interface.

Base URL

All API requests are made to the following base URL:
Every request must be made over HTTPS. Plain HTTP is not supported.

Authentication

All endpoints require a Bearer token passed in the Authorization header. Retrieve your token from my.ugmail.coSettingsAPI Connection.
See the Authentication page for full details on obtaining and rotating tokens.

Request & Response Format

The API accepts and returns JSON for all endpoints. Set the Content-Type: application/json header on any request that includes a body.

Principal Types

Most API operations revolve around principals — the core resource type in UGMail. A principal can represent a domain, an individual mailbox, or a group address.

Explore the API

Authentication

Learn how to obtain and use Bearer tokens to authenticate every request.

Domains

Create, list, retrieve, and delete custom email domains.

Mailboxes

Provision email accounts, set passwords, and manage account details.

Aliases

Add multiple email addresses to a single mailbox inbox.

Forwarders

Redirect incoming mail from one address to another automatically.

DNS Records

Fetch the MX, SPF, and DKIM records required to activate your domain.

DKIM

Enable cryptographic email signing to improve deliverability and trust.

HTTP Status Codes

The API uses standard HTTP status codes to indicate the result of every request.
Last modified on July 17, 2026