API referenceSections

One mail domain, with a fresh look at its DNS

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

GET /api/v1/tenants/{tid}/mail/domains/{did}

One mail domain, with a fresh look at its DNS

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
didpathstringrequired

Responses

200 OK

Content type: application/json

  • id string required
  • tenant_id string required
  • server_id string required
  • name string required
  • enabled boolean required
  • dkim_record string required
  • created_at string (date-time) required
  • updated_at string (date-time) required
  • mailboxes array<Mailbox> required
    • 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
      • 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

    • created_at string (date-time) required
    • updated_at string (date-time) required
  • records array<MailRecord> required
    • name string required
    • type string required
    • value string required
    • status string required
      Allowed values: "ok" "missing" "different" "unknown"
  • managed_by string required

    The zone's id when the panel holds the domain's DNS

  • host MailHost | null optional

    Where mail clients and webmail connect (ADR 0039)

    • server_id string optional
    • hostname string optional
    • tls string optional
      Allowed values: "issuing" "renewing" "active" "failed"
    • not_after string (date-time) | null optional
    • error_code string optional
    • webmail string optional

      HTTPS address of webmail, empty until the certificate is installed

    • ports array<object> optional
      • protocol string optional
        Allowed values: "imap" "pop3" "smtp"
      • port integer optional
      • security string optional
        Allowed values: "ssl" "starttls"
  • catch_all string optional
    Allowed values: "off" "mailbox" "reject"
  • catch_all_mailbox string optional
  • spam_threshold integer optional
  • spam_action string optional
    Allowed values: "" "tag" "junk"
  • lists array<MailList> optional
    • id string required
    • domain_id string required
    • tenant_id string required
    • local string required
    • owner string required

      Owner and moderator

    • moderated boolean required

      Posts go to the owner first

    • members array<string> required
    • created_at string (date-time) required
    • updated_at string (date-time) required
  • features MailFeatures optional

    What the server's mail engine does with each feature (ADR 0072)

Example
{
  "id": "string",
  "tenant_id": "string",
  "server_id": "string",
  "name": "string",
  "enabled": true,
  "dkim_record": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "updated_at": "2026-01-01T00:00:00Z",
  "mailboxes": [
    {
      "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"
    }
  ],
  "records": [
    {
      "name": "string",
      "type": "string",
      "value": "string",
      "status": "ok"
    }
  ],
  "managed_by": "string",
  "host": {
    "server_id": "string",
    "hostname": "string",
    "tls": "issuing",
    "not_after": "2026-01-01T00:00:00Z",
    "error_code": "string",
    "webmail": "string",
    "ports": [
      {
        "protocol": "imap",
        "port": 0,
        "security": "ssl"
      }
    ]
  },
  "catch_all": "off",
  "catch_all_mailbox": "string",
  "spam_threshold": 0,
  "spam_action": "",
  "lists": [
    {
      "id": "string",
      "domain_id": "string",
      "tenant_id": "string",
      "local": "string",
      "owner": "string",
      "moderated": true,
      "members": [
        "string"
      ],
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z"
    }
  ],
  "features": {
    "engine": "",
    "autoresponder": {
      "status": "experimental",
      "reason": "string"
    },
    "catch_all": {
      "status": "experimental",
      "reason": "string"
    },
    "out_limit_mailbox": {
      "status": "experimental",
      "reason": "string"
    },
    "out_limit_domain": {
      "status": "experimental",
      "reason": "string"
    },
    "spam_filter": {
      "status": "experimental",
      "reason": "string"
    },
    "spam_per_domain": {
      "status": "experimental",
      "reason": "string"
    },
    "antivirus": {
      "status": "experimental",
      "reason": "string"
    },
    "queue": {
      "status": "experimental",
      "reason": "string"
    },
    "smarthost": {
      "status": "experimental",
      "reason": "string"
    },
    "lists": {
      "status": "experimental",
      "reason": "string"
    }
  }
}

default Error

Content type: application/json

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