> For the complete documentation index, see [llms.txt](https://developer.siteminder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.siteminder.com/channels-plus-api/additional-resources/generate-api-key.md).

# Generate API Key

When you regenerate a key, Partner Portal creates a new current API key and keeps the previous key active as an expiring key for up to 7 days so you have time to rotate credentials on your side without interruption.

This process changes the API key only. Your API ID stays the same.

### Before you begin

* Make sure you know where your current Channels Plus API key is configured in your application or secret store.
* Plan to update your integration as soon as the new key is generated. The old key remains valid only until the expiry date shown in Partner Portal.

### Generate or regenerate your API key

1. Log in to Partner Portal and open the API Integration page.
2. In the Current API Credentials section, click Regenerate API key.
3. Review the confirmation message. Partner Portal warns that regenerating your API key will create a new key and set your current key to expire in 7 days.
4. Click Regenerate to continue.
5. Copy and securely store the new API key, then update your integration to use it before the old key expires.
6. Check the expiry date shown for the old key and use it as your deadline to complete the rotation.

<figure><img src="/files/f219zOZRo3fJDiHgb9ER" alt=""><figcaption></figcaption></figure>

> Figure 1: Regenerate API key confirmation dialog in Partner Portal.

### What happens after regeneration

* A new API key becomes your current key.
* Your previous key becomes an expiring key and remains valid for 7 days so you can complete the rotation safely.
* After the expiry period ends, the old key is no longer valid.
* If you regenerate again while an expiring key already exists, Partner Portal replaces the current key and keeps the existing expiring key as is.

### Best practices

* Update all services and environments that use the key as soon as the new key is generated.
* Store API keys in a secure secret manager or encrypted configuration store.
* Do not hardcode API keys in source code or expose them in client-side applications.
* Avoid regenerating again until you have confirmed all traffic is using the new key.

{% hint style="success" icon="sparkles" %}

## Still have questions?

Use the <i class="fa-gitbook-assistant">:gitbook-assistant:</i> **Ask** button at the top of the page to chat with our AI assistant — it can help you navigate the guide, understand requirements, and troubleshoot issues.

If you need more support, visit [Integration Support](/integration-support/integration-support.md).
{% endhint %}


---

# 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://developer.siteminder.com/channels-plus-api/additional-resources/generate-api-key.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.
