Developer settings provide access to configuration specifically for accessing
additional services including API.

## API Credential Management

> [!WARNING]
> **Warning:** **Deprecation Notice:** for API Company Key and Secret Value

The Company Key and Secret Value is being deprecated as of September 30,
2022.

A new **Credential Management** interface is available at **Settings \>
Developer Settings \> API**.

> [!NOTE]
> **Note:** The **token** replaces the password value on the API requests. *This was
> previously the Company Secret.*

Use your **subdomain** (without the https://) as the username. For
example, if the URL you visit is *https://* *foobar* *.domain.co* then the
subdomain value for your username is **foobar** . *This was previously
the Company Key.*

**Create as many API credentials as you need for internal use.**

Be aware that some third-party integrations require the creation
of API credentials.

As a result, depending on the integrations you have, you may already see
API credentials configured for Advanced Reporting, or others.

**If you lose or forget your token, you can [regenerate the
token](https://docs.cloud.google.com/contact-center/ccai-platform/docs/developer-settings#UUID-ef0cf814-be10-d19b-b475-7b4bd41f774e_section-idm4652146168505632874712149874).
Be sure to store this in a secure location.**

The API Credential Management Settings allow you to:

- add new API credentials

- disable / enable credentials

- regenerate the secret token

- or edit the name of an existing credential

## Add an API credential

1. Go to **Settings \> Developer Settings \> API Credential
   management**.

2. Click the **+ Add API Credential** button. An **Add API Credential**
   message will open.

3. Enter a **Name** for the credentials.

4. Click **Create**.

## Edit the name of an API credential

1. Go to **Settings \> Developer Settings \> API Credential
   management**.

2. Click the Edit icon ![Edit the name](https://docs.cloud.google.com/static/contact-center/ccai-platform/docs/images/16331bc4769d53.png) to update the
   name.

## Generate a new token

> [!NOTE]
> **Note:** When creating a new credential or regenerating a token, the secret token will only be displayed once. **Please be sure to store this in a secure
> location.**

1. Click the Refresh icon ![Refresh token](https://docs.cloud.google.com/static/contact-center/ccai-platform/docs/images/16331bc476c7e1.jpg) to generate a
   new token.

   A warning message appears.

**Warning**: Regenerating a new token will immediately invalidate the
previous token.

Anything using the previous token will generate authentication errors.
Are you sure?

- **Cancel:** there is no new token generated.

- **Regenerate:** a new token is regenerated. **Copy the new token and
  store in a secure place.**