Legacy Dev Forum Posts

 View Only

Sign Up

How to filter out spam emails when using the conversations API

  • 1.  How to filter out spam emails when using the conversations API

    Posted 06-05-2025 18:24

    enotani | 2022-11-15 08:51:23 UTC | #1

    Hi I use "GET /api/v2/analytics/conversations/details/query" to get participant data for email interactions. I would like to exclude spam emails from the obtained conversations array.

    Q1:Is it correct to think that an array containing ("disconnectType": "spam") is a spam email? Q2:Is there a way to exclude spam emails from the beginning in API properties?

    Best Regards, Hirofumi.Enotani


    jacobshaw | 2022-11-18 15:12:38 UTC | #2

    Hi @enotani This is a viable approach. Here are a couple of resource center articles that give more info about the "spam" disconnect reason and how emails get marked as spam https://help.mypurecloud.com/articles/disconnect-reasons/ https://help.mypurecloud.com/faqs/how-does-genesys-cloud-handle-email-marked-as-spam/

    You could use participant-level filters in the request to match specified disconnectReasons


    enotani | 2022-11-18 15:12:29 UTC | #3

    Hi I really apologize for my late reply. Thank you for your answer. I understand that ("disconnectType": "spam") is the only keyword that can be judged as spam mail. Also, I haven't found a way to exclude spam in the API's segment filter. Defines and extracts all disconnect reasons except ("disconnectType": "spam").

    Best Regards, Hirofumi.Enotani


    John_Carnell | 2022-11-18 15:12:41 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 17219