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
| Name | Type | Description |
|---|---|---|
| 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 https://cotlet.dev/api/v1/findymail/excluded-domains \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("findymail", "list_excluded_domains") const result = await cotlet.call('findymail', 'list_excluded_domains'); cotlet call findymail list_excluded_domains Example response
{
"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
}