Legacy Dev Forum Posts

 View Only

Sign Up

How to connect to API access to specific web page of Genesys?

  • 1.  How to connect to API access to specific web page of Genesys?

    Posted 06-05-2025 18:17

    theone232009 | 2020-06-24 10:10:37 UTC | #1

    I would like to have access to API to get queue tables or queue data like below attached Screenshots of the tables.


    anon11147534 | 2020-06-24 10:35:37 UTC | #2

    Looks like you're looking for routing queue analytics data. The /api/v2/analytics/conversations/details/query and /api/v2/analytics/conversations/aggregates/query endpoints are used for that data. You can use the analytics query builder to help build the queries you need. The metrics are documented here: https://developer.mypurecloud.com/api/rest/v2/analytics/metrics.html If you simply want to get a list of the routing queues in your organisation, use the /api/v2/routing/queues endpoint.


    theone232009 | 2020-06-24 10:49:51 UTC | #3

    anon11147534, post:2, topic:8102
    /api/v2/analytics/conversations/details/query

    Hi Ronan,

    Thank you for this inputs, Where can we get Access-token?

    here is my code where I am using another platform.

    Global $url2 = "/api/v2/analytics/conversations/details" ;"/api/v2/routing/queues"

    $output = APIGet('GET', $url2, '', $name, $passw) ;ConsoleWrite('balance: ' & $output & @CRLF) local $split = StringSplit($output, ",") local $file1 = fileopen(@scriptdir & "\test_api.txt",10) local $array = _FileWriteFromArray($file1,$split,1) FileClose($file1) Exit

    Func APIGet($type, $command, $param = '', $name = '', $passw = '') $url = "https://" & $name & ":" & $passw & "@" & "api.mypurecloud.ie" & $command If $param <> '' Then $url &= '&' & $param

    $oXmlHttp = ObjCreate("Microsoft.XMLHTTP") $oXmlHttp.Open($type, $url, False) $oXmlHttp.Send() Return $oXmlHttp.ResponseText EndFunc


    anon11147534 | 2020-06-24 11:04:21 UTC | #4

    You'll have to authenticate with the Platform API in order to make API requests. The Client Credentials grant would be most appropriate for your use case. You can read more into authorization here and learn about Client Credentials and get info on how to set up an OAuth Client here.


    system | 2020-07-25 11:04:24 UTC | #5

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


    This post was migrated from the old Developer Forum.

    ref: 8102