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

First published 19 Nov 2026 (release 0.2.30) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the mail group.

List sender domains with mail currently held by greylisting for this domain

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

The 200 response contains greylist, which lists each sender domain and the number of messages currently held from it for the recipient domain. Greylisting defers mail that looks suspicious.

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

## As a command

- [urbestack-mail-greylist-list](https://urbestack.com/docs/commands/urbestack-mail-greylist-list.md): Lists messages deferred by greylisting.

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

Response, 200 OK:

```
{
  "greylist": {
    "available": 1,
    "domain": "example.com",
    "senders": [
      {
        "domain": "example.com",
        "let_through": 1,
        "messages": 1,
        "verified": 1
      }
    ]
  }
}
```

## Errors

- 400: --<k> is a whole number up to <max>
- 400: --match is text without control characters, 200 characters at most
- 400: --state is waiting, ready, let_through or passed
- 400: state is one of: 
- 401: Authentication required
- 403: Only an administrator can view the complete list of held senders.
