Both serve the same v1 contract — the same endpoints, request shapes and response schemas. Build against the sandbox, then change the base URL and the key.
The sandbox host changed. These pages previously named test-instockrx-api.azurewebsites.net, which is restricted to allowlisted addresses and answers 403 Ip Forbidden to everyone else. sandbox-api.instockrx.com is reachable, serves both v1 and v2, and is the one to build against. If you were given the old host and could never reach it, that is why.
Keys are per environment. A sandbox key returns 401 against production and vice versa. Sandbox access is self-serve; production keys are issued by us.

Working in the sandbox

The sandbox is where you should develop. A listing you create there is not visible to real pharmacies and cannot be bought with real money. It is a separate copy of InStockRx with its own accounts and simulated payments — see Sandbox onboarding for how to get in and what your starter kit contains. Two things to know about it:
  • You will see records you didn’t create. Other partners test here, and every day the newest pending production listings and cash offers are copied in, attached to demo pharmacies. Filter by your own pharmacies.
  • It carries no stability guarantee. It can receive changes ahead of production, and it is not covered by an uptime commitment. It is for development, not for a demo you can’t reschedule.

Moving to production

Production behaves identically, with real consequences: a marketplace listing is a genuine offer to sell, and a cash offer is a genuine offer to buy.
1

Request a production key

Email us. See Production access.
2

Confirm your group

Call GET /api/v1/pharmacies/search against production. The pharmacies returned are the ones you can act for — the list may differ from your sandbox group.
3

Switch the base URL

Nothing else in your integration needs to change.
Build the base URL and the key as configuration, not constants. You will move between these two environments more than once.