# E05012 — SendingDomainInvalid

The domain name is not valid: it must be a registrable domain (not a public suffix or single-label name), and must not have a trailing dot.

- **HTTP status**: `422`
- **Type**: `validation_error`
- **Name**: `SendingDomainInvalid`

## What to do

The request body parsed, but one or more values are invalid. Read the `details` array: each entry names the failing field (`param`, a dotted path like `to[0].email`) with a human-readable reason. Fix the named fields and retry.

## Related

- [E05xxx — Domains & DNS](/docs/api/errors/E05xxx): every code in this range
- [Errors](/docs/api/errors): the full wire contract, status mapping, and error catalog
- [Error handling](/docs/guides/errors): branching on `type` and `code`, validation details, and `vendor_code`