GET
https://api-us.engagor.com/{account_id}/inbox/contact/{service}/{service_id}
Returns a single social profile / contact.
You can fetch a contact by its contact.id
, or by using service
("twitter", "facebook", ...) & service_id
(id of the user on the platform). (These values are returned as contact.socialprofiles[].type
and contact.socialprofiles[].service_id
on contact objects.) This is not supported for Instagram.
Param | Description | Required | Default Value |
---|---|---|---|
topic_ids |
Comma separated list of topic ids to search for details. (Optional for most types of contacts, required for contacts of type 'wechat', 'twilio', 'web', 'whatsapp', 'viber'.) | No |
A single contact
item.
POST
https://api-us.engagor.com/{account_id}/inbox/contact/{service}/{service_id}
Updates a single social profile / contact.
You can update a contact by its contact.id
, or by using service
("twitter", "facebook", ...) & service_id
(id of the user on the platform). (These values are returned as contact.socialprofiles[].type
and contact.socialprofiles[].service_id
on contact objects.) This is not supported for Instagram.
Param | Description | Required | Default Value |
---|---|---|---|
updates |
A JSON encoded array of changes you want to make. Structure of the object should be like contact , with only those properties you want to update. (Property `socialprofiles` can't be updated.) |
Yes | |
options |
A JSON encoded array of options for the update. Supported keys: 'customattributes_edit_mode' (possible values: 'update', 'overwrite' or 'delete'; 'update' is default), 'tags_edit_mode' (possible values: 'add', 'update', or 'delete'; 'update' is default) | No | |
topic_ids |
Comma separated list of topic ids to search for details. (Optional for most types of contacts, required for contacts of type 'wechat', 'twilio', 'web', 'whatsapp', 'viber'.) | No |
The updated contact
item.
Update standard fields of a contact