Skip to content

Protect Credentials and Investigate Usage

Learn how to protect your API tokens and unredeemed CDKs, prevent public leaks, and check for unexpected usage.

An API token and unredeemed CDKs must be protected from public exposure.

An API token authenticates requests. Store it as you would a password and do not share it publicly. See Quick Start for creation and copying instructions. Keep unredeemed CDKs private. Do not display unredeemed CDKs in public documentation, chat records, or screenshots.

When writing code examples or sharing documentation, always use obvious placeholders (for example, sk-your-token). Never use a real API token. Local client configuration files may store an API token. Before committing or sharing project files, review the included files to confirm they contain no API token or credential-bearing import link.

Configure your API token only in a client you trust. Send API requests only to the HTTPS addresses shown in the guide for your client or under API Access Routes. If you use CC Switch, generate import links only from the CC Switch guide.

If you suspect credential exposure, immediately stop using the exposed credential and ensure it is invalidated. After updating affected configurations, review the usage log for requests you do not recognize. See Account and Billing for a description of the recorded fields.