Skip to main content

Environments and keys

EnvironmentBase URLKey prefix
Productionhttps://justlabs.health/api/v1jl_live_...
Sandboxhttps://labify-staging-3hnx3fg7ca-uc.a.run.app/api/v1jl_test_...

Keys are environment-scoped: a jl_live_ key against the sandbox host, or a jl_test_ key against production, is rejected with 401 { code: "wrong_environment" } before any other check runs. Keys are issued by JustLabs and should be stored in a secret manager, never checked into source control.

Important — the sandbox places real orders in the lab's test environment (Quest Diagnostics' own test system). It is not a mock. Use a Kansas City, MO or Dallas, TX patient address for every test order — these are the only addresses that route correctly in the lab's test environment. Orders created with other states may fail placement, or bounce off the restricted-state list (NY, NJ, RI, HI — a fixed, deterministic set, not random).

Production requires a signed BAA on file for the partner before live keys can be minted; contact support@justlabs.health to get set up.