> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mail.ugmail.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Lovable app integrat wn0y.bolt.host

# Source: [https://lovable-app-integrat-wn0y.bolt.host/](https://lovable-app-integrat-wn0y.bolt.host/)

New — Management API now available on all plans

# Build on UGMail

email infrastructure

Full programmatic control over your email. Create domains, provision mailboxes, manage aliases and forwarders, configure DKIM signing — all through a simple REST API. Plus seven open protocols, ready out of the box.

Explore the APIView Protocols

No per-user feesUnlimited mailboxes99.99% Uptime SLA

### 1. Get your token

Sign up at my.ugmail.co and grab your Bearer token from Settings → API Connection.

### 2. Add a domain

POST /api/principal with a domain, then fetch DNS records via /api/dns/{domain}.

### 3. Provision & send

Create mailboxes, then connect via SMTP, IMAP, POP3, or JMAP — all on mail.ugmail.co.

Open Protocols & Standards

## Seven protocols, built in

No vendor lock-in — your email, your choice. Every protocol you need to sync mail, calendars, contacts, and files, ready out of the box.

### JMAP

Modern, fast email API protocol

mail.ugmail.co:443HTTPS

### IMAP

Two-way sync for any email client

mail.ugmail.co:993SSL/TLS

### SMTP

Send transactional & app email

mail.ugmail.co:587STARTTLS

### POP3

Download-only access

mail.ugmail.co:995SSL/TLS

### CalDAV

Calendar sync across devices

mail.ugmail.co:443HTTPS

### CardDAV

Contact sync across devices

mail.ugmail.co:443HTTPS

### WebDAV

File storage as a network drive

mail.ugmail.co:443HTTPS

### Management API

A simple REST API to create domains, provision email accounts, manage aliases and forwarders, and configure DKIM signing. Tenant-scoped with Bearer token auth.

View endpoints

### Security

Two-factor authentication, app passwords, SPF/DKIM/DMARC, and Cloudflare proxy guidance. Protect both the account layer and the domain layer.

Security guides

### Guides

Step-by-step integration guides: connect AI agents via SMTP, create email aliases, set up a domain from scratch, and more.

Read guides

One request, one mailbox

## Provision a mailbox in seconds

The Management API gives you full control over email infrastructure. Create accounts for AI agents, automate SaaS onboarding, or manage hundreds of domains for clients — all from a single, consistent REST API.

* Tenant-scoped isolation
* Bearer token authentication
* Domains, accounts, aliases, forwarders, DKIM
* Works with curl, Python, Node.js

Read the API reference

create-mailbox.sh

```
curl -X POST "https://mail.ugmail.co/api/principal" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "ai-agent@example.com",
    "type": "individual",
    "secrets": ["SecurePassword123!"],
    "emails": ["ai-agent@example.com"]
  }'
```

## Start building in under a minute

Create your free UGMail account, grab your API token from Settings, and start provisioning email accounts programmatically.

[Create free account](https://my.ugmail.co) [Help Center](https://support.ugmail.co)
