Create exclusion list
Create an exclusion list for Intellimatch searches.
POST https://cotlet.dev/api/v1/findymail/exclusion-lists
write
Returns the list with its ID, name, is_shared and is_owner. A name you already use fails with a 422 error, and sharing without a team fails with a 400 error. It reaches nobody, and the list can be deleted again, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| name string required | string | List name, unique among your lists. |
| is_shared boolean | boolean | Share the list with your team. Needs a team account. |
Request
curl -X POST https://cotlet.dev/api/v1/findymail/exclusion-lists \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jane Doe"}' result = client.call("findymail", "create_exclusion_list", {"name":"Jane Doe"}) const result = await cotlet.call('findymail', 'create_exclusion_list', {"name":"Jane Doe"}); cotlet call findymail create_exclusion_list --data '{"name":"Jane Doe"}' Example response
{
"id": 1260,
"name": "Competitors",
"is_shared": false,
"is_owner": true
}