Get contact

One contact with its fields, points, segments and campaigns.

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

read

Returns the contact detail page as data: custom fields, points, owner, and the segments and campaigns the contact belongs to. Use it to compare two contacts before merging them. A contact ID that does not exist returns a not found error.

Parameters

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

Request

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

Example response

JSON

{
  "contact_id": 1042,
  "name": "Ana Lopez",
  "email": "ana@example.com",
  "company": "Northwind Studio",
  "points": 42,
  "segments": [
    "newsletter",
    "webinar-leads"
  ],
  "campaigns": [
    "Webinar follow-up"
  ],
  "do_not_contact": false
}

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.