API Call for Retrieving Pre-Moderation Messages
Hello,
Is there any API available to retrieve all messages that are currently in pre-moderation?
Thank you,
Manasa.
Hi Manasa,
I think this is what you are looking for. The first link shows how to use moderation_status as a constraint and the second lists all the possible values for it.
https://developer.khoros.com/khoroscommunitydevdocs/docs/messages#moderation_status-1
https://developer.khoros.com/khoroscommunitydevdocs/docs/messages#moderation_status
So, if you are familiar with LiQL you could do something like this:
https://YOUR COMMUNITY/api/2.0/search?q=SELECT subject, body, view_href FROM messages WHERE moderation_status = "unmoderated" LIMIT 250
We don't use pre-moderation, and I've never used this, but I think that should work. Also, the default is to return 25 results, so I added the "LIMIT 250" to raise that.