Skip to main content

Generating a New Metrc API Key

Learn how to generate a new Metrc API key when errors occur or you're setting up a new shop. Pitfalls to consider when generating a new key.

Written by Treez Support

Confirming Permissions and Generating a New Key

  1. Sign into your Metrc account using your credentials.

  2. Confirm that you have the necessary permissions. Visit 'Admin' in the top menu, then click 'Employees'. From here, find yourself and click 'Edit Employee' to check permissions. You'll want to be able to manage all of the permissions available.

  3. After confirming the permissions, Click the down arrow next to your username or Badge ID in the upper right corner.

  4. Choose API Keys from the dropdown.

  5. Under Current API Key, copy the key exactly as displayed or select Generate if one doesn’t already exist.

Generating a new API key under your account will invalidate any previous API Key for your users. If you are generating a new key that you use across multiple locations, you'll need to follow the next steps to upload the key for each environment.


Updating Your METRC API Key for Existing License(s)

  1. Login at app.treez.io

  2. Navigate to "Organization Settings" by hovering or clicking the collapsed primary navigation menu on the left side of your screen. Organization Settings will be at the bottom of the menu.

    Image of Organization Settings in the primary navigation menu
  3. By default, users will land on Organization Management after clicking Organization settings.

  4. Click the 3 vertical dots to the left of the store you wish to configure a license for.

    Image of Organization Management with the 3 vertical dots icon highlighted
  5. Select Edit Info from the available options.

    Image of available options with Edit Info highlighted
    1. If you do not see “Edit Info” you may be missing the Organization Management > Edit Stores permission. Navigate to Role Management to add this permission to your role.

  6. Navigate to the “Customer type and license” screen by clicking it from the left-hand menu or by clicking the “Next” button at the bottom right of the screen.

    Image of left hand menu with Customer type and license highlighted

  7. Click the "Edit Credentials" button in the METRC section of the State Tracking & License Credentials panel.

    Image of the State Tracking & License Credentials panel with the Edit Credentials button highlighted

  8. In the Edit METRC Credentials popup, enter your new METRC API Key in the METRC API Key input.

    Image of the Edit METRC Credentials popup with the METRC API Key input highlighted

  9. Click the "Fetch License" button to check the license(s) associated with the new METRC API Key.

    Image of the Edit METRC credentials popup with the new API key input and the Fetch Licenses button highlighted

  10. Ensure the current licenses associated with this Treez have the Use this license checkbox checked and click the Verify & Save button.

    Image of the Edit METRC Credentials popup populated with the stores METRC licenses and the Use this license checkboxes checked and the Verify & Save button highlighted.

  11. Once the correct license information has been saved, click the “Next” button at the bottom right of the page.

  12. Click the “Save” button at the bottom right of the following page.

    Image of the business hours section withSsave button in bottom right of the image.

You will receive an “Entity Saved” popup confirmation once the updates to your store have been applied.

Image of the Entity Saved confirmation

Remember, If you have multiple locations and generate a new API key, you'll need to navigate to each location and save the new API key in each one.

Did this answer your question?