Add excluded domains

Add domains to an exclusion list, or to the global list.

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

write

Returns success, the total sent, how many were processed at once and how many were queued, with the list ID. Findymail processes the first 50 immediately and queues the rest in the background. It reaches nobody and the domains can be removed with remove_excluded_domains, so it does not wait for your OK.

Parameters

Parameters: add_excluded_domains
NameTypeDescription
domains array required array Bare domains such as acme.io, up to 10,000 per call.
list_id integer integer Exclusion list ID. Omit it to add to the global list.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/findymail/excluded-domains \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"list_id":1204,"domains":["acme.io","northwind.com","globex.co"]}'
Python
result = client.call("findymail", "add_excluded_domains", {"list_id":1204,"domains":["acme.io","northwind.com","globex.co"]})
Node.js
const result = await cotlet.call('findymail', 'add_excluded_domains', {"list_id":1204,"domains":["acme.io","northwind.com","globex.co"]});
CLI
cotlet call findymail add_excluded_domains --data '{"list_id":1204,"domains":["acme.io","northwind.com","globex.co"]}'

Example response

JSON

{
  "success": true,
  "total": 3,
  "processed_immediately": 3,
  "queued": 0,
  "list_id": 1204
}

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.