Definition
API key: A secret value that software uses to identify itself to an API; store it like a password and rotate or revoke it when needed.
Also known as: access key, secret key
An API key is the secret value that software sends with every request to tell an API who it is; it usually travels in the Authorization header. A key belongs to an application or integration rather than a person, and it should be guarded like a password: whoever gets hold of it can do everything it allows.
In a good setup, a key is shown only once, when it is created, and the server stores a hash of it rather than the key itself. The key is not written into code or a code repository, and not put in code that runs in a browser; it lives in a secret store or a server environment variable. Each key is created with scopes that allow only the work it needs.
Keys are rotated regularly, and at once if anything looks wrong: the new key goes into service and the old one is revoked. Renewing the key when the person who wrote the integration leaves is also a good habit.
Example
A developer accidentally pushes an API key to a public code repository. Thanks to the key's recognizable prefix, a secret scanner flags it. The team creates a new key, changes the setting on its server and revokes the leaked one.
In UPPU
UPPU stores only a SHA-256 hash of each API key. You can give a key scopes, bind it to a single channel, set an IP allowlist and an expiry, and rotate or revoke it. More on the developer page.