> For the complete documentation index, see [llms.txt](https://docs.changeup.com/app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.changeup.com/app/account-settings/api-key.md).

# API Key

### Profile Menu > Account Settings > API Key

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2Fu2bn47mTfkfOLyv1n6iA%2Fsettings-profile-menu.png?alt=media&amp;token=ac0ff6c4-6452-4bb8-9bcc-215ed9321811" alt="" width="302"><figcaption><p>Go to API Key in Account Settings</p></figcaption></figure>

### Confirm Environment

Before creating a new API Key, ensure the desired environment is selected in the header.

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2F3a8ikCz4niwgT2NE5Pet%2FLive-TestSwitch.png?alt=media&amp;token=7a429c1f-51ef-48e4-bcf4-8990d008d6da" alt=""><figcaption><p>Live/Test environment switch in header.</p></figcaption></figure>

### Create New API Key

Create New API Key to open the API modal.

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2FWQljxAr9d5JN2tIkUw7Z%2FAPI-Key-step-0.png?alt=media&amp;token=92a15680-b976-4243-9c75-5349d09e65a1" alt=""><figcaption><p>API Keys list</p></figcaption></figure>

### Name the New API Key

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2Fv7ZI2dj5CCuLXQa5pTpI%2FAPI-Key-step-1.png?alt=media&amp;token=0d01f1f2-d663-4e59-915e-e4e2634c075f" alt="" width="563"><figcaption><p>Create New API Key modal.</p></figcaption></figure>

### Create API Key

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2FMHjROOVUGHPh1Qu5en2z%2FAPI-Key-step-2.png?alt=media&amp;token=49dc9e22-d587-4f54-9175-3226a2d49d7a" alt="" width="563"><figcaption></figcaption></figure>

### Copy Secret Key

{% hint style="info" %}
Once the Secret Key is revealed, the only opportunity to copy it is now. ChangeUp will not save the Secret Key and it cannot be retrieved. Copy and store in a secure location. The Client ID will always be available on the API Keys page.
{% endhint %}

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2FnYJ8hckmr6yBhz8KMRRp%2FAPI-Key-step-3.png?alt=media&amp;token=e64e670b-e769-4692-97d4-a29fe511c7da" alt="" width="563"><figcaption><p>Copy the Secret Key.</p></figcaption></figure>

The new API Key is now ready for use:

<figure><img src="https://814680633-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcH5SMrrvcoTMfHpSL60L%2Fuploads%2FPjyWgQ4BZ28ILjwqiLPW%2FAPI-Key-step-4.png?alt=media&amp;token=9df22f55-8976-4d87-b6fe-43e2a8daa986" alt=""><figcaption><p>New API Key present in API Keys list.</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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.changeup.com/app/account-settings/api-key.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
