I need to view contacts of current login agent in my Freshsales custom app.
Is there any way to do this.
Hope you are well!
If my understanding is correct, you want to build an app that gets the details of the current logged-in agent! if that is the case you can use Data API (Data API) to get the details of the current user
do you want to get all the contacts in the Freshsales account, if that is the case you can use the Contacts API (https://freshsales.io/api/#contacts) in Freshservice
Hope this helps!
Thanks for your help, i want to get all the contacts in the Freshsales account.
But my app install by api key of admin acount, when i login with other acount, my contact will response all contacts of admin
Is there any way to get all contacts of current acount with apikey of admin acount.
thanks and best regards !
Although it’s so long.
Just adding my answer here for future visitors on this topic,
Freshsales API documentation has an API to list all the contacts:
App can use
await client.request.get() platform API to consume this API end point.