Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fryte.com/llms.txt

Use this file to discover all available pages before exploring further.

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.

Quickstart

Submit a route and get an optimized charging plan.

Vehicles

Look up the Vehicle ID required for every planner request.

Examples

Sample requests and responses for common use cases.

Base URL

All API requests use the following base URL:
https://api.fryte.eu

Authentication

Include your API key as a Bearer token in the Authorization header:
Authorization: Bearer <your-token>
Contact team@fryte.eu to obtain your API key.

How it works

The API is asynchronous. Three steps:
1

Submit a route

POST /planner/v2 — returns a job_id and optimization_id (HTTP 202).
2

Poll for completion

GET /planner/jobs/{job_id} — repeat until status is succeeded.
3

Retrieve the result

GET /planner/optimizations/{optimization_id}/result — the optimized route with charging stops, battery levels, and toll costs.

Key Concepts

Routing POI Data Simulation Optimization