Forum Discussion

nehaSharma's avatar
7 years ago

API call to fetch spam posts

Do we have any API(V1 or V2) to fetch the spam quarantined posts?

I want to fetch all the posts which appear on spam page.

https://<communityURL>/t5/spam/searchpage

5 Replies

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    7 years ago

    nehaSharma We do not have an API to retrieve posts that are marked as spam in either Community API v1 or v2.

  • deads's avatar
    deads
    Expert
    7 years ago

    Hey SuzieH, thanks for confirming that nothing is out there currently.

    Are there plans to add spam to the API in the future? We have some problems we'd like to solve with the existing spam queue and being able to fetch the results elsewhere seems like a potential way forward.

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    7 years ago

    deads Adding spam support to the API is not on the current roadmap.

  • Honestly, all I'm interested in would be a count of the number of messages marked as spam.
    Then I could easily highlight it somewhere in a custom component that someone should look at the spam queue.