intercom / intercom-node

Node.js bindings for the Intercom API
https://developers.intercom.com
Other
362 stars 116 forks source link

How to query contact id when contact is archived? #333

Open ryan-kim-siteminder opened 1 year ago

ryan-kim-siteminder commented 1 year ago

To delete archived contact permanently, we need to use contact id but it seems to me that there is no way we can retrieve contact id if contact is archived. Is there any way I can retrieve contact id to use it as a parameter for deleting contact permanently? FYI, this requirement is part of PII(Personal Identifiable Information) initiative.

Version info

Expected behavior

There should be a way to retrieve contact id for archived user. So archived users can be deleted permanently.

Actual behavior

I want to use email to search contact id for archived user but intercom api client does not provide that. Tried to unarchive contact to get the contact id but to no avail because to unarchive contact it needs contact id.

SeanHealy33 commented 1 year ago

Hi Ryan

The api does not support listing archived contacts sadly the only way to get them is to have the id handy.

I've raised a bug to the feature team and I'll update this as I get more info

liampulles commented 6 months ago

Any updates on this? I'm also trying to query for the id of an archived contact in order to unarchive them.

marcuswurster commented 2 months ago

@SeanHealy33 We currently run into the same issue and would love to see an update here