API referenceSections

Add a mailbox; the password goes to the server once

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/mail/domains/{did}/mailboxes

Add a mailbox; the password goes to the server once

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
didpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • local string optional
  • password string optional write-only
  • quota_mb integer optional
  • enabled boolean optional
  • forward array<string> optional
  • aliases array<string> optional
  • autoresponder Autoresponder optional
    • enabled boolean required
    • subject string required

      One line

      • max length 200
    • body string required

      Plain text

      • max length 8000
    • start string optional

      First day it replies, YYYY-MM-DD in the server's time zone; empty for no bound

    • end string optional

      Last day it replies, YYYY-MM-DD

Example
{
  "local": "string",
  "password": "string",
  "quota_mb": 0,
  "enabled": true,
  "forward": [
    "string"
  ],
  "aliases": [
    "string"
  ],
  "autoresponder": {
    "enabled": true,
    "subject": "string",
    "body": "string",
    "start": "string",
    "end": "string"
  }
}

Responses

201 OK

Content type: application/json

  • id string required
  • domain_id string required
  • tenant_id string required
  • local string required
  • quota_mb integer required

    0 is no limit

  • enabled boolean required
  • forward array<string> required
  • aliases array<string> required

    Other names before the @ in the same domain

  • size_kb integer required
  • autoresponder Autoresponder optional

    Fields of Autoresponder are shown above.

  • created_at string (date-time) required
  • updated_at string (date-time) required
Example
{
  "id": "string",
  "domain_id": "string",
  "tenant_id": "string",
  "local": "string",
  "quota_mb": 0,
  "enabled": true,
  "forward": [
    "string"
  ],
  "aliases": [
    "string"
  ],
  "size_kb": 0,
  "autoresponder": {
    "enabled": true,
    "subject": "string",
    "body": "string",
    "start": "string",
    "end": "string"
  },
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required