Production keys are issued by InStockRx. There is no self-serve sign-up for production: you ask by email, and we set your integration up for you.

Before you ask

  • Build and test it in the sandbox. Production behaves the same as the sandbox, with real consequences: a listing is a genuine offer to sell and a cash offer is a genuine offer to buy.
  • Each pharmacy you sell or buy for must have finished payment setup on InStockRx. Until it has, writes made for that pharmacy are refused.

Ask for access

Press the button to see our address. Write the email opens your email app with the subject and these headings filled in:
  • Who you are: your company, and the person who will hold the key.
  • What you’re building: what the integration does, and whether it uses V1, V2 or both.
Write from an address at your company, so we can tell who you are.

What happens next

1

We reply

Someone at InStockRx replies to agree the details of your integration with you.
2

We create your group

Your group is the set of pharmacies your key can act for.
3

We issue your key

We either send the key to your technical contact, or invite them to your group as an administrator so they can reveal and copy it on InStockRx themselves.
4

You switch over

Point your integration at https://api.instockrx.com with the production key, add your pharmacies to your group by NPI through the API, and confirm that the pharmacies returned are the ones you expect.
Keys are per environment. A sandbox key does not work in production, and a production key does not work in the sandbox.

Your key

A production key starts ik_live_ and can act for every pharmacy in your group.
Ask for the scopes you need, not all of them. A key issued without further instruction holds every scope. If your integration only reads, say so and we will issue a read-only key: a key that cannot write cannot list real inventory on the live marketplace, which makes a leak far less damaging. See Scopes. Sandbox keys always hold every scope.
To rotate, narrow or revoke a production key, email the same address.
  • Rotation overlaps. The new key carries the old key’s scopes, and the old one keeps working for 24 hours. Deploy the new key, confirm traffic has moved, and let the old one lapse.
  • Revocation is immediate. If a key has leaked, say so in the subject line and we will revoke it. Don’t wait to arrange a replacement first.

Next

Start in the sandbox

Sign up, get two test pharmacies and a key, and build your integration.

Environments

Base URLs, key prefixes, and what changes between the sandbox and production.