Add people to a list

Add people to a list on the People page.

POST https://cotlet.dev/api/v1/loxo/lists

write

Adds the people to the list. Lists are static groups, and anyone with access to a list can add or remove records. It reaches no one and a person can be removed from the list in Loxo, so it does not wait for your OK by default.

Parameters

Parameters: add_to_list
NameTypeDescription
list string required string Title of an existing list. A name that does not exist fails and the error lists your lists.
person_ids array required array Person ids to add.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/loxo/lists \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"list":"list","person_ids":"person ids"}'
Python
result = client.call("loxo", "add_to_list", {"list":"list","person_ids":"person ids"})
Node.js
const result = await cotlet.call('loxo', 'add_to_list', {"list":"list","person_ids":"person ids"});
CLI
cotlet call loxo add_to_list --data '{"list":"list","person_ids":"person ids"}'

Example response

JSON

{
  "list": "Data leads",
  "added": 1
}

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.