Base URL
All API requests are made to the following base URL:Authentication
All endpoints require a Bearer token passed in theAuthorization header. Retrieve your token from my.ugmail.co → Settings → API Connection.
Request & Response Format
The API accepts and returns JSON for all endpoints. Set theContent-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.

