List excluded domains

Read the domains on an exclusion list, or on the global list.

GET https://cotlet.dev/api/v1/findymail/excluded-domains

read

Returns each domain with its ID and the list it belongs to, with the current page, the page size and the total. The domain IDs are what remove_excluded_domains takes. Reading domains is free.

Parameters

Parameters: list_excluded_domains
NameTypeDescription
list_id integer integer Exclusion list ID. Omit it to read the global exclusion list.
query string string Only domains that contain this text.
page integer integer Page number, starting at 1.
per_page integer integer Domains per page.

Request

cURL
curl https://cotlet.dev/api/v1/findymail/excluded-domains \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("findymail", "list_excluded_domains")
Node.js
const result = await cotlet.call('findymail', 'list_excluded_domains');
CLI
cotlet call findymail list_excluded_domains

Example response

JSON

{
  "data": [
    {
      "id": 990114,
      "domain": "acme.io",
      "excluded_domain_list_id": 1204
    },
    {
      "id": 990115,
      "domain": "northwind.com",
      "excluded_domain_list_id": 1204
    }
  ],
  "current_page": 1,
  "per_page": 50,
  "total": 2
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.