API key
Definition
An API key identifies access to an interface and can, depending on the service, enable or assign usage.
An API key is a value issued by the service that is sent with interface requests. For example, it can identify a project for usage quotas or billing. Whether it also conveys permissions depends on the service; a key does not fundamentally prove a person's identity.
Simply explained
The service recognizes from a sent key which access or project a request should be assigned to.
Why it matters in practice
Key management is important to limit unwanted usage, costs, and access, and to clearly define responsibilities for interfaces.
Example from business
Example: A company uses its own restricted key for an internal integration and monitors the usage billed through it.
Limits and pitfalls
- Secret keys do not belong in publicly accessible code. Restrictions, replacement options, and specific permissions must be checked with the respective provider.
Origin & history
API keys belong to technical access control. They differ from personal logins and from delegated authorization procedures.
Use in mid-sized companies
- Companies can manage keys per application or purpose, document responsibilities, and limit required permissions as narrowly as possible.
Frequently asked questions
Does an API key always identify a user?
No. For some services, it only identifies a project or an application; additional authentication may be required.
Sources
- API keys overview. · Google Cloud (o. J.): API keys overview.
Editorially reviewed on: