How to fetch contact_id using customer phone number in nodejs?

118 Views Asked by At

I am trying to fetch all the contact ids using phone number of customers in nodejs. But I was not able to find anything for that. Is there any way or tip how can I achieve this?

The motive behind it is want to show the contact ids and call details (date-time of call) in my program just like we use contact search of amazon connect (contact lens).

1

There are 1 best solutions below

3
ledge On

That isn't possible in nodejs. There is no API for reporting in Connect.

The solution here is to setup the Kinesis stream for the Connect Contact Trace Records to populate a Glue database. You can then query this via Athena.

There is a blog post here that will take you through the process.