CX Authentication

The OAuth 2.0 Client Credentials Grant is used to authenticate clients of this API. The authenticated user is checked for having appropriate privileges to perform the requested operation. Privileges are assigned to users via one or more Roles.

To obtain an access token:

  1. Login to your OneCloud CX configuration portal. Example: https://mytenant.onecloud.cx.com/admin
  2. Navigate to Users page.
  3. Select or create a user with privileges corresponding to the tasks you wish to perform via the OneCloud CX API.
  4. Click the Generate button to generate an API secret key. Copy the generated key and note the username for the next steps.
  5. Use the Get Access Token method to obtain an access token. Set the client_id to the username and client_secret to the generated API secret key.
  6. Use the value of access_token returned in the response to set the Authorization: Bearer [access token] header of each subsequent request made via the OneCloud CX API.