Search people

Search the People page by keyword.

GET https://cotlet.dev/api/v1/loxo/peoples/search

read

Returns person_id, name and primary email for each match, in the order of the People page, in pages. Use it before create_person to avoid a duplicate. It searches your own database only, not Loxo Source.

Parameters

Parameters: search_people
NameTypeDescription
query string required string Keyword, for example a name or an email address.
cursor string string next_cursor from the previous page.

Request

cURL
curl "https://cotlet.dev/api/v1/loxo/peoples/search?query=query" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("loxo", "search_people", {"query":"query"})
Node.js
const result = await cotlet.call('loxo', 'search_people', {"query":"query"});
CLI
cotlet call loxo search_people --data '{"query":"query"}'

Example response

JSON

{
  "people": [
    {
      "person_id": 48211077,
      "name": "Priya Nair",
      "primary_email": "priya.nair@example.com"
    },
    {
      "person_id": 48211102,
      "name": "Tom Becker",
      "primary_email": "tom.becker@example.com"
    }
  ],
  "next_cursor": null
}

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.