> ## Documentation Index
> Fetch the complete documentation index at: https://help-center-starter-replace-template-content.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API keys

> Generate and manage API keys for programmatic access to Mintlify.

Mintlify API keys allow you to interact with your docs programmatically — triggering deployments, managing content, and automating your docs workflow.

## Generate an API key

1. Go to [dashboard.mintlify.com](https://dashboard.mintlify.com) and open your organization.
2. Go to **Settings → API keys**.
3. Click **New key**, give it a descriptive name (for example, `ci-deploy` or `content-automation`), and click **Create**.
4. Copy the key immediately — it won't be shown again after you close the dialog.

Store the key in your secrets manager (GitHub Actions Secrets, AWS Secrets Manager, HashiCorp Vault, etc.) — never hardcode it in source code or config files.

## Key naming

Use descriptive names that identify the service using the key:

* `github-actions-deploy` for CI/CD workflows
* `content-generator-production` for automated content tools

This makes it easy to identify and rotate the right key if credentials are compromised.

## Rotation

Rotate API keys regularly or immediately if you suspect exposure:

1. Generate a new key in **Settings → API keys**.
2. Update the key in every system that uses it.
3. Verify the new key works in all dependent systems.
4. Revoke the old key.

<Warning>
  Revoking a key takes effect immediately. Update all dependent systems before revoking to avoid broken deployments or automation.
</Warning>
