Onfleet Route Optimization API
The Route Optimization API from Onfleet — 5 operation(s) for route optimization.
The Route Optimization API from Onfleet — 5 operation(s) for route optimization.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/onfleet-route-optimization-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Onfleet Destinations Route Optimization API
description: 'The Destinations API manages physical addresses associated with tasks.
Destinations include parsed address fields and a GeoJSON location, and can
be reused across tasks. Onfleet geocodes addresses on creation; you can
also supply an `unparsed` address.
'
version: '2.7'
contact:
name: Onfleet Support
email: support@onfleet.com
license:
name: Onfleet Terms of Service
url: https://onfleet.com/legal
servers:
- url: https://onfleet.com/api/v2
description: Production
security:
- basicAuth: []
tags:
- name: Route Optimization
paths:
/optimizations/scheduled:
post:
tags:
- Route Optimization
summary: Initialize Route Optimization
description: Start an asynchronous route optimization job for a team or set of workers; result delivered via the routeOptimizationJobCompleted webhook. Enterprise-only.
operationId: initializeOptimization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OptimizationRequest'
responses:
'200':
description: Optimization queued
content:
application/json:
schema:
type: object
properties:
optimizationId:
type: string
status:
type: string
/optimizations/{optimizationId}/start:
post:
tags:
- Route Optimization
summary: Start Route Optimization
operationId: startOptimization
parameters:
- name: optimizationId
in: path
required: true
schema:
type: string
responses:
'200':
description: Started
/optimizations/{optimizationId}/status:
get:
tags:
- Route Optimization
summary: Get Optimization Status
operationId: getOptimizationStatus
parameters:
- name: optimizationId
in: path
required: true
schema:
type: string
responses:
'200':
description: Status
content:
application/json:
schema:
type: object
properties:
optimizationId:
type: string
status:
type: string
enum:
- PENDING
- IN_PROGRESS
- COMPLETED
- FAILED
- ABORTED
progress:
type: number
/optimizations/{optimizationId}/apply:
post:
tags:
- Route Optimization
summary: Apply Optimization Results
operationId: applyOptimization
parameters:
- name: optimizationId
in: path
required: true
schema:
type: string
responses:
'200':
description: Applied
/optimizations/{optimizationId}/abort:
post:
tags:
- Route Optimization
summary: Abort Optimization
operationId: abortOptimization
parameters:
- name: optimizationId
in: path
required: true
schema:
type: string
responses:
'200':
description: Aborted
components:
schemas:
OptimizationRequest:
type: object
properties:
type:
type: string
enum:
- TASK_BASED
- VEHICLE_BASED
- AUTO_DISPATCH
tasks:
type: array
items:
type: string
workers:
type: array
items:
type: string
team:
type: string
startTime:
type: integer
format: int64
endTime:
type: integer
format: int64
considerDependencies:
type: boolean
balance:
type: object
properties:
byTaskCount:
type: boolean
byWorkload:
type: boolean
securitySchemes:
basicAuth:
type: http
scheme: basic