# API Client Credentials

The dope.swg offers Public APIs to allow our customers automate specific tasks.

For more information on the Public APIs we have available and how to use them please see [Broken mention](broken://pages/Fv4IZGn86IncLNyfYRFg)

## Generating Client Credentials

In order to be able to access the dope.SWG APIs a client credential token will need to be generated. When using the APIs this token is exchanged to get an access token. This access token can then be used to access the dope.SWG APIs.

To generate a token select the <img src="/files/tv2NaMthpph9EP0yITKB" alt="" data-size="line"> button on the right hand panel.

<figure><img src="/files/jqph678QqQj9P8EHpQQy" alt=""><figcaption><p>Generate Client Credentials</p></figcaption></figure>

You will then be prompted to provide a name for the token in the right hand panel.

<figure><img src="/files/5C4hSBhUdZXLgzJYT9v5" alt="" width="509"><figcaption><p>Provide Token Name</p></figcaption></figure>

Once you have provided a name for the Token it will get added to the table. Here you will see the following information, Token Name, Client ID, Created By and Created On.

You will also see the Token Secret. This must be copied immediately as for security reasons it will not be shown again.

<figure><img src="/files/ZTQIP4qA2AjcBfh9TrT4" alt=""><figcaption><p>New Token Added to Table</p></figcaption></figure>

{% hint style="info" %}
You can select the Copy icon or the string of text to copy the secret.
{% endhint %}

If required, it is possible to create multiple tokens following the same process.

## Revoking Client Credentials

### Revoke a single credential

To revoke a single credential select the ellipsis at the right hand side of the credentials table, and then select Revoke.

<figure><img src="/files/tpOIIRA5bP8PeqRMbs26" alt=""><figcaption><p>Revoke a single credential</p></figcaption></figure>

After selecting Revoke you will need to confirm the action when presented with the following dialog.

<figure><img src="/files/iWgIanpR59tuBlQao3MU" alt="" width="509"><figcaption><p>Revoke Single Confirmation Dialog</p></figcaption></figure>

### Revoke all credentials

To revoke all of the created credentials then select the <img src="/files/sOSBSdwSvToum15S3Rm1" alt="" data-size="line"> button on the right hand panel.

Then, confirm you want to revoke all credentials when presented with the following dialog.

<figure><img src="/files/WnrWiI1vuzK95Qinw4kx" alt="" width="509"><figcaption><p>Revoke All Confirmation Dialog</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://inflight.dope.security/dope.console/settings/api-client-credentials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
