Get your Bearer token
Sign in to your UGMail account at my.ugmail.co, then navigate to Settings → API Connection. Your Bearer token is displayed on that page. Click the copy button to grab it.Use the token in requests
Include the token in theAuthorization header of every Management API request using the Bearer scheme:
Error responses
If your token is missing, malformed, or invalid, the API returns one of the following error responses.
A
401 response body looks like this:
The Management API does not use session cookies or HTTP Basic auth. If you have previously used another email API that relies on username/password authentication, note that UGMail’s Management API exclusively uses Bearer tokens. SMTP, IMAP, and other protocol connections do use per-mailbox username/password credentials — see the Protocols Overview for details.
Rotate your token
If you believe your token has been compromised or you want to rotate it as part of a routine security practice, return to Settings → API Connection in my.ugmail.co and generate a new token. Your previous token is invalidated immediately upon rotation.Next steps
Quickstart
Walk through creating a domain and mailbox using your token.
API Reference
Browse every authenticated endpoint in the Management API.

