An API key is a secret string that identifies and authorises a calling application to a service, usually sent in a header with each request.
An API key is a long random string issued by a service to identify the account or project making requests and, often, to authorise what it can do. Unlike an OAuth access token it usually has no built-in expiry and no user consent step: whoever holds the string can use it. Services usually give you the key once in a dashboard, and some use recognisable prefixes, such as sk_live_ for a live secret key, to help scanners and humans tell keys apart. Keys are normally sent in an HTTP header, commonly Authorization: Bearer, or a custom header such as x-api-key. Because they are bearer credentials, the OWASP REST Security Cheat Sheet advises sending them only over HTTPS, never in URLs, which end up in logs, and limiting what each key can do. Good practice is to create separate keys per application and environment, restrict scope and source IP where the provider allows, keep them out of source control and client-side code, rotate them, and revoke any that leak. Public or publishable keys, meant for browsers, are a different category from secret keys and should be treated accordingly. BotPassword stores API keys encrypted and let agents use them via intents without receiving the values.