Skip to main content

Generating a New Metrc API Key

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
Updated today

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 render previous API keys outdated. 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.


Uploading your API key in Treez

  1. Sign into your Treez environment

  2. Select your location from the left-side menu bar.

  3. Navigate to the left-side menu, "Configuration > Config Page > Integrations > Metrc API Key & State Tracking Licenses"

  4. Paste the API key here, and click Check Licenses to confirm your license is pulled through from Metrc.

  5. Hit 'Save' above the 'Check Licenses' button.

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?