## The tenant's platform address of the Belegeingang (comms:read)

`GET /api/comms/v1/mail-intake`

Module: Comms · operationId: `getMailIntake` · Tag: Mailbox import · Auth: access token (`Authorization: Bearer <accessToken>`)

Mail to the address is received by Amazon SES; PDF/XML attachments (category invoice) and the
raw mail (category mail) go to DMS like mailbox imports. `available` is false when the platform
has no mail domain; `address` is empty until an admin activated the intake. Addresses live on the tenant's
subdomain (`<local part>@<subdomain>.<mail domain>`, `mailDomain`); it is empty until an HR admin set the
subdomain in the HR settings, and activating then fails with 400 (field `subdomain`).

### Responses

- **200** Intake (`application/json`)

Fields of the 200 answer:

- `address` (string): The current address; empty until the intake was activated
- `available` (boolean): The platform has a mail domain (else the intake cannot be activated)
- `enabled` (boolean): Mail to the address is imported
- `lastImported` (integer): Mails received in total
- `lastReceivedAt` (string (date-time)): Time of the last received mail
- `mailDomain` (string): The tenant's mail domain; empty while the tenant has no subdomain
- `pending` (integer): Received mails still waiting for their consumer (state PENDING)
- `previous` (array of object): Rotated addresses that are still accepted
  - `address` (string): The old address
  - `validUntil` (string (date-time)): Until when it is accepted
- `rev` (integer): Revision for optimistic locking; 0 while the intake is not activated
- `updatedAt` (string (date-time)): Time of the last change
- `updatedBy` (string): Who changed the intake last

Example 200 answer:

```json
{
  "address": "belege-k7m2qa@demo.on.beta.mbcom.dev",
  "available": true,
  "enabled": true,
  "lastImported": 342,
  "lastReceivedAt": "2026-11-18T06:47:12Z",
  "mailDomain": "demo.on.beta.mbcom.dev",
  "pending": 1,
  "previous": [
    {
      "address": "belege-x3p9tz@demo.on.beta.mbcom.dev",
      "validUntil": "2026-11-30T00:00:00Z"
    }
  ],
  "rev": 5,
  "updatedAt": "2026-11-16T10:02:44Z",
  "updatedBy": "christina.adler@muster-it.example"
}
```

### Example request

```bash
curl -X GET 'https://api.mbcom.cloud/api/comms/v1/mail-intake' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
