## POST /api/v2/me/email-deliverability/actions/dismiss

**Close the account e-mail notice**

Close the client-area notice about the account e-mail address for good. Only a `mailbox_moved` notice can be closed. That notice is information only, because mail still arrives.

Check `actions.canDismiss.allowed` on `GET /api/v2/me/email-deliverability` first. Any other status returns `409 not_allowed` with the reason in `detail`. Send no body. The response is the delivery status after the change, the same as the GET.

### Related Endpoints

- `POST /api/v2/me/email-deliverability/actions/send-test`: Send a test e-mail to the account address
- `GET /api/v2/me/email-deliverability`: Check e-mail delivery to your account address
- `GET /api/v2/me`: Get your account

### Headers

- `Authorization`: Bearer $HOSTUP_API_KEY
- Scope: `write:account`

### Request Example

```bash
curl -X POST "https://cloud.hostup.se/api/v2/me/email-deliverability/actions/dismiss" \
  -H "Authorization: Bearer $HOSTUP_API_KEY" \
  -H "Content-Type: application/json"
```

### Response Schema

- `email` (string, required): The account e-mail address. Example: `info@example.se`
- `status` (string, required): Delivery status. `GET /api/v2/me/email-deliverability` explains each value. Example: `ok`
  Allowed values: ok, transient, undeliverable, suppressed, complaint, mailbox_moved, mail_lost, unknown
- `reason` (string, required, nullable): What is wrong and what to do. `null` when nothing needs attention. Example: `null`
- `lastBounceAt` (string, required, nullable): When the last bounce or spam report was recorded. Example: `null`
- `lastBounceKind` (string, required, nullable): Kind of the last bounce: `permanent`, `transient`, `suppression` (blocked for sending) or `complaint` (spam report). Example: `null`
  Allowed values: permanent, transient, suppression, complaint
- `lastDeliveredAt` (string, required, nullable): When a message last reached the address. Example: `2026-08-20T14:05:24.000Z`
- `lastTest` (object, required, nullable): The last test e-mail. `null` when none was sent. Example: `null`
- `uiShouldShow` (boolean, required): `true` when the client area shows a warning about the address. Example: `false`
- `actions` (object, required): What the caller can do now. Each gate has `allowed` and a `reason` when it is not allowed.
- `actions.canSendTest` (object, required): Whether `POST /api/v2/me/email-deliverability/actions/send-test` is allowed.
- `actions.canSendTest.allowed` (boolean, required)
- `actions.canSendTest.reason` (string, required, nullable)
- `actions.canChangeEmail` (object, required): Whether the account e-mail can be changed.
- `actions.canChangeEmail.allowed` (boolean, required)
- `actions.canChangeEmail.reason` (string, required, nullable)
- `actions.canDismiss` (object, required): Whether `POST /api/v2/me/email-deliverability/actions/dismiss` is allowed.
- `actions.canDismiss.allowed` (boolean, required)
- `actions.canDismiss.reason` (string, required, nullable)
- `domainNotice` (object, optional, nullable): Set for `mailbox_moved` and `mail_lost`. Otherwise `null`. Example: `null`

### Responses

#### 200 - Notice closed. The body is the delivery status, the same as `GET /api/v2/me/email-deliverability`.
```json
{
  "email": "info@example.se",
  "status": "ok",
  "reason": null,
  "lastBounceAt": null,
  "lastBounceKind": null,
  "lastDeliveredAt": "2026-10-28T09:12:40.000Z",
  "lastTest": null,
  "uiShouldShow": false,
  "domainNotice": null,
  "actions": {
    "canSendTest": {
      "allowed": true,
      "reason": null
    },
    "canChangeEmail": {
      "allowed": true,
      "reason": null
    },
    "canDismiss": {
      "allowed": false,
      "reason": "There is no notice to close."
    }
  }
}
```

#### 400 - Invalid request. The response body is an RFC 7807 Problem Details document.
```json
{
  "type": "https://developer.hostup.se/errors/invalid_request",
  "title": "Invalid request",
  "status": 400,
  "detail": "The request is invalid.",
  "code": "invalid_request",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 401 - Authentication is required.

#### 403 - Forbidden. The caller lacks a required scope or does not own the resource.
```json
{
  "type": "https://developer.hostup.se/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "The caller lacks a required scope or does not own the resource.",
  "code": "forbidden",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 404 - Not found. The resource does not exist or is not owned by the caller.
```json
{
  "type": "https://developer.hostup.se/errors/not_found",
  "title": "Not found",
  "status": 404,
  "detail": "The requested resource could not be found.",
  "code": "not_found",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 409 - There is nothing that can be closed now (`not_allowed`). `detail` says why.

#### 429 - Rate limited. Retry after the limit resets. 429 responses include `Retry-After` seconds plus `X-RateLimit-*` headers.
```json
{
  "type": "https://developer.hostup.se/errors/rate_limit_exceeded",
  "title": "Too many requests",
  "status": 429,
  "detail": "Rate limit exceeded. Please try again later.",
  "code": "rate_limit_exceeded",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 500 - Internal error. Retry later or contact support if the issue persists.
```json
{
  "type": "https://developer.hostup.se/errors/internal_error",
  "title": "Internal server error",
  "status": 500,
  "detail": "An unexpected error occurred. Retry later or contact support if the issue persists.",
  "code": "internal_error",
  "instance": "/api/v2/resource",
  "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3",
  "timestamp": "2026-04-27T12:34:56.000Z"
}
```

#### 503 - The account e-mail address could not be loaded right now (`upstream_unavailable`). Try again shortly.
