How the Platform Protects Your API Keys (and What Is Still Up to You)

CQTAI

11/16/2026

#Security#API Keys#Platform#Transparency
How the Platform Protects Your API Keys (and What Is Still Up to You)

When you hand a key to a service, you are entitled to know what that service does with it. This post is a plain description of what the platform does to protect your API keys today, based on how the product actually behaves, and where your own responsibility begins.

We keep it deliberately concrete. If a protection is not on this list, please do not assume it exists.

The key is shown once

When you create a key on the API Keys page, the full value appears in a dialog exactly once. The dialog tells you to copy it now, because afterwards nobody, not you and not an administrator, can view it again. From then on the list shows only a masked form, with the beginning and the last four characters visible so you can tell your keys apart.

This has a practical consequence you should plan for: a lost key cannot be recovered. You create a replacement and retire the old one.

Stored as a one-way hash

Keys you create are stored as a one-way hash, not as the key itself. Your key is checked by hashing what arrives in a request and comparing it with what is stored. A one-way hash cannot be turned back into the original string, so someone who got a read-only copy of our key table would not find usable keys in it.

We also keep key values out of our application logs. Where a log line has to refer to a key, it uses a short fingerprint that identifies the key without revealing it.

The honest limit: this protects the copy we hold. It does nothing about the copies you hold. A key pasted into a chat or committed to a repository is as exposed as ever, which is why the rest of this post is about what the gateway enforces on every request and how you can spot a problem early.

Your browser never needs your key

The in-browser Playground calls the API using a dedicated key (its name starts with [playground]) that belongs to your account and is tied to your signed-in session. The page does not receive the key value, so a script running in the page has nothing to steal. You can still see that key on the API Keys page and change its limits or disable it like any other key.

Limits are enforced on every request

Each key can carry its own boundaries, and the gateway checks them for every call. This is the single most useful protection against a leaked key, because it limits what a stolen key can do.

BoundaryBehavior
ExpiryAfter the time you set, the key is refused with HTTP 401. Blank means no expiry.
Disabled or deletedA disabled or deleted key is refused with HTTP 401.
Usage limitOnce the key has used up its limit, requests are rejected with HTTP 400. 0 means unlimited.
IP allowlistRequests from addresses not on the list are rejected with HTTP 403. Empty means any source.
Allowed modelsA call to a model outside the list is rejected with HTTP 403 and the code model_not_allowed. Empty means all models.

Two things to know. The usage limit only caps that key's own usage, and your balance still applies on top of it. And an empty list means "no restriction" rather than "nothing allowed", so a key you meant to restrict is only restricted once you add entries.

A good pattern is to create a narrow key for each job and let the limits do the work. We describe how in our best-practices guide.

Old keys are flagged for rotation

Long-lived keys are a quiet risk, so the platform helps you notice them. In the API Keys list, an enabled key that has been in use for more than 90 days gets an "In use for N days, consider replacing" tag, and a banner above the list summarizes how many keys on the page are due. The banner also describes the safe order of operations: create a new key, update your applications, then delete the old one.

We may also send a reminder email to the key's owner, and for an organization's keys to the organization's owner. The email lists key names and dates. It never contains a key itself, and a genuine reminder has no reason to ask you to send one back. Treat any message that does as a scam. Because email delivery is not guaranteed and we deliberately cap how many reminders go out in a day, please do not rely on it: the tag in the list is the dependable signal.

Teams get their own controls

Organizations add a few protections that matter when several people share spend:

  • Each organization key has a named holder, and only the holder can use it.
  • Members see only the keys they hold and cannot change limits or delete keys. Owners and admins manage keys across the organization.
  • Removing a member disables every organization key that member held.
  • An append-only audit log records key creation, edits, enable and disable, deletion, member changes and invitations.

We cover these in more detail in our guide for teams.

What remains your responsibility

A platform can only protect what it controls. These parts are yours:

  • Where you store the key. Source files, chat messages, screenshots and logs are outside our reach.
  • Setting the limits. A key with no expiry, no usage limit and no model list is exactly as powerful as it looks. The limits exist, but you have to use them.
  • Rotating. We flag old keys. You replace them.
  • Securing the account that owns the keys. Anyone who can sign in to your account can create keys. Our account security guide covers passwords, login history and alerts.
  • Reacting quickly. If you suspect a leak, disable the key first and investigate second. The response checklist walks through the steps.

FAQ

Can support or an administrator tell me my key? No. The full key is shown only at creation. If you ever need a key you no longer have, create a new one.

Does a hash mean my old keys are safe if they leak elsewhere? No. The hash protects the copy we store. A key that has been exposed anywhere else, such as a repository or a chat, should be treated as compromised and replaced.

Do I get an email if my key leaks publicly? Do not count on one. Use secret scanning in your own repositories and watch your usage.

Takeaways

  • Keys are shown once and stored only as a one-way hash.
  • Expiry, usage limit, IP allowlist and model list are enforced on every request.
  • Keys older than 90 days are flagged so you remember to rotate them.
  • The remaining risk sits where the key is stored and how it is limited, and that is in your hands.

Ready to put this to work? Open the API Keys page, or read the documentation to see what a key can call.