API key
Route optimisation uses this. Send the key in the api-key header on every request. Every route optimisation endpoint in this documentation takes an API key and never a bearer token.
api-key: YOUR_KEYThese are the endpoint groups intended for integration partners. The documentation is generated from a version-pinned OpenAPI snapshot and never calls the live operational system.
Scope of this documentation
This site publishes partner-facing endpoint groups only. Anything belonging to internal TMS operations is outside the public documentation and will not appear here.
Which scheme applies depends on the endpoint group, not on your key. Every operation page states what it accepts, under authentication required.
Route optimisation uses this. Send the key in the api-key header on every request. Every route optimisation endpoint in this documentation takes an API key and never a bearer token.
api-key: YOUR_KEYThe other groups use this. Send the token in the Authorization header as a Bearer token. Tour planning accepts either.
Authorization: Bearer YOUR_TOKENThree things have to be true at once. If any one of them is not, the request is refused, and the code you get back is in the error section below.
Never put a key in code that runs in a browser or a mobile app. Keys belong on your own server.
Trial key: create it yourself on the API keys page of your sandbox account. The full key is shown only once, when you create it, and you can revoke it at any time. Production key: the Route4Green team issues it after talking with you.
Request an API keyTo see routing results before you integrate, try the demo at sandbox.route4green.com.
All keys use the base URL below. The paths in this documentation are appended to it.
https://api.route4green.com/api/v1/partnersThe test and production environments share that base URL and are told apart by the key you send, not by a different path. Switching environment means switching key, not reconfiguring a host.
8 groups
Create optimisation jobs, track their status, and read results. This is the core of Route4Green.
15 endpoints
Create and adjust daily tour plans, assigning vehicles and drivers to runs.
6 endpoints
Push orders and drop points into the system so they enter the optimisation problem.
7 endpoints
Pool transport requests so the optimisation core can decide how to combine them.
5 endpoints
Declare vehicles, payloads, and the operating attributes of your fleet.
6 endpoints
Per-vehicle availability, so results match the fleet you actually have.
7 endpoints
Subscribe to events instead of polling for them.
5 endpoints
Create, list, and revoke access keys per integration.
3 endpoints
6 pages
The six guides below are written for integrators. There is no packaged SDK, so each page shows the steps over plain HTTP.
There is no package to install. Generate a client from the downloadable specification.
Submit a job and collect the result, end to end.
Send the key in the api-key header.
Six states, four of them terminal, and when to stop.
Verify before you trust, and verify against the raw body.
Map whatever system holds your data onto the one route optimisation job body.
This documentation is generated from a stored OpenAPI snapshot, last updated on the date below. Every update is reviewed before it is published.
The JSON below contains exactly the endpoints that appear in this documentation, plus the data shapes they reference. Internal operations are filtered out rather than hidden, so you can feed this straight to a generator.
54 endpoints in the file