How to use our APIs
Before you can explore our APIs, you need to sign up first. We provide different API products, for example booking, messaging, equipment, schedule, route proposals, etc. Depending on your needs you can subscribe to different API products. All subscriptions to API products need to be approved by Transfennica. Once approved you will receive API keys for each API product.
In your profile menu on the top of the page you will find all your API keys. For each product a primary and backup API key are provided. The backup key can typically be used for your testing environment. The API keys do not expire, but can be limited on a policy. For example a request rate policy.
For each request you have to provide a valid API key in the header of the request. The API key is given as the Ocp-Apim-Subscription-Key like in the example to the right.
POST https://api.transfennica.com/v1/echo HTTP/1.1
Content-Type: application/jsonCache-Control: no-cache
Each endpoint has it's own documentation. You can find the documentation by exploring the API's from the product or API menu on the top of the page. API definitions can also be downloaded in the Open API JSON or YAML format.
A TRY button is provided on each API to explore the result with your own input values. Your primary Ocp-Apim-Subscription-Key is automatically provided in the header.