API key
A secret credential that identifies a program when it calls an API on your behalf.
Definition
An API key is a long secret string that a program sends with each request to prove it is allowed to use an API. It acts on behalf of the account that created it, so it should be treated like a password.
Good practice is to give each key only the permissions it needs, keep it out of shared code, and revoke it as soon as it is no longer used or may have leaked.
Example
Creating a read-only key for a reporting script and a separate key for the tool that creates posts.
Related terms
- REST APIA way for software to talk to a service over the web using standard requests to named addresses.
- Model Context Protocol (MCP)An open standard that lets AI assistants connect to outside tools and data in a consistent way.
- WebhookA message a service sends to an address you choose as soon as something happens.