## GET /api/v2/me/email-deliverability

**Check e-mail delivery to your account address**

Check whether e-mail from Hostup reaches the account's e-mail address. Invoices, renewal warnings and ticket replies go to this address. `status` is based on the delivery results of the last 90 days and on whether sending to the address is blocked:

- `ok`: the last message was delivered.
- `transient`: the mail server refused at least two messages in the last seven days, for example because the mailbox is full.
- `undeliverable`: the mail server rejected the address for good.
- `suppressed`: sending is blocked after an earlier bounce. A test e-mail with `POST /api/v2/me/email-deliverability/actions/send-test` lifts the block, at most once every 30 days.
- `complaint`: a message was reported as spam and sending has stopped. Change the address.
- `mailbox_moved`: mail is delivered to a mailbox on your web hosting with Hostup. This is information only.
- `mail_lost`: the address's domain uses Hostup's nameservers but has no MX record. Mail to it does not arrive.
- `unknown`: there is no delivery data.

`reason` explains a status that needs attention. `actions` says whether a test e-mail can be sent and whether the notice can be closed.

### Related Endpoints

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

### Headers

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

### Request Example

```bash
curl "https://cloud.hostup.se/api/v2/me/email-deliverability" \
  -H "Authorization: Bearer $HOSTUP_API_KEY"
```

### Response Schema

- `email` (string, required): The account e-mail address. Example: `info@example.se`
- `status` (string, required): Delivery status. See the list above. 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 - Delivery status of the account e-mail address.
```json
{
  "email": "info@example.se",
  "status": "ok",
  "reason": null,
  "lastBounceAt": null,
  "lastBounceKind": null,
  "lastDeliveredAt": "2026-08-20T14:05:24.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"
}
```

#### 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.
