Handle Metrc API rate limits and per-state differences

domain: api-ca.metrc.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Create packages from a harvest in Metrc — endpoint, tag rules, and the 10-object cap — the full failure-mode walkthrough related to api-ca.metrc.com, checked against official docs, with linked verified routes.

Steps

  1. Expect rate limiting to be applied per facility license number for most endpoints, and per API key for the small number of endpoints that don't take a license number.
  2. Handle HTTP 429 responses with backoff, checking for a Retry-After header, which Metrc notes is present in certain cases but not guaranteed on every response.
  3. Handle HTTP 413 responses separately from 429s; this indicates you exceeded the 10-object cap on an array-based POST/PUT/DELETE call and requires splitting the batch, not retrying with delay.
  4. Do not hardcode a specific requests-per-minute number; Metrc does not publish exact numeric limits, since they depend on your account's contract and tier.
  5. Reduce call volume by batching multiple objects per request and using webhooks instead of polling where your tier supports them.
  6. Verify which optional modules (for example patients/caregivers or retail delivery) are active for a given state before relying on their endpoints, since availability varies by state.

Known gotchas

Related routes

Route Tesla Fleet API calls to the correct regional endpoint and stay within per-minute rate limits for a multi-region fleet
developer.tesla.com · 5 steps · unrated
Handle Discord API rate limits: parse X-RateLimit headers, respect 429 retry_after, and avoid Cloudflare bans
discord.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans