Onfleet logo

Onfleet

Onfleet is an AI-powered last-mile delivery management platform that orchestrates fleet operations, dispatch, route optimization, and customer experience across internal and outsourced delivery fleets. The platform powers 400M+ deliveries for brands including Eaze, Total Wine & More, Pizza Hut, Kroger, and Urbanstems across industries from prepared meals and grocery to cannabis, pharmacy, and furniture. Onfleet exposes a comprehensive REST API v2.7 for tasks, workers, route plans, route optimization, orders, recipients, destinations, organizations/teams, and webhooks — backed by official SDKs in Python, Node.js, PHP, Java, and Go, plus the 150+ courier Onfleet Connect network.

8 APIs 19 Features
Last Mile DeliveryLogisticsFleet ManagementDispatchRoute OptimizationCourierDriversTrackingGeocodingWebhooksAISaaS

APIs

Onfleet Tasks API

Create, list, fetch, update, clone, force-complete, and delete pickup/dropoff tasks. Tasks are the atomic unit of work in Onfleet — each has a destination, recipient, completion...

Onfleet Workers API

Manage drivers — create, list, update, delete, fetch a worker's assigned tasks, and pull a delivery manifest for compliance reporting. Workers are bound to teams, have vehicle m...

Onfleet Route Plans API

