Foxcolab

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:

Shell
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

All terms

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.

Jump to