Skip to main content
Docs menu

API documentation

These 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.

Authentication

Which scheme applies depends on the endpoint group, not on your key. Every operation page states what it accepts, under authentication required.

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_KEY

JWT token

The other groups use this. Send the token in the Authorization header as a Bearer token. Tour planning accepts either.

Authorization: Bearer YOUR_TOKEN

What a key needs before route optimisation will answer

Three 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.

  • The key is valid and has not expired.
  • The key has Route optimization access. Trial keys created in the sandbox have it from the start. On a production key, the Route4Green team grants it key by key, and you cannot enable it yourself.
  • The feature is switched on server side. That is a global switch rather than a per account setting, so a fully entitled key can still be refused.

Never put a key in code that runs in a browser or a mobile app. Keys belong on your own server.

Two ways to get a key

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 key

To see routing results before you integrate, try the demo at sandbox.route4green.com.

Base URL

All keys use the base URL below. The paths in this documentation are appended to it.

https://api.route4green.com/api/v1/partners

The 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.

Endpoint groups

8 groups

Guides and SDK

6 pages

The six guides below are written for integrators. There is no packaged SDK, so each page shows the steps over plain HTTP.

About this specification

This documentation is generated from a stored OpenAPI snapshot, last updated on the date below. Every update is reviewed before it is published.

Updated

Download the partner specification

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.

Download the JSON

54 endpoints in the file

API documentation | Route4Green