# Community ID and API Keys

## Explanation: API Keys and IDs

Within Sonoran CAD, there are two different types of API Keys that you will need to use, each serving a different purpose.&#x20;

{% hint style="info" %}
API integration is not enabled with the free version of Sonoran CAD.\
For more information, see our [pricing](https://docs.sonoransoftware.com/cad/pricing/faq) or view how to check your community [limits](https://docs.sonoransoftware.com/cad/tutorials/getting-started/view-your-limits).
{% endhint %}

#### **Community API Key**

First, there is your **community** API Key which allows CAD's in-game integrations to send data to the correct community.&#x20;

To find your community API Key, see [Retrieving Your Credentials](#retrieving-your-credentials) below.&#x20;

This key will be placed in your config.json (for [FiveM integration](https://docs.sonoransoftware.com/cad/tutorials/getting-started/broken-reference)) or the Server Settings panel (for [ER:LC integration](https://docs.sonoransoftware.com/cad/integration-plugins/roblox-er-lc)).

#### **User API ID**

In addition to the community API Key, each user will also have **their own** API ID, which allows CAD to associate the user's in-game player with their Sonoran account. Generally, this will either be the user's Steam Hex, Discord ID, or Game License Key.

This API ID can be found in game by doing `/apiid` in game, if you have the [apicheck](https://docs.sonoransoftware.com/cad/tutorials/getting-started/broken-reference) plugin installed.

Every user will need to find their own API ID and add it to CAD as shown [here](https://docs.sonoransoftware.com/cad/api-integration/getting-started/setting-your-api-id).

## Retrieving Your Credentials

Your community ID allows users to [manually join your community](https://docs.sonoransoftware.com/cad/tutorials/getting-started/inviting-users-to-your-cad).&#x20;

Your community ID and API Key can be found in the Admin panel, under `Advanced` > `In-Game Integration`. Under the Web API section, your Community ID and API key will be listed as shown:

![Sonoran CAD - Web API Information](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FbRQNBWJ4R5RT3yCYUP81%2FCAD_WebAPICredentials.png?alt=media\&token=6b89be7f-2bcf-457c-a915-badc1ea760da)

Click either box to copy its corresponding value to your clipboard.

### Other Ways of Finding your Community ID

Your community ID is also listed in the following places:

1\. In the side navigation bar while logged in

![Community IDs are displayed in the side navigation bar](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FkmZGZ6RI1cwZvFZtCJ8n%2FCAD_DropdownID.png?alt=media\&token=07c35a17-1be5-4d38-bc88-6fc74041b558)

2\. In the Admin panel under `Advanced` > `Limits`

![Community IDs are also displayed in the admin limits section](https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2FNed7J8qjntoIv79wCaJC%2FCAD_Limits.png?alt=media\&token=07f8d079-d2dd-4e85-bd4b-9dc9cd49e598)

## Authenticating your Ownership

While requesting support from an official Sonoran team member, you may be asked to authenticate your community's ownership.

{% hint style="danger" %}
Your community's ownership authentication code can only be retrieved from your CAD owner.\
\
This code is used in support tickets to confirm that you are the registered owner of the community. **NEVER** give this code out to anyone that is not a member of the Sonoran support team!
{% endhint %}

1. In the admin page, navigate to `Advanced` > `Authenticate`
2. Press the "Request Code" button
3. Your ownership authentication code will be displayed on the screen

   <figure><img src="https://232668649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4pGN81fb4R6zFhodcu%2Fuploads%2Fv1MWYpY2FV6SlectcS6G%2Fimage.png?alt=media&#x26;token=b221a007-f723-45f9-a259-d20cf074189d" alt=""><figcaption></figcaption></figure>
