Create a mailbox
Create an email address (mailbox). Provide a full address like "hello@mysite.com". Email DNS is auto-configured on first use. Pass force=true to override an existing email provider. Custom-domain mailbox capacity is determined by the active account or workspace plan. Every account can create one free @domani.run mailbox separately with POST /api/email.
Pass workspace_id to create the mailbox inside a workspace you own. For a custom domain, this explicitly and atomically adopts the domain and all its unscoped sibling mailboxes into that workspace; a domain can never be split across workspaces.
Pass kind="hosted" to create a real IMAP/SMTP mailbox on your own domain (connect Apple Mail, Thunderbird, or any client) instead of the default API mailbox (send/receive via API + webhooks). Hosted mailboxes return DNS records to publish, mail client settings, and a one-time app password. Requires a domain you own.
Request
- Base URL: https://domani.run
- URL: https://domani.run/api/emails
- Auth: HTTP bearer
Request body
Response
Mailbox created
Example response
{
"dns_records": [
{
"name": "@",
"value": "76.76.21.21",
"ttl": 3600
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.