Contacts are the people and organisations you work with who aren’t clients. The list holds both, organisations first where a name matches.
qstring- Words to look for in a name, organisation, job title or email.
partyorganisation | person- Only organisations, or only people.
kindstring- Only organisations of one kind: law_firm, estate_agent, lender, surveyor, broker, pension_scheme, administrator, employer, introducer, accountant or other.
rolestring- Only contacts who’ve been on a matter in this role, such as Selling agent.
archivedboolean- true for archived contacts instead.
limitnumber- How many to a page, 1 to 200. 50 if left out.
cursorstring- The next_cursor from the page before.
curl "https://api.torlie.com/desk/contacts?q=baird" \
-H "Authorization: Bearer $TORLIE_KEY"What comes back
A page of entries, and the cursor for the next page if there is one.
{
"entries": [
{
"id": "dor_01jd4p0a3s6d9f2g5h8j1k4l7m",
"party": "organisation",
"name": "Baird & Co Estate Agents",
"kind": "estate_agent",
"organisation_id": null,
"organisation_name": null,
"job_title": null,
"email": "[email protected]",
"phone": "0131 496 0100",
"archived": false,
"roles": [],
"matters": 0
},
{
"id": "dct_01jd4p2k7m3n9b5v1c8x6z4l2q",
"party": "person",
"name": "Euan Baird",
"kind": "estate_agent",
"organisation_id": "dor_01jd4p0a3s6d9f2g5h8j1k4l7m",
"organisation_name": "Baird & Co Estate Agents",
"job_title": "Branch manager",
"email": "[email protected]",
"phone": "0131 496 0123",
"archived": false,
"roles": [],
"matters": 0
}
],
"next_cursor": null
}