Skip to main content
The FRYTE API plans routes for electric trucks. Given an origin, destination, and vehicle, it returns where and how long to charge — optimized for time, energy, and cost. All requests use the base URL https://api.fryte.eu.

Quickstart

Get started with your first route optimization.

Vehicles

Look up the Vehicle ID required for every planner request.

Examples

Sample requests and responses for common use cases.

Authentication

Every request must include your API key. Pass it in the Authorization header:
Authorization: Bearer <your-token>
Contact team@fryte.eu to obtain your API key.

How it works

The API is asynchronous. Submit a request, then poll for the result.
1

Submit your route

Send origin, destination, and vehicle to POST /planner/v2. You’ll receive a job_id to track progress and an optimization_id to fetch the result.
2

Check progress

Poll GET /planner/jobs/{job_id} to check whether the optimization has completed.
3

Get your optimized route

Key Concepts

Routing

The driving path between all stops.

POI Data

Charging stations along the route corridor.

Simulation

Predicts how the battery drains along the route based on vehicle, payload, and terrain.

Optimization

Decides where and how long to charge based on the simulation.