What the Market Rates API returns, how to get a key, and what to know about batching, caching and test data before you build.
The Market Rates API puts the same Low, Mid and High band you see in the app into your own TMS, pricing tool or quoting screen. You send a lane, and you get back a weekly series of rates, one entry per week with its own confidence label. Each entry is built from the 12 weeks of bids up to that week, and the newest one is what the app shows. The full reference is at docs.cargado.com.
Keys are created by the Cargado team. Email success@cargado.com, name the integration, and ask for the market rates permission. See Get an API key for your integration for how keys work and how to keep them safe. Send the key in an api-key header on every request to https://api.cargado.com.
Call POST /rates/history with a requests list of 1 to 16 lanes. Each lane needs:
Add currency (USD, MXN or CAD) to the request. It defaults to USD.

Results come back in the same order as your requests. Each one succeeds or fails on its own, marked DATA or ERROR, so one bad lane does not sink the batch. A DATA result includes:
suggestedRates, allInRates and perMileRates: one entry per week, oldest first. Each has p25, p50 and p75 in cents or centavos, plus margin of error and confidence.latestSuggestedRate: the figure the app shows as Low, Mid and High.Weeks without enough data are left out. If a lane has none, you get an ERROR result with code RATE_HISTORY_NOT_FOUND.


Ask the Cargado team for access to the sandbox at https://api.sandbox.cargado.com. Sandbox returns simulated rates, so use it to test your integration, never to quote.
Every POST /rates/history call is recorded as a lookup and counts toward the same monthly allowance as lookups in the app and in Excel. If you send the exact same request again in the same week, Cargado returns the earlier result instead of creating a new lookup. You can also fetch a saved lookup by its id with GET /rates/history/{id}. See Plan limits, and what the usage warning emails mean.
Important: where docs.cargado.com and this article differ, go by this article: a request holds up to 16 lanes, and weekly rates come back oldest first.
Email us and a person on our team will answer. Send the posting link or a screenshot if you have one.