# GET /domains/{name}/mail/accounts

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

List the domain's mailboxes

- Who may call it: administrator, reseller, customer
- Token scope, any of: mail, read, all
- Answers: 200 OK

The 200 response contains the list in accounts. Administrators, the domain's owner and the owner's reseller can call this operation with a token that has the mail scope.

## As a command

- [urbestack-mail-account-list](https://urbestack.com/docs/commands/urbestack-mail-account-list.md): Lists all mail accounts by default.

## Parameters

- `name` (path, DomainName, required)
- `usage` (query, boolean): Set to true to include each mailbox's storage usage and quota, both in kilobytes, and its message count as reported by Dovecot. Defaults to false.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/domains/example.com/mail/accounts?usage=1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "accounts": [
    {
      "address": "info@example.com",
      "autoresponder": {
        "body": "text",
        "end": "text",
        "interval_days": 1,
        "start": "text",
        "subject": "text"
      },
      "created_at": "2026-09-09T10:15:00Z",
      "domain": "example.com",
      "home": "text",
      "hourly_limit": 1,
      "id": 1,
      "local_part": "text",
      "login_suspended": 1,
      "outgoing_suspended": 1,
      "quota_mb": 1,
      "updated_at": "text",
      "usage": {
        "messages": 1,
        "storage_kb": 1,
        "storage_limit_kb": 1
      }
    }
  ]
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid boolean
- 400: Invalid domain name
- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
