Glossary
API key
Definition
API key: A secret string an application sends with requests to identify itself to an API, so the provider can allow, meter or block it. API keys are usually long-lived and not tied to a person, so they should be kept out of source code, scoped to one use and revoked as soon as they leak.
Also known asAPI tokenapplication keydeveloper key
In short
An API key is a secret string an application sends with each request to identify itself to an API, so the provider can allow, meter or block it. API keys usually never expire and aren't tied to a person, so OWASP advises not to rely on them alone for sensitive data. Keep them out of code and front-end apps, give each use its own key, and revoke and replace a key the moment it leaks.
Key takeaways
- An API key identifies a calling app or project, not a signed-in person.
- Keys are usually static and long-lived, so a leaked key keeps working until someone revokes it.
- OWASP warns against relying only on API keys for sensitive or high-value resources.
- Never commit keys to source code or ship them inside web or mobile apps.
- Use one key per integration so you can revoke one without breaking the rest.
Last reviewed 4 December 2026 by Foxcolab Team
An API key is a secret string an application sends with each request to identify itself to an API. The provider uses it to decide whether the caller may use the service, to count its usage against a plan and to cut it off if it misbehaves. A typical call looks like this:
curl https://api.example.com/v1/reports \
-H "X-API-Key: demo_7f3a9c2e51b84d06"API key or access token?#
An API key identifies a project or an app. An access token represents a person's sign-in, carries a scope and expires within hours or days. Most API keys never expire on their own, and anyone who copies one can use it from anywhere. OWASP's REST Security Cheat Sheet says to "require API keys for every request to the protected endpoint," return 429 Too Many Requests when a key calls too fast, and revoke keys that break the rules. It also warns: "Do not rely exclusively on API keys to protect sensitive, critical or high-value resources."
How keys leak#
The OWASP Non-Human Identities Top 10 lists secret leakage and long-lived secrets among the top risks. The usual paths:
- Committed to Git. Deleting the file later doesn't remove it from the repository's history.
- Shipped in a web page or mobile app. Anything in front-end code can be read by every user.
- One key everywhere. If the billing job and the website share a key, revoking it breaks both, so nobody revokes it.
Store keys in a secrets manager, give each integration its own key with the fewest permissions, and replace a key the moment it shows up somewhere it shouldn't.
In Foxcolab#
People sign in to Foxcolab, and the apps use access tokens tied to a session you can end from Your devices, so there's no long-lived personal API key on your account to leak. When Foxcolab hands a developer a secret, it treats it like one. In Foxcolab Forms, adding a webhook under Integrations shows its Signing secret once: "This is the only time we show it." Your server uses it to check that each delivery really came from Foxcolab Forms. If it leaks, New signing secret replaces it, and "the current secret stops working right away." See Send form responses with webhooks, or create a free account.
Keep exploring
Related terms
- Secrets managementSecrets management is how an organization stores, hands out, rotates and audits the passwords, keys and tokens its systems run on. Here's what OWASP recommends and where teams slip.
- Service accountA service account is an account used by software rather than a person, such as a backup job or an integration. Here's why they're easy to forget and how to keep them in check.
- Access tokenAn access token is the short-lived credential an app sends with each request instead of your password. Here's what it holds, how long it should last and what ends it.
- Bearer tokenA bearer token works for anyone who holds it, like cash. Here's how RFC 6750 says to send one, the mistakes that leak them and how servers limit the damage.
- Key rotationKey rotation replaces an encryption key with a new one, on a schedule or after something changes, so a leaked or shared key exposes less. It protects what comes next.
- Principle of least privilegeLeast privilege means every person, program and process gets only the access its current task needs, for only as long as it needs it.
Where Foxcolab uses it

Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.