Get contact

One contact with every property and tag.

GET https://cotlet.dev/api/v1/tidio/contacts/{contact_id}

read

Returns the full record of one contact: name, email, phone, language, country, email consent, tags and all contact properties by name. Use it to check which properties exist before writing with update_contact.

Parameters

Parameters: get_contact
NameTypeDescription
contact_id string required string Contact ID from list_contacts.

Request

cURL
curl https://cotlet.dev/api/v1/tidio/contacts/contact_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("tidio", "get_contact", {"contact_id":"contact_8c41d2"})
Node.js
const result = await cotlet.call('tidio', 'get_contact', {"contact_id":"contact_8c41d2"});
CLI
cotlet call tidio get_contact --data '{"contact_id":"contact_8c41d2"}'

Example response

JSON

{
  "contact_id": "c4d9e1a2-77b0-4e0f-9a31-5b2c8e6f0d13",
  "name": "Mark Dole",
  "email": "mark.dole@example.com",
  "phone": null,
  "language": "en",
  "country": "US",
  "email_consent": "subscribed",
  "tags": [],
  "properties": {
    "plan": "trial"
  }
}

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.