A publishable key is an API key that a provider designs to be safe in client code, such as a web page or a mobile app, because it has limited permissions. It can identify an application to the provider and allow only a narrow set of actions, while the powerful operations require a separate secret key kept on a server.

It matters because it clears up a common source of confusion. Not every key found in a website's code is a leak: some are meant to be public. Telling the two apart helps teams focus on the credentials that really must be protected.

A publishable key is not harmless. It can usually be used by anyone who copies it, so abuse such as running up usage or sending unwanted requests is still possible, and its permissions are only as limited as the provider and the configuration make them. Providers use different names, and a key that looks similar may be a secret.

To use these keys safely, check the provider's documentation to confirm which keys are meant to be public, restrict them by domain or by action where possible and keep secret keys on the server.