Skip to main content
Each profile has an Allowlist and a Denylist. Both accept the same requests. An active entry applies to the domain itself and all of its subdomains. For example, example.com also matches www.example.com. If a domain matches both lists, the Allowlist takes precedence. To block an entire top-level domain, add its bare name, such as zip, to the Denylist.

Read a list

GET returns the complete list, newest entries first, including inactive entries. To read the Allowlist, change denylist to allowlist.

Add an entry

Send id as a lowercase ASCII domain. Omit leading dots and wildcards. Use Punycode for internationalized names. The optional boolean active defaults to true. All successful writes on these endpoints return 204 No Content. Adding an existing ID returns HTTP 200 with an errors array containing {"code":"duplicate"}. To change an existing entry, use PATCH.

Disable or remove an entry

To keep an entry in the list and pause its effect, set active to false. Send true to enable it again.
To remove it altogether, send DELETE to the same URL.
Updating or deleting an ID that does not exist returns 404 Not Found.

Replace a list

PUT takes the full array of entries. It removes every existing entry omitted from the request, including inactive entries. Sending [] clears the list.
Each profile can store 5,000 entries per list, including inactive entries. If a write would exceed the entry limit, the API returns HTTP 400 and keeps the existing list.
The JSON request body can be up to 1 MiB. A larger replacement returns HTTP 413 with contentTooLarge, even if the entry count is within the limit.