Create and manage route plans — ordered sequences of tasks assigned to a worker for a time window — and kick off asynchronous route optimization jobs (task-based, vehicle-based,...

Onfleet Orders API

Orders represent a pickup-dropoff task pair shared between a courier organization and its clients on the Onfleet Connect network. Clients can quote, create, update, clone, cance...

Onfleet Organizations & Teams API

Look up your own organization and connected delegatee organizations on Onfleet Connect, manage administrators (Super and Standard, optionally read-only), create and list teams, ...

Onfleet Recipients API

Create and look up end customers (recipients) by ID, name, or E.164 phone number. Recipients carry SMS notification preferences and metadata, and can be reused across tasks.

Onfleet Destinations API

Manage geocoded physical addresses used as task pickup/dropoff locations. Accepts a parsed address structure or a single `unparsed` field; coordinates are returned as GeoJSON [l...

Onfleet Webhooks API

Register HTTPS callbacks against 27 trigger types covering task lifecycle, worker duty/CRUD, route plan state changes, SMS recipient events, and async job completions (auto-disp...

Features

REST API v2.7 over HTTPS with Basic Auth using the API key as the username and an empty password
Base URL https://onfleet.com/api/v2; JSON-only request and response bodies
24-character URL-safe resource IDs; GeoJSON [longitude, latitude] coordinates; Unix-millisecond timestamps; E.164 phone numbers
Tasks API with create, batch create (100 per request), clone, force-complete, dependencies, custom fields, and metadata search
Workers API with vehicle metadata (CAR / MOTORCYCLE / BICYCLE / TRUCK), capacity, additionalCapacities, and route delivery manifest
Route Plans API for hub-to-hub routes plus asynchronous Route Optimization (task-based, vehicle-based, auto-dispatch) — Enterprise plan endpoints
Orders API for pickup-dropoff pair workflows on the Onfleet Connect courier network (quote, create, update, clone, cancel, reject)
Recipients and Destinations APIs with geocoding and reusable resource lookup by name/phone
Team Auto-Dispatch (Beta) for batched assignment of unassigned tasks to a team
Webhooks API with 27 trigger types — full task lifecycle, worker duty/CRUD, route plan events, SMS opt-out, predictive delay, and async job completions
HMAC-SHA256 webhook signing via /webhooks/secret with X-Onfleet-Signature header
lastId-based pagination on List Tasks (up to 64 per page); 70-second server timeout on long-running queries
Official SDKs for Python, Node.js, PHP, Java, and Go; archived Ruby SDK; Postman collection
AI-powered route optimization trained on 400M+ deliveries; predictive ETA and delay alerts
Proof of delivery with photos, signatures, timestamps, barcode scanning, and ID verification (Scale+)
Branded customer tracking pages and two-way driver-customer chat
Driver mobile apps (iOS and Android) rated 4.7 stars on both stores
150+ courier partners via Onfleet Connect
Native integrations with Shopify, Zapier, GigSmart, Dutchie, Zendrive

Integrations

Shopify
Zapier
Dutchie
GigSmart
Zendrive
Onfleet Connect (150+ courier partners)

Event Specifications

Onfleet Webhooks

Real-time event stream delivered as HTTPS POST callbacks from Onfleet to a URL you register via the Webhooks API. Each webhook is bound to a single triggerId; payloads share a c...

ASYNCAPI

Semantic Vocabularies

Onfleet Context

28 classes · 18 properties

JSON-LD

API Governance Rules

Onfleet API Rules

8 rules · 3 errors 5 warnings

SPECTRAL

Resources

🔗
PostmanWorkspace
PostmanWorkspace
🔗
ArazzoWorkflows
ArazzoWorkflows
🌐
Portal
Portal
🔗
Documentation
Documentation
🔗
Documentation
Documentation
🚀
GettingStarted
GettingStarted
🔗
Documentation
Documentation
🔗
Documentation
Documentation
📄
ChangeLog
ChangeLog
📄
ChangeLog
ChangeLog
📄
ChangeLog
ChangeLog
🟢
StatusPage
StatusPage
📰
Blog
Blog
📝
SignUp
SignUp
💰
Pricing
Pricing
📜
TermsOfService
TermsOfService
📜
PrivacyPolicy
PrivacyPolicy
💬
Support
Support
👥
GitHubOrganization
GitHubOrganization
📦
SDK
SDK
📦
SDK
SDK
📦
SDK
SDK
📦
SDK
SDK
📦
SDK
SDK
📦
SDK
SDK
💻
CodeExamples
CodeExamples
🔗
Documentation
Documentation
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps
🔗
JSONLD
JSONLD
🔗
Vocabulary
Vocabulary
🔗
Rules
Rules

Sources

Raw ↑
aid: onfleet
url: https://raw.githubusercontent.com/api-evangelist/onfleet/refs/heads/main/apis.yml
name: Onfleet
apis:
  - aid: onfleet:onfleet-tasks-api
    name: Onfleet Tasks API
    tags:
      - Last Mile Delivery
      - Logistics
      - Tasks
    humanURL: https://docs.onfleet.com/reference/tasks
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/tasks.md
        type: Documentation
      - url: https://docs.onfleet.com/reference/create-task.md
        type: Documentation
      - url: https://docs.onfleet.com/reference/list-tasks.md
        type: Documentation
      - url: openapi/onfleet-tasks-api-openapi.yml
        type: OpenAPI
      - url: json-schema/onfleet-task-schema.json
        type: JSONSchema
      - url: json-structure/onfleet-task-structure.json
        type: JSONStructure
      - url: examples/onfleet-create-task-example.json
        type: Example
    description: |
      Create, list, fetch, update, clone, force-complete, and delete pickup/dropoff tasks. Tasks are the
      atomic unit of work in Onfleet — each has a destination, recipient, completion window, optional
      dependencies, and a state lifecycle (Unassigned → Assigned → Active → Completed). Supports
      batch creation (up to 100 per request) and assignment to workers via the containers endpoint.
  - aid: onfleet:onfleet-workers-api
    name: Onfleet Workers API
    tags:
      - Last Mile Delivery
      - Drivers
      - Workers
    humanURL: https://docs.onfleet.com/reference/workers
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/create-worker.md
        type: Documentation
      - url: https://docs.onfleet.com/reference/delivery-manifest.md
        type: Documentation
      - url: openapi/onfleet-workers-api-openapi.yml
        type: OpenAPI
      - url: json-schema/onfleet-worker-schema.json
        type: JSONSchema
      - url: examples/onfleet-create-worker-example.json
        type: Example
    description: |
      Manage drivers — create, list, update, delete, fetch a worker's assigned tasks, and pull a
      delivery manifest for compliance reporting. Workers are bound to teams, have vehicle metadata
      (CAR/MOTORCYCLE/BICYCLE/TRUCK), and report duty status and location.
  - aid: onfleet:onfleet-route-plans-api
    name: Onfleet Route Plans API
    tags:
      - Last Mile Delivery
      - Route Optimization
      - Route Plans
    humanURL: https://docs.onfleet.com/reference/routeplan
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/routeplan.md
        type: Documentation
      - url: https://docs.onfleet.com/reference/route-optimization.md
        type: Documentation
      - url: openapi/onfleet-route-plans-api-openapi.yml
        type: OpenAPI
      - url: json-schema/onfleet-route-plan-schema.json
        type: JSONSchema
    description: |
      Create and manage route plans — ordered sequences of tasks assigned to a worker for a time window
      — and kick off asynchronous route optimization jobs (task-based, vehicle-based, or auto-dispatch).
      Optimization endpoints are an Enterprise plan feature; results delivered via the
      routeOptimizationJobCompleted webhook.
  - aid: onfleet:onfleet-orders-api
    name: Onfleet Orders API
    tags:
      - Last Mile Delivery
      - Orders
      - Courier
    humanURL: https://docs.onfleet.com/reference/orders
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/orders.md
        type: Documentation
      - url: openapi/onfleet-orders-api-openapi.yml
        type: OpenAPI
    description: |
      Orders represent a pickup-dropoff task pair shared between a courier organization and its clients
      on the Onfleet Connect network. Clients can quote, create, update, clone, cancel, or reject orders;
      couriers can create orders on behalf of clients and respond to them.
  - aid: onfleet:onfleet-organizations-api
    name: Onfleet Organizations & Teams API
    tags:
      - Last Mile Delivery
      - Organizations
      - Teams
      - Administrators
    humanURL: https://docs.onfleet.com/reference/team-auto-dispatch
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/team-auto-dispatch.md
        type: Documentation
      - url: openapi/onfleet-organizations-api-openapi.yml
        type: OpenAPI
    description: |
      Look up your own organization and connected delegatee organizations on Onfleet Connect, manage
      administrators (Super and Standard, optionally read-only), create and list teams, and trigger
      Team Auto-Dispatch — Onfleet's batch task-to-worker assignment engine (Beta).
  - aid: onfleet:onfleet-recipients-api
    name: Onfleet Recipients API
    tags:
      - Last Mile Delivery
      - Recipients
      - Customers
    humanURL: https://docs.onfleet.com/reference/recipients
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: openapi/onfleet-recipients-api-openapi.yml
        type: OpenAPI
      - url: json-schema/onfleet-recipient-schema.json
        type: JSONSchema
    description: |
      Create and look up end customers (recipients) by ID, name, or E.164 phone number. Recipients carry
      SMS notification preferences and metadata, and can be reused across tasks.
  - aid: onfleet:onfleet-destinations-api
    name: Onfleet Destinations API
    tags:
      - Last Mile Delivery
      - Destinations
      - Geocoding
    humanURL: https://docs.onfleet.com/reference/destinations
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/create-destination.md
        type: Documentation
      - url: openapi/onfleet-destinations-api-openapi.yml
        type: OpenAPI
      - url: json-schema/onfleet-destination-schema.json
        type: JSONSchema
    description: |
      Manage geocoded physical addresses used as task pickup/dropoff locations. Accepts a parsed
      address structure or a single `unparsed` field; coordinates are returned as GeoJSON
      [longitude, latitude].
  - aid: onfleet:onfleet-webhooks-api
    name: Onfleet Webhooks API
    tags:
      - Last Mile Delivery
      - Webhooks
      - Events
    humanURL: https://docs.onfleet.com/reference/webhooks
    baseURL: https://onfleet.com/api/v2
    properties:
      - url: https://docs.onfleet.com/reference/webhooks.md
        type: Documentation
      - url: https://docs.onfleet.com/reference/secrets.md
        type: Documentation
      - url: openapi/onfleet-webhooks-api-openapi.yml
        type: OpenAPI
      - url: asyncapi/onfleet-webhooks-asyncapi.yml
        type: AsyncAPI
      - url: examples/onfleet-webhook-task-completed-example.json
        type: Example
    description: |
      Register HTTPS callbacks against 27 trigger types covering task lifecycle, worker duty/CRUD,
      route plan state changes, SMS recipient events, and async job completions (auto-dispatch, task
      batch create, route optimization). Payloads are signed with HMAC-SHA256 using the secret
      obtained from /webhooks/secret.
tags:
  - Last Mile Delivery
  - Logistics
  - Fleet Management
  - Dispatch
  - Route Optimization
  - Courier
  - Drivers
  - Tracking
  - Geocoding
  - Webhooks
  - AI
  - SaaS
kind: contract
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
access: 3rd-Party
common:
  - type: PostmanWorkspace
    url: https://www.postman.com/kinlaneapi/onfleet/overview
  - type: ArazzoWorkflows
    url: arazzo/
    workflows:
      - url: arazzo/onfleet-assign-task-to-worker-workflow.yml
        name: Onfleet Assign Task to Worker
        summary: Create a task and explicitly assign it to a worker's container, then verify.
      - url: arazzo/onfleet-auto-assign-task-workflow.yml
        name: Onfleet Auto-Assign Task
        summary: Create a task with auto-assignment to a team, then confirm a worker was assigned.
      - url: arazzo/onfleet-batch-create-and-list-tasks-workflow.yml
        name: Onfleet Batch Create and List Tasks
        summary: Submit a batch of tasks asynchronously, then list tasks to verify the load.
      - url: arazzo/onfleet-build-route-plan-workflow.yml
        name: Onfleet Build Route Plan
        summary: Create a route plan for a worker, append tasks to it, then read it back.
      - url: arazzo/onfleet-clone-and-complete-task-workflow.yml
        name: Onfleet Clone and Force-Complete Task
        summary: Read a task, clone it for a redelivery, then force-complete the original.
      - url: arazzo/onfleet-dispatch-team-tasks-workflow.yml
        name: Onfleet Dispatch Team Tasks
        summary: Survey unassigned tasks, trigger team auto-dispatch, then re-check what remains.
      - url: arazzo/onfleet-fulfill-courier-order-workflow.yml
        name: Onfleet Fulfill Courier Order
        summary: Quote a pickup-and-dropoff order, create it, then read back its status.
      - url: arazzo/onfleet-onboard-worker-to-team-workflow.yml
        name: Onfleet Onboard Worker to Team
        summary: Create a team, add a new worker to it, then confirm the worker's membership.
      - url: arazzo/onfleet-optimize-team-routes-workflow.yml
        name: Onfleet Optimize Team Routes
        summary: Initialize and start a route optimization, poll its status, then apply the result.
      - url: arazzo/onfleet-provision-admin-and-team-workflow.yml
        name: Onfleet Provision Administrator and Team
        summary: Create an administrator, create a team they manage, then confirm the team list.
      - url: arazzo/onfleet-provision-delivery-task-workflow.yml
        name: Onfleet Provision Delivery Task
        summary: Create a recipient and destination, then create a delivery task and confirm it.
      - url: arazzo/onfleet-register-task-webhook-workflow.yml
        name: Onfleet Register Task Webhook
        summary: Register a webhook, fetch the signing secret, then confirm it is listed.
      - url: arazzo/onfleet-upsert-recipient-and-create-task-workflow.yml
        name: Onfleet Upsert Recipient and Create Task
        summary: Look up a recipient by phone, create one if missing, then create a task for them.
  - type: Portal
    url: https://onfleet.com
  - type: Documentation
    url: https://docs.onfleet.com/
  - type: Documentation
    name: API Reference (v2.7)
    url: https://docs.onfleet.com/reference/introduction
  - type: GettingStarted
    url: https://docs.onfleet.com/reference/setup-tutorial
  - type: Documentation
    name: Data Types and Response Formats
    url: https://docs.onfleet.com/reference/data-types-and-response-formats
  - type: Documentation
    name: Querying by Metadata
    url: https://docs.onfleet.com/reference/querying-by-metadata
  - type: ChangeLog
    url: https://docs.onfleet.com/changelog/api-documentation-updates-may-2026
  - type: ChangeLog
    url: https://docs.onfleet.com/changelog/order-endpoints
  - type: ChangeLog
    url: https://docs.onfleet.com/changelog/custom-fields
  - type: StatusPage
    url: https://status.onfleet.com
  - type: Blog
    url: https://onfleet.com/blog
  - type: SignUp
    url: https://onfleet.com/signup
  - type: Pricing
    url: https://onfleet.com/pricing
  - type: TermsOfService
    url: https://onfleet.com/legal
  - type: PrivacyPolicy
    url: https://onfleet.com/privacy
  - type: Support
    url: https://onfleet.com/support
  - type: GitHubOrganization
    url: https://github.com/onfleet
  - type: SDK
    name: Python (pyonfleet)
    url: https://github.com/onfleet/pyonfleet
  - type: SDK
    name: Node.js (node-onfleet)
    url: https://github.com/onfleet/node-onfleet
  - type: SDK
    name: PHP (php-onfleet)
    url: https://github.com/onfleet/php-onfleet
  - type: SDK
    name: Java (java-onfleet)
    url: https://github.com/onfleet/java-onfleet
  - type: SDK
    name: Go (gonfleet)
    url: https://github.com/onfleet/gonfleet
  - type: SDK
    name: Ruby (ruby-onfleet, archived)
    url: https://github.com/onfleet/ruby-onfleet
  - type: CodeExamples
    name: Developer repository (example payloads)
    url: https://github.com/onfleet/developer
  - type: Documentation
    name: Postman Collection
    url: https://app.getpostman.com/run-collection/14168007-2dc047db-9556-442a-b643-e913027a74cf
  - type: Plans
    url: plans/onfleet-plans-pricing.yml
  - type: RateLimits
    url: rate-limits/onfleet-rate-limits.yml
  - type: FinOps
    url: finops/onfleet-finops.yml
  - type: JSONLD
    url: json-ld/onfleet-context.jsonld
  - type: Vocabulary
    url: vocabulary/onfleet-vocabulary.yml
  - type: Rules
    url: rules/onfleet-rules.yml
  - type: Features
    data:
      - REST API v2.7 over HTTPS with Basic Auth using the API key as the username and an empty password
      - Base URL https://onfleet.com/api/v2; JSON-only request and response bodies
      - >-
        24-character URL-safe resource IDs; GeoJSON [longitude, latitude] coordinates; Unix-millisecond timestamps;
        E.164 phone numbers
      - >-
        Tasks API with create, batch create (100 per request), clone, force-complete, dependencies, custom fields, and
        metadata search
      - >-
        Workers API with vehicle metadata (CAR / MOTORCYCLE / BICYCLE / TRUCK), capacity, additionalCapacities, and
        route delivery manifest
      - >-
        Route Plans API for hub-to-hub routes plus asynchronous Route Optimization (task-based, vehicle-based,
        auto-dispatch) — Enterprise plan endpoints
      - >-
        Orders API for pickup-dropoff pair workflows on the Onfleet Connect courier network (quote, create, update,
        clone, cancel, reject)
      - Recipients and Destinations APIs with geocoding and reusable resource lookup by name/phone
      - Team Auto-Dispatch (Beta) for batched assignment of unassigned tasks to a team
      - >-
        Webhooks API with 27 trigger types — full task lifecycle, worker duty/CRUD, route plan events, SMS opt-out,
        predictive delay, and async job completions
      - HMAC-SHA256 webhook signing via /webhooks/secret with X-Onfleet-Signature header
      - lastId-based pagination on List Tasks (up to 64 per page); 70-second server timeout on long-running queries
      - Official SDKs for Python, Node.js, PHP, Java, and Go; archived Ruby SDK; Postman collection
      - AI-powered route optimization trained on 400M+ deliveries; predictive ETA and delay alerts
      - Proof of delivery with photos, signatures, timestamps, barcode scanning, and ID verification (Scale+)
      - Branded customer tracking pages and two-way driver-customer chat
      - Driver mobile apps (iOS and Android) rated 4.7 stars on both stores
      - 150+ courier partners via Onfleet Connect
      - Native integrations with Shopify, Zapier, GigSmart, Dutchie, Zendrive
    sources:
      - https://docs.onfleet.com/
      - https://docs.onfleet.com/reference/introduction
      - https://docs.onfleet.com/reference/webhooks
      - https://onfleet.com/pricing
      - https://onfleet.com
    updated: '2026-05-25'
  - type: Integrations
    data:
      - Shopify
      - Zapier
      - Dutchie
      - GigSmart
      - Zendrive
      - Onfleet Connect (150+ courier partners)
    sources:
      - https://onfleet.com/
    updated: '2026-05-25'
created: '2026-05-25T00:00:00.000Z'
modified: '2026-05-25'
position: Consuming
description: |
  Onfleet is an AI-powered last-mile delivery management platform that orchestrates fleet operations,
  dispatch, route optimization, and customer experience across internal and outsourced delivery fleets.
  The platform powers 400M+ deliveries for brands including Eaze, Total Wine & More, Pizza Hut, Kroger,
  and Urbanstems across industries from prepared meals and grocery to cannabis, pharmacy, and
  furniture. Onfleet exposes a comprehensive REST API v2.7 for tasks, workers, route plans, route
  optimization, orders, recipients, destinations, organizations/teams, and webhooks — backed by
  official SDKs in Python, Node.js, PHP, Java, and Go, plus the 150+ courier Onfleet Connect network.
maintainers:
  - FN: Kin Lane
    email: info@apievangelist.com
    X: apievangelist
    url: https://apievangelist.com
specificationVersion: '0.16'