Keys and limits
A key acts for the business with what it’s allowed, so keep it like a password. Routr keeps only a scrambled copy and can’t show it again. Lost one? Replace it: the new key has the same name and permissions, and the old one keeps working 24 hours (or 1 hour, or stops at once). A key never stops working unless whoever made it gave it an end date.
| A key may | Which calls |
|---|---|
| Add, change and remove stops | POST PATCH DELETE /v1/stops |
| Send routes | POST /v1/routes/{id}/send, /take-back, /stops; DELETE /v1/routes/{id} |
| Read stops, routes and proof | GET /v1/stops, /v1/routes, /v1/fields; proof links on delivered stops |
| Customers | GET PATCH /v1/customers |
| Couriers and hubs | GET /v1/couriers, /v1/hubs |
Each key makes up to 10 calls a second (20 at once, 600 a minute). Past that the answer is 429 with Retry-After in seconds. A connection that tries 30 wrong keys in an hour is refused for the rest of the hour; a working key is never refused for it.