# GET /api/v1/email/settings

> Get mail-client (IMAP/POP/SMTP) settings

- Group: email
- Tier: R
- Required scope: read:email
- Docs: https://api.inleed.com/reference/email/get-email-settings

## Description

Returns the `username` (the full address), the server `host`, and `imap`/`pop3`/`smtp` blocks each with an SSL and a starttls `{host, port, security}` option. Never returns the mailbox password. To change that password use `set_mailbox_password`.

## Query parameters

- `address` — string (required). The full mailbox address to get settings for, e.g. sales@example.com.

## Request

```bash
curl -X GET "https://mcp.inleed.com/api/v1/email/settings?address=info%40example.se" \
  -H "Authorization: Bearer inl_live_…"
```

## Response · 200

```json
{
  "target": {
    "input": "example.se",
    "kind": "domain",
    "domain": null,
    "mailbox": null,
    "serviceId": 90714,
    "domainServiceId": null,
    "daUsername": "inleed42",
    "node": "web12",
    "userId": 4821,
    "note": null
  },
  "address": "info@example.se",
  "username": "inleed42",
  "host": "example.se",
  "recommended": {
    "incoming": {
      "protocol": "example.se",
      "host": "example.se",
      "port": 1,
      "security": "example.se"
    },
    "outgoing": {
      "protocol": "example.se",
      "host": "example.se",
      "port": 1,
      "security": "example.se"
    }
  },
  "imap": {
    "ssl": {
      "host": "example.se",
      "port": 1,
      "security": "example.se"
    }
  },
  "pop3": {
    "ssl": {
      "host": "example.se",
      "port": 1,
      "security": "example.se"
    }
  },
  "smtp": {
    "starttls": {
      "host": "example.se",
      "port": 1,
      "security": "example.se"
    }
  },
  "authentication": "example.se",
  "note": "Resolved via the owning account."
}
```

## Errors

- **401** No token was presented, or the token is revoked, expired or unknown. — codes: unauthorized, token_expired, token_revoked
- **403** The token lacks a required scope, or this account does not own the resource. — codes: insufficient_scope
- **422** Validation error — codes: validation_failed
- **429** The rate limit for this token is exhausted. See `Retry-After`. — codes: rate_limited
- **500** Something went wrong on our side. The failure is logged against `requestId`. — codes: internal_error

