Legacy Dev Forum Posts

 View Only

Sign Up

Get Callbacks API endpoint from conversations is not returning data in Postman

  • 1.  Get Callbacks API endpoint from conversations is not returning data in Postman

    Posted 06-05-2025 18:10

    devinflow | 2016-08-06 15:39:13 UTC | #1

    Using the guideline you provided for using postman to test your API, and using CODE AUTHORIZATION, the call to get all callbacks does not return any data and NO ERROR, it returns ok but with no data, and in fact there is Callbacks in the system. The endpoint is https://api.{{environment}}/api/v2/conversations/callbacks . The strange thing is that if we call for example other endpoint like the analytics one doing a query, that in fact returns data.

    We also try using Client Credentials as the Oauth2 type with a specific role and did not work either.

    Thankks


    KevinGlinski | 2016-08-06 17:10:29 UTC | #2

    See https://developer.mypurecloud.com/forum/t/calls-in-the-queue/197/2, you can use the analytics query builder to help build your filter https://developer.mypurecloud.com/developer-tools/#/analytics-query-builder


    devinflow | 2016-08-08 14:45:40 UTC | #3

    Thanks, I get now that I will get conversations or data just in the context of my current user .. So If I want to get ALL Callback calls in the system, I cannot use the https://api.{{environment}}/api/v2/conversations , instead I have to use the Analytics API? , in this case the Analytics query builder?


    tim.smith | 2016-08-08 14:47:48 UTC | #4

    devinflow, post:3, topic:260
    instead I have to use the Analytics API?

    Yes, that is correct.


    devinflow | 2016-08-08 17:47:31 UTC | #5

    Thanks Kevin. Now I am getting somewhere. I got responsee using the detail query as you suggested, but just a question. Is there a restriction of getting only data in a range of 7 days?, or I have to use some other option to get hsitorical data in a range greater than 7 days. I did a simple detail query, with a simple range and got a error. "message": "You must specify a search interval as part of your query that does not exceed 7 days",

    And well I will read further to distinct actual calls from Callbacks, o there is a simpler way just to query callbacks?

    Thanks


    tim.smith | 2016-08-08 17:55:13 UTC | #6

    devinflow, post:5, topic:260
    did a simple detail query, with a simple range and got a error. "message": "You must specify a search interval as part of your query that does not exceed 7 days",

    That error message is correct.


    devinflow | 2016-08-08 18:08:22 UTC | #7

    Thanks a lot Tim. I know is correct, but my question is "If is possible to get data from a range more than 7 days"? or we will have to get it in slots of weeks and then make some kind of union in our APP ..

    And the other question is, how to get ONLY Callbacks from a detail query, and not ALL calls ?


    tim.smith | 2016-08-08 18:16:47 UTC | #8

    devinflow, post:7, topic:260
    my question is "If is possible to get data from a range more than 7 days"? or we will have to get it in slots of weeks and then make some kind of union in our APP ..

    No, you cannot get more than 7 days. If you try, it will return an error. If you want more than 7 days of data, you must request 7 days at a time and aggregate the data in your app.

    devinflow, post:7, topic:260
    And the other question is, how to get ONLY Callbacks from a detail query, and not ALL calls ?

    Add this dimension to your query:

    { "dimension":"mediaType", "value":"callback" }


    KevinGlinski | 2016-08-08 18:43:37 UTC | #9

    We have an issue API-1642 which will add the following endpoints

    /routing/queues/id/conversations /routing/queues/id/conversations/calls /routing/queues/id/conversations/callbacks /routing/queues/id/conversations/chats /routing/queues/id/conversations/emails

    the task is currently in testing so release would fairly soon (not committing to any dates). There is a related issue API-1638 for the associated notification topics


    anon47305574 | 2016-08-11 18:43:30 UTC | #10

    actually, the restriction of 7 days is only present for queries that have no filters (e.g. a query composed solely of an interval). If you supply a filter, the allowable interval range expands to a bit over a month


    system | 2017-08-28 19:26:11 UTC | #11


    This post was migrated from the old Developer Forum.

    ref: 260