API Key Module

In this section of the documentation, you will find resources to learn more about the API Key Module and how to use it in your application.

Looking for no-code docs? Refer to the Medusa Admin User Guide to learn how to manage publishable and secret API keys using the dashboard.

Medusa has API-key related features available out-of-the-box through the API Key Module. A module is a standalone package that provides features for a single domain. Each of Medusa's commerce features are placed in Commerce Modules, such as this API Key Module.

Note: Learn more about why modules are isolated in this documentation.

API Key Features#

  • API Key Types and Management: Manage API keys in your store. You can create both publishable and secret API keys for different use cases.
  • Token Verification: Verify tokens of secret API keys to authenticate users or actions.
  • Revoke Keys: Revoke keys to disable their use permanently.
  • Roll API Keys: Roll API keys by revoking a key then re-creating it.