> For the complete documentation index, see [llms.txt](https://inflight.dope.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inflight.dope.security/dope.console/settings/api-client-credentials.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
