Forum Discussion

Anonymous0909's avatar
3 years ago

list of all users subscribed to all board

I am using the below api to find the users permitted to a particular board:

https://[COMMUNITY DOMAIN]/restapi/vc/boards/id/<board ID>/subscribers/email/board

But the problem with above api and my use case is that I want to view the list of all the boards and its permitted users in one request. Whereas, the above api is only allowing to look for only a single board at a time. Is there a way in which I can get the list of all the boards in a community and it's subscribed users in a single hit?

  • To get what you're looking for in a single hit, you'll probably need to create a custom endpoint to condense the API requests.  You would likely need to loop through the boards (after performing a LiQL query to get all of the board IDs) and then aggregate all of the results into a single JSON response.

    That being said, the restriction of needing to query one board at a time is almost certainly by design because the amount of data that a custom endpoint would attempt to return for all subscribers of all boards would almost certainly exceed the maximum character limit of the API response.

    So you may be better off doing the individual board queries and looking through the boards in a script or something.

    Hope this helps.