Get your free beta license ↗
API operation · mail group
GET

/domains/{name}/mail/greylist

First published 19 Nov 20260.2.30Unchanged since publication

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

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 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

Run as root on the server

Parameters

namepath ·DomainNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
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

6 errors, each a status and a sentence
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
400state is one of:
401Authentication required
403Only an administrator can view the complete list of held senders.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/api/get-domains-name-mail-greylist/