Skip to main content
Skip table of contents

OAuth client creation

Introduction

Creating an OAuth client to access API data requires specific permissions, such as selecting a role.
Under the Roles section you will find a list of default roles as shown below.

image-20250915-154447.png

However, our project customers typically assign custom roles to their OAuth clients. A custom role with limited permissions ensures the OAuth client can only access the data it needs for the Audiohook functionality.

This guide outlines the steps required to access API data:

Create a custom role

To create custom role with the minimum required permissions for Audiohook functionality, proceed as described below:
1. Navigate to Admin People & Permissions Roles/Permissions.

image-20250915-161157.png

2. Click Add Role.
3. Complete the fields in the screen that opens:

create_role.png
  • Name: Enter your role name (for example, OCP Omilia Role).

  • Description: Enter an optional description.

  1. Go to the Permissions tab and select the minimum required permissions:
    Analytics > Conversation Aggregate > View
    Analytics > Conversation Detail > View
    Conversation > Communication > View

image-20250915-161948.png

5. Click Save.

Assign a custom role

After creating the role, you need to assign it to your user profile. This makes the new role available to you when you create the OAuth client.

To assign a custom role to your user, follow the instructions below:

  1. Go to Admin → People.

  2. Find and click your name.

  3. On the Roles tab, enable the custom role.

    image-20250917-094311.png
  4. Click Save. The custom role will now appear in the list of available roles when you create an OAuth client.

Now, we have the required prerequisite for an OAuth client creation.

Create the OAuth Client

With the custom role assigned, you can now create the OAuth client to get the Client ID and Client Secret, which are necessary for API access.

  1. Navigate to AdminIntegrationsOAuth.

image-20250917-103808.png
  1. Click the Add client button.

  2. On the Client Details tab, fill in the following information:

image-20250917-104904.png
  • App name: A name for your client.

  • Description: An optional brief description.

  • Token duration in seconds: Keep the default value of 86400.

  • Grant type: Select Client Credentials.

  1. Go to the Roles tab and enable the custom role you created earlier.

image-20250917-104950.png
  1. Click Save.

Retrieve Client ID and Secret

Once the OAuth client is saved, you need to retrieve its unique credentials.

  1. Return to the Client Details tab for your newly created client.

image-20250917-111349.png
  1. Scroll down to find the Client ID and Client Secret.

  2. These two values are what you'll use to authenticate and get API data for your project. Now you can use this data for this step.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.