Search contacts and accounts
Contacts and accounts by name, email or company.
GET https://cotlet.dev/api/v1/tripleseat/contacts/search
read
Searches your contacts, the people, and your accounts, the companies or families they belong to. Each hit returns the IDs that create_event needs and the owner. Use it before create_lead to see whether the guest is already known.
Parameters
| Name | Type | Description |
|---|---|---|
| query string required | string | Name, email or company. |
| type string | string | contact or account. Default: both. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl "https://cotlet.dev/api/v1/tripleseat/contacts/search?query=query" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("tripleseat", "search_contacts", {"query":"query"}) const result = await cotlet.call('tripleseat', 'search_contacts', {"query":"query"}); cotlet call tripleseat search_contacts --data '{"query":"query"}' Example response
{
"results": [
{
"type": "contact",
"contact_id": 66120,
"name": "Marisol Delgado",
"email_address": "marisol@example.com",
"account": "Delgado family",
"account_id": 4410
}
],
"next_cursor": null
}