Skip to main content

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 been given Route optimization access. That is granted per key by the Route4Green team and is not something you can enable 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.

How to get a key

Not by yourself, yet. Keys are minted inside the partner portal and that requires a signed in session, so there is no self service path for a developer. Request a trial and we will issue a test key by hand if your operation fits.

Request a trial

A self service portal and a test environment are planned. Neither has a release date.

Base URL

There is a single base URL, issued along with your key. The paths in this documentation are appended to it.

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

5 pages

The five guides below are written for integrators. A packaged SDK is planned and not released, so each page shows how to do the same thing over plain HTTP, which works today.

About this specification

This documentation is generated from a stored and reviewed OpenAPI snapshot, last updated on the date below. We do not fetch a fresh copy automatically, so a new internal endpoint added upstream cannot leak onto this site by accident.

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

46 endpoints in the file