Access Keys

In this guide, you'll learn how to create and manage access keys to authenticate with Cloud APIs.

What are Access Keys?#

Access keys are API credentials that allow you to authenticate with Cloud services programmatically. They provide secure access to your Cloud resources without requiring interactive login.

Access keys are useful when using the Medusa Cloud CLI in non-interactive environments such as CI/CD pipelines, server scripts, or when you want to avoid opening a browser for authentication.

Cloud supports two types of access keys:

  • Organization Access Keys: Provide access to organization-level resources and settings.
  • Personal Access Keys: Provide access to your personal account resources and any organizations you belong to.

Manage Organization Access Keys#

Organization access keys allow API access to organization-level resources such as projects, environments, and billing information. These keys can be managed by any organization member.

To manage organization access keys:

  1. Open your organization's settings.
  2. Click on the Org Access Keys tab in the sidebar.

From this page, you can view all organization access keys, including their names, redacted key previews, and creation dates.

Create Organization Access Key#

To create a new organization access key:

  1. In the Organization Access Keys page, click Create Access Key.
  2. In the modal that appears, enter a Name for your access key. Choose a descriptive name that helps you identify the key's purpose.
  3. Click Create.

After creation, the full access key token will be displayed with a copy button. Make sure to copy and store this token before closing the modal, as it won't be shown again.

Rename Organization Access Key#

To rename an existing organization access key:

  1. In the Organization Access Keys table, find the key you want to rename.
  2. Click the button in the key's row.
  3. Select Rename from the dropdown menu.
  4. Enter the new name and click Save.

Delete Organization Access Key#

Warning: Deleting an access key will immediately revoke API access for any applications or scripts using that key. This action cannot be undone.

To delete an organization access key:

  1. In the Organization Access Keys table, find the key you want to delete.
  2. Click the button in the key's row.
  3. Select Delete from the dropdown menu.
  4. Confirm the deletion in the popup.

Manage Personal Access Keys#

Personal access keys provide API access to your individual account resources and all organizations you have access to. These keys are private to your account and can only be managed by you.

To access your personal access keys:

  1. Open your organization's settings.
  2. Click on the Personal Access Keys tab in the sidebar.

From this page, you can view all your personal access keys, including their names, redacted key previews, and creation dates.

Create Personal Access Key#

To create a new personal access key:

  1. In the Personal Access Keys page, click Create Access Key.
  2. In the modal that appears, enter a Name for your access key. Choose a descriptive name that helps you identify the key's purpose.
  3. Click Create.

After creation, the full access key token will be displayed with a copy button. Make sure to copy and store this token before closing the modal, as it won't be shown again.

Rename Personal Access Key#

To rename an existing personal access key:

  1. In the Personal Access Keys table, find the key you want to rename.
  2. Click the button in the key's row.
  3. Select Rename from the dropdown menu.
  4. Enter the new name and click Save.

Delete Personal Access Key#

Warning: Deleting an access key will immediately revoke API access for any applications or scripts using that key. This action cannot be undone.

To delete a personal access key:

  1. In the Personal Access Keys table, find the key you want to delete.
  2. Click the button in the key's row.
  3. Select Delete from the dropdown menu.
  4. Confirm the deletion in the confirmation dialog.
Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Medusa MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break