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

/mail/lists

First published 3 Oct 20260.1.0Unchanged since publication

List entries in the server-wide mail sender lists

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailreadall
Answers200 OK

Returns entries and total for the server-wide allow, block and nogreylist lists, sorted by kind and then by entry. The kind and match filters apply to both entries and total.

With neither limit nor offset, the response includes all matching entries. Supply either parameter to get one page and receive limit, offset, kinds and max. Invalid filter or pagination values return 400. Requires an administrator token with the mail scope.

Parameters

kindquery ·string, one of allow, block, nogreylist
List to include, one of allow, block or nogreylist. Omit kind to include all three lists.
matchquery ·string, up to 200 characters
Substring to match in list entries, up to 200 characters with no control characters. An empty string leaves the results unfiltered by text.
limitquery ·integer, 1 to 1000
Maximum number of entries to return per page, from 1 to 1000. Defaults to 200 when offset is supplied and limit is omitted.
offsetquery ·integer, 0 to 1000000
Number of matching entries to skip, from 0 to 1,000,000. Defaults to 0 when limit is supplied and offset is omitted.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/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-mail-lists/