Is there any way, to get list of posts which are marked as spam by requesting any API. As I wanted to delete all the spam posts in one go.
In version 8.0, you cannot retrieve lists of content that is spam via the API. In Telligent Community 9.0, we combined moderation, spam and abuse to all use the abuse API. You can request abusive content via the API:
In this API, the AppealState is one of the following: Initiated, AuthorResponded, Accepted, Rejected, Expired, ModerationRequired (9.0+).