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

/domains/{name}/mail/lists

First published 3 Oct 20260.1.0Unchanged since publication

List the domain's allow, block and nogreylist entries

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

namepath ·DomainNameRequired
kindquery ·string, one of allow, block, nogreylist
List kind to include, one of allow, block or nogreylist. If omitted or empty, all kinds are included.
matchquery ·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.
limitquery ·integer, 1 to 1000
Maximum number of entries to return per page, from 1 to 1000. Defaults to 200 when only offset is supplied.
offsetquery ·integer, 0 to 1000000
Number of matching entries to skip, from 0 to 1000000. Defaults to 0 when only limit is supplied.

Example

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

6 errors, each a status and a sentence
400<what> must be a whole number from 0 to <max>
400<what> must be text without control characters, 1 to <max> characters
400List type must be allow, block, or nogreylist.
400limit is a number from 1 to 1000
400offset must be a non-negative integer.
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-domains-name-mail-lists/