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
| Name | Type | Description |
|---|---|---|
| contact_id integer required | integer | Contact ID from list_contacts. |
Request
curl https://cotlet.dev/api/v1/mautic/contacts/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("mautic", "get_contact", {"contact_id":1}) const result = await cotlet.call('mautic', 'get_contact', {"contact_id":1}); cotlet call mautic get_contact --data '{"contact_id":1}' Example response
{
"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
}