How can I retrieve a list of all users in Smooch

290 views Asked by At

I see on Smooch there is a way to retrieve all messages for a given user, using GET /v1/appusers/{smoochId|userId}/messages but how can I get a list of all users (or, at least, all userIds) who are currently using my app. There doesn't seem to be an endpoint for that in the API. Is this possible?

1

There are 1 answers

3
Marc-Antoine Lemieux On BEST ANSWER

Unfortunately, it's not possible at this point. However, you can subscribe to webhooks (listening for the message:appUser event) and keep track of your users yourself.

See https://docs.smooch.io/rest/#webhooks for the details about webhooks.