Legacy Dev Forum Posts

 View Only

Sign Up

Delete calls under X amount of time using /api/v2/recording/jobs

  • 1.  Delete calls under X amount of time using /api/v2/recording/jobs

    Posted 06-05-2025 18:31

    Tony_Nguyen | 2024-07-17 03:12:18 UTC | #1

    Hi All, We are looking to use the /api/v2/recording/jobs api to delete outbound calls from a particular queue and was wondering if it's possible to add filter for calls under a certain amount of time? This is the schema we have been using but would like to add a duration filter.

    { "action": "DELETE", "actionDate": "2024-08-13T03:26:00.414Z", "conversationQuery": { "interval": "2018-01-01T00:00:00Z/2024-05-31T23:59:00Z", "segmentFilters": [ { "type": "and", "clauses": [ { "type": "and", "predicates": [ { "type": "dimension", "dimension": "direction", "operator": "matches", "value": "outbound" } ] }, { "type": "and", "predicates": [ { "type": "dimension", "dimension": "queueId", "operator": "matches", "value": "XXXXXX-XXXXXXXXXXXXXX-XXXXXXXXX" } ] } ] } ] } }

    Thanks in advance!


    Sriram_L | 2024-07-18 02:53:58 UTC | #2

    Hi,

    You can include a conversational filter for the duration parameter in addition to the segment filters

    Just a sample below:

    "conversationFilters": [ { "type": "and", "predicates": [ { "type": "metric", "range": { "lte": 500 }, "metric": "tConversationDuration" } ] } ]


    Tony_Nguyen | 2024-07-18 05:23:59 UTC | #3

    You are a lifesaver Sriram, Exactly what I was looking for

    Many thanks!


    system | 2024-08-17 05:24:38 UTC | #4

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 27274