How to get Access Token

How can I use [client id & client secret] to generate the access token to access AnalyticsApi .
Appreciate if there's any example codes or practice in postman.

Hello,

The Grant - Client Credentials page explains how to obtain an access token for a Client Credentials Grant flow (at HTTP/API level).

You can also have a look at the Get Number of On-Queue Agents tutorial which leverages a Client Credentials Grant flow and the Analytics API using our SDKs for nodejs/javascript or for python.
If your Genesys Cloud org is in mypurecloud.jp, in the nodejs or python tutorial, use ap_northeast_1 for the region.

You will of course need to create an OAuth client with Grant Type = Client Credentials first.

Regards,

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