API clients

An API client is a user that is not a person. It represents a program such as a dialer, an integration, or a script, and it gains access to an account in the same way a user does, by being placed in a user group.

Instead of an email address and a password, an API client has a client ID and a client secret. Those credentials are what a program presents to Live Hub:

You create and manage the client ID and secret under API Clients in Access control (IAM).

Add an API client

The client secret is shown once, while you are creating the client. It cannot be retrieved afterwards, so copy it now, or you will have to change it and update whatever was using it.

To add an API client:

  1. Open Access control (IAM), and select API Clients.

    The API clients list

  2. Click Add API Client.

    Naming the API client

  3. Enter a name, and then click Next.

    Live Hub generates the client ID and client secret and shows them.

    The generated credentials

  4. Copy both with the copy-to-clipboard icons, and then store them somewhere safe.

  5. Click Close.

A new client has no rights yet. Grant them by adding it to a user group; for outbound calling, that means Call Control and Call Data Manager.

Change the client secret

Rotating the secret invalidates the old one, so anything still using it stops working until you update it.

To change the client secret:

  1. Open Access control (IAM), and select API Clients.

  2. Click Edit on the API client.

    The API client details

  3. Beside 'Client secret', click Change, and then confirm.

Lock an API client

Locking switches a client off without deleting it: its credentials stop working, and unlocking restores them. Lock a client when you suspect its secret has leaked, or when an integration is being retired and you are not ready to remove it.

To lock an API client:

  1. Open Access control (IAM), and select API Clients.

  2. Click Edit on the API client.

  3. Click Lock.

    'Status' changes to Locked, and the button becomes Unlock.

Assign an API client to a group

You can add a client to a group from either end. To work from the group, see Add an API client to a group.

To add an API client to a user group from the client:

  1. Open Access control (IAM), and select API Clients.

  2. Click Edit on the API client.

    Adding an API client to a user group

  3. Click Add to user group.

    Choosing the user group

  4. Select the group, and then click Submit.

The client's details list the groups it belongs to, and Remove on a row takes it out of that group.

Delete an API client

Deleting an API client removes it from the account. To switch a client off without removing it, lock it instead: see Lock an API client.

To delete an API client:

  1. Open Access control (IAM), and select API Clients.

    The API clients list

  2. Click Remove on the API client, and then confirm with Remove.