Orchestrator
/v1/orchestrator/runRun Orchestrator
Runs an orchestration phase and returns a proposed assignment plan without committing changes. Use options.engine to force an engine such as vroom, capacity, or greedy; otherwise Fleetbase uses the orchestrator engine configured in admin settings.
For normal route-aware VROOM allocation, send options.engine: "vroom" and omit allocation_strategy or set it to route_aware. Vehicles must have usable positions because VROOM will solve against route coordinates.
For capacity-only VROOM allocation, send options.engine: "vroom" and options.allocation_strategy: "capacity_only". This mode answers which vehicles can carry the selected orders by weight, volume, pallets, parcels, skills, and task limits without requiring vehicle locations. Use options.vehicle_packing: "minimize_vehicles" to bias VROOM toward filling feasible vehicles before opening another vehicle; use balanced or none to disable that packing bias.
For Fleetbase's deterministic built-in capacity allocation, send options.engine: "capacity". This native engine is useful as a fallback and debugging baseline for capacity-only allocation without VROOM.
The consumable API accepts and returns public IDs only. Use order_ids, vehicle_ids, driver_ids, prior_assignments.*_id, and response *_id values as public IDs. Do not submit internal UUIDs.
/v1/orchestrator/runcurl -X POST https://api.fleetbase.io/v1/orchestrator/run \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"mode": "assign_vehicles",
"order_ids": ["{{order_id}}"],
"vehicle_ids": ["{{vehicle_id}}"],
"driver_ids": [],
"prior_assignments": [],
"options": {
"engine": "vroom",
"allocation_strategy": "route_aware",
"geometry": false,
"respect_capacity": true,
"respect_skills": true,
"return_to_depot": false
}
}'{
"assignments": [
{
"order_id": "order_7YqM3KpL2n",
"vehicle_id": "vehicle_Q1w2E3r4T5",
"driver_id": null,
"sequence": 1,
"arrival": 1778918400,
"duration": 900,
"distance": 4200
},
{
"order_id": "order_8AkN4LqP9x",
"vehicle_id": "vehicle_A9s8D7f6G5",
"driver_id": null,
"sequence": 1,
"arrival": 1778919300,
"duration": 780,
"distance": 3600
}
],
"unassigned": [],
"summary": {
"engine": "vroom",
"allocation_strategy": "route_aware",
"cost": 7800,
"routes": 2,
"unassigned": 0,
"duration": 1680,
"distance": 7800
}
}/v1/orchestrator/commitCommit Orchestrator Plan
Commits a proposed orchestrator plan by creating manifests and applying vehicle and driver assignments to orders. Assignment records must use public resource IDs.
This endpoint is engine-agnostic: commit the assignments returned by route-aware VROOM, VROOM capacity-only, native capacity-only, or multi-phase orchestration runs. Do not submit internal UUIDs or database IDs.
scheduled_datedateoptionalManifest scheduled date. Defaults to the current date when omitted.
assignmentsarray of objectsoptionalProposed assignment records to commit. All IDs are public resource IDs.
order_idstringoptionalPublic order ID.
vehicle_idstringoptionalPublic vehicle ID.
driver_idstringoptionalPublic driver ID, when a driver is assigned.
sequenceintegeroptionalStop sequence for the order within the vehicle route.
arrivalintegeroptionalEstimated arrival time as a Unix timestamp.
durationintegeroptionalDuration from the previous stop in seconds.
distanceintegeroptionalDistance from the previous stop in meters.
waypoint_sequencearray of stringsoptionalOptional ordered waypoint public IDs for multi-stop route updates.
/v1/orchestrator/commitcurl -X POST https://api.fleetbase.io/v1/orchestrator/commit \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"scheduled_date": "2026-05-16",
"assignments": [
{
"order_id": "{{order_id}}",
"vehicle_id": "{{vehicle_id}}",
"driver_id": "{{driver_id}}",
"sequence": 1,
"arrival": 1778918400,
"duration": 900,
"distance": 4200
}
]
}'{
"committed": [
"order_7YqM3KpL2n"
],
"failed": [],
"manifests": [
"manifest_P9qR8sT7uV"
]
}