Menu
Engineering

Safety & permissions

API key

Also called API keys.

In plain English

An API key is a credential an application sends so an API can identify or authorize the caller.

Example

A server keeps its secret key in its secret store and never sends it to the browser. A map on the public page uses a separate browser key, restricted to that website and the map APIs it needs.

Why it matters

Many API keys are secrets. They belong on a server or in a secret store, never in a public page, a screenshot, or a chat transcript. Some providers also issue keys meant for browser use, locked down with restrictions such as an approved website or a list of allowed APIs.

Follow the provider’s instructions for that key type. A publishable key from one service says nothing about a secret key from another.

Common confusion

An API key is not an AI token. A browser key still needs restrictions, and no key belongs in a prompt or a chat with a bot.

Sources

Updated October 1, 2026.

Cookie preferences