An API key is a unique identifier used to authenticate requests to an application programming interface. API keys are commonly used for programmatic access, rate limiting, and usage tracking. They are the simplest form of machine authentication but carry significant security risks when mismanaged.