An API Call for all Users in Freshchat

I had a requirement for getting users from Freshchat and adding it into our DB, so we thought of having a cron job which will take up the latest users and do the required stuff. When I checked the documentation there is no API for getting all the users. Is there any way to handle this requirement? It would be helpful if there is a work around for it.

Hey @aswinvb, welcome to the community!

We have this API (unofficial I would say) to filter users:
https://app.swaggerhub.com/apis/freshworks/Freshchat/2.0.0#/User%20API/getUsers
You can pass a created_from parameter and it will return users created from this date.

If you don’t need to get all users already in the account, you could listen to the onUserCreate:


and then send it to your DB.
2 Likes

@samuelpares Thanks for the help.

2 Likes