Search code examples
smoochsupportkit

How can I retrieve a list of all users in Smooch


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?


Solution

  • 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.