Skip to content
← Back to the glossary

Platforms

API key

Also called: API token, access key

Updated November 9, 2026

Definition

An API key is a secret string of characters that identifies who sends a request to an API. The service checks it on every call to decide whether to answer and what that caller may do. It works like a password for software, so it must be kept private and revoked if it leaks.

An old brass key lying on a closed laptop on a clean desk

Frequently asked questions

What is an API key used for?

To prove who is calling an API. The service uses it to let in only known callers, apply the limits of their plan and trace what each one does. Without it, anyone could send requests.

Is an API key the same as a password?

Not exactly. A password identifies a person who signs in; an API key identifies a program. They are alike in one thing: both are secrets, and anyone who has the key can act as its owner.

Where should I store an API key?

In an environment variable or a secrets manager, never inside code you share, a screenshot or a chat. If you think it has leaked, revoke it and create a new one.

How does an AI agent use an API key?

You give the key to the agent's configuration, and the agent sends it with every request, usually in the Authorization header. From then on, the agent can do what that key allows.