Start with Identity
← Glossary
Concept

API Key

A static secret string used to authenticate an application or caller to an API. Simple but weak: it does not expire on its own, is easy to leak, and should be vaulted and rotated.

API keys persist because they work on the first try and require no library, and they cause incidents for the same reason: they get committed to repositories, pasted into config files, and shared between services until nobody knows what would break if you rotated one. GitGuardian found thousands of live automation-platform tokens in public commits in 2026. Anything that can be replaced with a short-lived, scoped, workload-issued credential should be.

See also: secrets management, non-human identity, secrets rotation, workload identity

Last reviewed By SWI Community TeamSuggest a correctionHow we research