API keys
All requests to the Pharmachain Partner API must include your API key as a Bearer token in theAuthorization header.
Environments
Pharmachain provides two environments. Use sandbox while building and testing — no real pharmacy orders will be placed.Sandbox
https://sandbox-api.pharmachains.ai/v1Safe for development and testing. Returns realistic mock data.
No real pharmacies or fulfilment involved.Production
https://api.pharmachains.ai/v1Live environment. Requests are routed to real verified pharmacies
and fulfilled end-to-end.Your sandbox and production API keys are different. You’ll find both
in the Partner Portal under Settings → API keys.
Key rotation
You can generate a new key at any time without downtime.How to rotate your API key
How to rotate your API key
- In the Partner Portal, go to Settings → API keys.
- Click Generate new key — your existing key stays active.
- Update the key in your production environment variables.
- Confirm the new key is working.
- Revoke the old key.
Scopes
Each API key can be scoped to specific permissions. When generating a key, select only the scopes your integration requires.Error reference
Rate limits
If your integration requires higher production limits, contact your
Pharmachain account manager at support@pharmachains.ai.

