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

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 allow, block and nogreylist entries

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

The 200 response contains entries ordered by kind and then by entry, and total counts all matches. Supply limit or offset to return one page and include limit, offset, kinds and max in the response. If you omit both, the response includes every matching entry.

Invalid values for kind, match, limit or offset return 400. Administrators, the customer who owns the domain and that customer's reseller can call this operation with a token that has the mail scope.

## Parameters

- `name` (path, DomainName, required)
- `kind` (query, string, one of allow, block, nogreylist): List kind to include, one of allow, block or nogreylist. If omitted or empty, all kinds are included.
- `match` (query, string, up to 200 characters): Text that entries must contain, up to 200 characters with no control characters. An empty value leaves entries unfiltered by text.
- `limit` (query, integer, 1 to 1000): Maximum number of entries to return per page, from 1 to 1000. Defaults to 200 when only offset is supplied.
- `offset` (query, integer, 0 to 1000000): Number of matching entries to skip, from 0 to 1000000. Defaults to 0 when only limit is supplied.

## 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/lists?kind=allow&match=text&limit=1&offset=1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "entries": [
    {
      "created_at": "2026-09-09T10:15:00Z",
      "domain": "example.com",
      "entry": "text",
      "id": 1,
      "kind": "profile"
    }
  ],
  "kinds": {
    "allow": 1,
    "block": 1,
    "nogreylist": 1
  },
  "limit": 1,
  "max": 1,
  "offset": 1,
  "total": 1
}
```

## Errors

- 400: <what> must be a whole number from 0 to <max>
- 400: <what> must be text without control characters, 1 to <max> characters
- 400: List type must be allow, block, or nogreylist.
- 400: limit is a number from 1 to 1000
- 400: offset must be a non-negative integer.
- 401: Authentication required
