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

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

UrbeStack release 0.2.35 API operation in the mail group.

List mail filters for the domain and its 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 filters. Domain filters come first, followed by mailbox filters grouped in local-part order. Within each group, filters are ordered by position and then by id.

Administrators, the domain's owner and the owner's reseller can call this operation with a token that has the mail scope.

## Parameters

- `name` (path, DomainName, required)

## 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/filters" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "filters": [
    {
      "action": {
        "action": "folder",
        "target": "https://example.com/new"
      },
      "address": "info@example.com",
      "created_at": "2026-09-09T10:15:00Z",
      "domain": "example.com",
      "id": 1,
      "name": "alice",
      "position": 1,
      "rules": {}
    }
  ]
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 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
