API Reference¶
The Flio.ai API reference documentation contains detailed information about all endpoints, parameters, and response models.
Endpoints¶
| Method | Endpoint | Description |
|---|---|---|
| POST | /solver/route |
Calculates an optimized route between two points |
| POST | /solver/optimize |
Optimizes multi-vehicle distribution problems |
Authentication¶
Solver endpoints require authentication. Pass the API key using the canonical
api_key query parameter:
Request Format¶
All endpoints accept a JSON request body:
curl -X POST "https://api.flio.ai/solver/route?api_key=YOUR-API-KEY" \
-H "Content-Type: application/json" \
-d '{
"origin": {"latitude": 41.0082, "longitude": 28.9784},
"destination": {"latitude": 41.0150, "longitude": 28.9850}
}'
Response Format¶
All endpoints return JSON. Successful requests return HTTP 200; errors return the appropriate HTTP status code.
Endpoint References¶
- Route API — Point-to-point route calculation
- Optimize API — Multi-vehicle fleet optimization
API reference documentation — Flio.ai