What is an API key?
Definition
An API key is a value that an application includes when calling a service’s application programming interface (API). Depending on the provider, it can identify a project or account, associate usage with its owner, or authorise access to particular resources. A key does not necessarily identify the individual using the application.
Keys may also determine which account pays for usage or which quotas apply. Treat keys that grant access as credentials: keep them private and revoke them if exposed.
Why it matters
A key connects software activity to a particular provider account, which can affect access, quotas and billing. Using a colleague’s personal key for a shared business tool can create problems when they leave, lose access or change their account settings. A clearly owned organisation account makes those responsibilities easier to manage.
Before connecting a service, establish a few practical details:
- Which account owns the key, and who receives its usage bill?
- What can the key access, and can those permissions be restricted?
- Who can replace or revoke it if access needs to change?
These questions help separate the subscription for an application from any usage charges incurred through a connected provider.