{
  "type": "https://errors.swepay.com.br/native-mail/domain-not-verified",
  "service": "native-mail",
  "slug": "domain-not-verified",
  "httpStatus": 422,
  "title": "Domain Not Verified",
  "summary": "The sending domain exists but has not completed DNS verification.",
  "description": "The sending domain referenced by the request exists but has not completed DNS\nverification, so it cannot be used to send email. The request is well-formed\nand the domain is known to the tenant — it is simply not in a sendable state\nyet.\n\nThis is a state precondition, not an input-shape problem: the body is valid,\nbut the domain must be verified before Native Email will accept a send from\nit.\n",
  "commonCauses": [
    "The required DNS records (SPF/DKIM CNAME/TXT) have not been published yet.",
    "The records were published but DNS has not propagated and verification has not run.",
    "The domain was added but the verification step was never triggered."
  ],
  "clientAction": "1. Check the domain status via `GET /v1/domains/{domain}`.\n2. Retrieve the required DNS records via `GET /v1/domains/{domain}/dns-records`\n   and publish them at your DNS provider (SPF/DKIM CNAME/TXT).\n3. Trigger verification via `POST /v1/domains/{domain}/verify` and wait until\n   the status becomes `Verified`.\n4. Retry the send once the domain is verified.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-mail/domain-not-verified",
    "title": "Domain Not Verified",
    "status": 422,
    "detail": "Domain 'mail.empresa.com.br' is not verified for tenant 'acme'.",
    "instance": "/v1/messages",
    "code": "DOMAIN_NOT_VERIFIED",
    "recovery": "Verify the domain's DNS records (CNAME/TXT) before sending email from it.",
    "requestId": "1-67a8c3f1-2b9e4d6a8c1f0e3b"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-mail/domain-not-verified"
}