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 metadata (CAR/MOTORCYCLE/BICYCLE/TRUCK), and report duty status and location.

GitHub OpenAPI
Business capability
Logistics Operations Management BC-520.50

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /workers List delivery workers · List Workers #
Ask an LLM
“Which delivery workers are on duty right now?”
“Can I list workers assigned to a particular team?”
Tell an agent
List workers in states {states}.
Show workers on team {teams}.
POST /workers Add a delivery worker · Create Worker #
Ask an LLM
“How do I add a new delivery driver to Onfleet?”
“Can I set a worker's vehicle type and capacity when creating them?”
Tell an agent
Create worker {name} with phone {phone} on team {teams}.
Add worker {name} on team {teams} with vehicle {vehicle} and capacity {capacity}.
GET /workers/{workerId} Get a delivery worker · Get Single Worker #
Ask an LLM
“What phone number and team is a specific worker on?”
“Can I see a worker's analytics history?”
Tell an agent
Get worker {workerId}.
Show worker {workerId} with analytics {analytics}.
PUT /workers/{workerId} Update a delivery worker · Update Worker #
Ask an LLM
“How do I change a worker's phone number or team?”
“Can I change a worker's vehicle type after they are created?”
Tell an agent
Update worker {workerId} to name {name}, phone {phone}, team {teams}.
Change worker {workerId} to vehicle {vehicle} with capacity {capacity}.
DELETE /workers/{workerId} Delete a delivery worker · Delete Worker #
Ask an LLM
“How do I remove a worker who left the company?”
“Can I delete a delivery driver from a team?”
Tell an agent destructive · confirm first
Delete worker {workerId}.
Remove delivery driver {workerId}.
GET /workers/{workerId}/tasks List tasks assigned to a worker · List Worker's Assigned Tasks #
Ask an LLM
“Which tasks are assigned to a specific worker?”
“Can I see a worker's task history?”
Tell an agent
List tasks assigned to worker {workerId}.
Show the task history of worker {workerId}.
GET /workers/{workerId}/deliveryManifest Get a worker's delivery route · Get Worker's Route Delivery Manifest #
Ask an LLM
“What deliveries are on a worker's route today?”
“Can I get a worker's route as a Google Maps link?”
Tell an agent
Get the delivery manifest for worker {workerId}.
Show worker {workerId}'s route using Google Maps key {googleApiKey}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onfleet:onfleet-workers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onfleet-workers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Onfleet Destinations Workers 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: Workers
paths:
  /workers:
    get:
      tags:
      - Workers
      summary: List Workers
      operationId: listWorkers
      parameters:
      - name: filter
        in: query
        schema:
          type: string
        description: Comma-separated list of fields to return.
      - name: teams
        in: query
        schema:
          type: string
        description: Comma-separated list of team IDs.
      - name: states
        in: query
        schema:
          type: string
        description: Comma-separated list of worker states (0=Offline, 1=On-duty Idle, 2=On-duty Active).
      - name: phones
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Workers
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Worker'
    post:
      tags:
      - Workers
      summary: Create Worker
      operationId: createWorker
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkerCreate'
      responses:
        '200':
          description: Worker created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Worker'
  /workers/{workerId}:
    parameters:
    - name: workerId
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Workers
      summary: Get Single Worker
      operationId: getWorker
      parameters:
      - name: filter
        in: query
        schema:
          type: string
      - name: analytics
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Worker
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Worker'
    put:
      tags:
      - Workers
      summary: Update Worker
      operationId: updateWorker
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkerCreate'
      responses:
        '200':
          description: Updated worker
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Worker'
    delete:
      tags:
      - Workers
      summary: Delete Worker
      operationId: deleteWorker
      responses:
        '200':
          description: Worker deleted
  /workers/{workerId}/tasks:
    get:
      tags:
      - Workers
      summary: List Worker's Assigned Tasks
      operationId: listWorkerAssignedTasks
      parameters:
      - name: workerId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Tasks
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
  /workers/{workerId}/deliveryManifest:
    get:
      tags:
      - Workers
      summary: Get Worker's Route Delivery Manifest
      operationId: getDeliveryManifest
      parameters:
      - name: workerId
        in: path
        required: true
        schema:
          type: string
      - name: googleApiKey
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Manifest
          content:
            application/json:
              schema:
                type: object
components:
  schemas:
    Worker:
      type: object
      properties:
        id:
          type: string
        timeCreated:
          type: integer
          format: int64
        timeLastModified:
          type: integer
          format: int64
        organization:
          type: string
        name:
          type: string
        displayName:
          type:
          - string
          - 'null'
        phone:
          type: string
        activeTask:
          type:
          - string
          - 'null'
        tasks:
          type: array
          items:
            type: string
        onDuty:
          type: boolean
        timeLastSeen:
          type:
          - integer
          - 'null'
          format: int64
        capacity:
          type:
          - number
          - 'null'
        userData:
          type: object
          properties:
            platform:
              type: string
            appVersion:
              type: string
            deviceDescription:
              type: string
        accountStatus:
          type: string
        metadata:
          type: array
          items:
            type: object
        teams:
          type: array
          items:
            type: string
        vehicle:
          $ref: '#/components/schemas/Vehicle'
        location:
          type: array
          items:
            type: number
          description: GeoJSON [longitude, latitude].
    WorkerCreate:
      type: object
      required:
      - name
      - phone
      - teams
      properties:
        name:
          type: string
        phone:
          type: string
        teams:
          type: array
          items:
            type: string
        vehicle:
          $ref: '#/components/schemas/Vehicle'
        capacity:
          type: number
        displayName:
          type: string
        additionalCapacities:
          type: object
    Vehicle:
      type: object
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - CAR
          - MOTORCYCLE
          - BICYCLE
          - TRUCK
        description:
          type: string
        licensePlate:
          type: string
        color:
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic