# Sender Addresses & Domain Rate Limits

Source: https://molted.email/docs/sender-addresses

Manage the local part of your fallback sending address and configure per-sending-domain rate limits.

## Sender addresses

Each tenant has a default sender address: a `localpart@agent.molted.email` address on the shared domain. Its local part starts as a slug of the name or email you signed up with. Sender addresses always live on the shared domain; adding a custom domain doesn't change them.

The sender address is only the fallback "from" address. Sends normally go out from a [mailbox](https://molted.email/docs/mailboxes.md) (the one you pass as `mailboxId`, or the tenant's default mailbox), using that mailbox's own address. To send from your own domain, create a mailbox on a verified [custom domain](https://molted.email/docs/domains.md).

Sender addresses are managed by a signed-in person through the two routes below, which use the portal's cookie session. The portal has no screen for them today, and there is no agent API key route, CLI command or MCP tool.

### List sender addresses

```
GET https://api.molted.email/v1/me/sender-addresses
```

```bash title="curl"
curl https://api.molted.email/v1/me/sender-addresses \
  -H "Cookie: YOUR_SESSION_COOKIE"
```

Returns the active sender addresses as snake\_case rows:

```json title="Response"
[
  {
    "id": "0d6a1f2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
    "tenant_id": "tenant_abc123",
    "local_part": "acme",
    "domain": "agent.molted.email",
    "is_default": true,
    "status": "active",
    "created_at": "2026-03-01T12:00:00Z",
    "updated_at": "2026-03-01T12:00:00Z"
  }
]
```

### Update the local part

```
PATCH https://api.molted.email/v1/me/sender-address
```

```bash title="curl"
curl -X PATCH https://api.molted.email/v1/me/sender-address \
  -H "Cookie: YOUR_SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{"localPart": "notifications"}'
```

Renames the **default** sender address and returns the updated row. Only an admin or the owner can do this (`403 role_required` otherwise). Errors: `400` for a local part that fails the rules below, `409` for a reserved name or an address that is already taken, and `401 No default sender address found`.

#### Local part requirements

- 2 to 64 characters
- Lowercase alphanumeric characters, dots (`.`), and hyphens (`-`); uppercase is rejected, not lowercased
- No leading or trailing dots/hyphens
- No consecutive dots or hyphens
- No reserved names: `admin`, `root`, `support`, `security`, `abuse`, `postmaster`, `hostmaster`, `billing`, `noreply`, `no-reply`, `info`, `contact`, `system`, `api`, `mail`, `mailer-daemon`, `help`, `team`, `dmarc`

---

## Domain rate limits

Per-domain rate limits cap how many emails your tenant sends **from one of your sending domains** per minute, hour and day. They are optional: none are set by default (`null` means no cap). The windows are UTC calendar minutes, hours and days, not rolling windows.

### Get domain rate limits

```
GET https://mailbox.molted.email/v1/agent/domains/:domainId/rate-limits
```

```bash title="CLI"
molted domains rate-limits <domainId>
```

```bash title="curl"
curl "https://mailbox.molted.email/v1/agent/domains/DOMAIN_UUID/rate-limits" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json title="Response"
{
  "maxPerMinute": null,
  "maxPerHour": 100,
  "maxPerDay": 1000,
  "perMinute": null,
  "perHour": { "used": 12, "limit": 100, "remaining": 88 },
  "perDay": { "used": 47, "limit": 1000, "remaining": 953 }
}
```

The `perMinute|Hour|Day` objects carry usage detail and are `null` for windows with no limit. MCP: `list_domains` shows each domain's `maxPer*` limits.

### Update domain rate limits

```
PATCH https://mailbox.molted.email/v1/agent/domains/:domainId/rate-limits
```

```bash title="CLI"
molted domains rate-limits set <domainId> --max-per-hour 100 --max-per-day 1000
molted domains rate-limits set <domainId> --no-max-per-minute   # clear a limit
```

```bash title="curl"
curl -X PATCH "https://mailbox.molted.email/v1/agent/domains/DOMAIN_UUID/rate-limits" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "maxPerHour": 100,
    "maxPerDay": 1000
  }'
```

Each of `maxPerMinute`, `maxPerHour` and `maxPerDay` takes an integer of 0 or more (`0` blocks every send) or `null` to remove that limit. The response is `{ id, domain, maxPerMinute, maxPerHour, maxPerDay }`. The key needs `manage` scope.

**Raising or clearing a limit needs a human.** Lowering a limit, or setting one where there was none, always works for an agent. Raising one or clearing it to unlimited is a [loosening](https://molted.email/docs/errors.md#loosening-a-control): on the default (`enforce`) human gate an API key gets `403 human_decision_required` with `kind: "domain-rate-limits"`, a `decisionUrl` for a person, and `loosens` naming the raised or cleared fields (e.g. `["maxPerHour"]`).

### Portal endpoints

A signed-in person can also read and change domain rate limits with the portal's cookie session. The portal has no screen for them today, so these routes are how a person raises a limit that an agent was refused (see [Loosening a control](https://molted.email/docs/errors.md#loosening-a-control)). Changing a limit is for the workspace owner; a person is never held for a decision.

| Method | Path | Description |
| - | - | - |
| `GET` | `/v1/me/domains/:domainId/rate-limits` | Get domain rate limits. |
| `PATCH` | `/v1/me/domains/:domainId/rate-limits` | Update domain rate limits. |

### What happens when a domain rate limit is exceeded

A send over one of these limits is blocked with the window's reason: `domain_minute_limit_exceeded`, `domain_hourly_limit_exceeded` or `domain_daily_limit_exceeded` (`domain_rate_limited` is a fallback when the check fails without a specific window):

```json
{
  "requestId": "req_abc123",
  "status": "blocked",
  "reason": "domain_hourly_limit_exceeded"
}
```

### Recipient-domain throttle

Separately, a per-tenant throttle on sends **to** one recipient domain (e.g. `gmail.com`) per hour blocks with reason `domain_throttled`. It is off by default, has no API or CLI to configure it (it is set by Molted operators), and exempts transactional sends (a template id starting with `_`) unless a separate transactional limit is set.

## Related reading

- [Rate Limits](https://molted.email/docs/rate-limits.md) -- tenant-level monthly, daily, and hourly send quotas
- [Sending Domains](https://molted.email/docs/domains.md) -- adding and verifying custom domains
- [Domain Warmup](https://molted.email/docs/domains.md#domain-warmup) -- warmup schedule for new domains
