Getting Started
1
Create or Select a Project
Set up a new project or select an existing one. See Organizations & Projects.
2
Configure the Connector
Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.
API Key · Connector Profile
Requires an API key created by an organization administrator in the Onfleet dashboard. The key never expires and inherit…
3
Link an Account
Link an account from the dashboard (or via StackOne Hub).See the guide for the authentication type chosen in the Connector Profile:
API Key · Link Account
4
Use Actions
Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.
Actions
84 actions
Action
Description
Create Administrator
Create a new dashboard administrator in the organization and send them a confirmation email
List Administrators
List every administrator in the organization, including super admins and standard dispatchers
Update Administrator
Update an existing administrator’s email, phone, read-only permission or metadata
Delete Administrator
Permanently delete a standard dispatcher administrator from the organization
Query Administrators By Metadata
Find administrators whose metadata matches every supplied name, type and value filter
Test API Key
Verify that the configured Onfleet API key is valid and correctly formatted
Get Container
Retrieve a container and the ordered list of tasks currently assigned to a worker, team, or organization
Update Container Tasks
Assign, reorder, insert, or fully replace the ordered task list of a worker, team, or organization container
Create Destination
Create a standalone destination from an address, optionally with explicit coordinates
Get Destination
Retrieve a single destination by its Onfleet identifier
Query Destinations By Metadata
Find destinations whose metadata matches one or more name, type and value conditions
Create Hub
Create a hub as a home base location and optionally assign it to existing teams
List Hubs
List every hub in the organization
Update Hub
Update an existing hub’s name or phone number
Generate Delivery Manifest
Generate a compliance delivery manifest for a worker’s assigned route from a given hub
Initialize Route Optimization
Configure and preview a route optimization run and receive the optimizationId the rest of the lifecycle consumes
Start Route Optimization
Start the computation for a previously initialized route optimization run
Get Optimization Status
Poll the current state of a started route optimization run
Abort Optimization
Cancel a route optimization run so its results are never applied
Apply Optimization Results
Commit a completed route optimization’s planned assignments to the workers
Create Order
Create a linked pickup and dropoff task pair as a new order
Get Order
Retrieve a single order by its order shortId
Update Order
Update the pickup and dropoff tasks of an existing order
Cancel Orders
Cancel one or more orders before they start or complete
Clone Order
Create a direct copy of an existing order
Reject Order
Reject an order a client sent to a courier, with a reason
Quote Order
Get price quotes across a client’s configured delivery services for a potential order
Get Organization
Retrieve your own organization’s details, the organization the API key belongs to
Get Delegatee Organization
Retrieve the details of a connected delegatee organization by its id
Create Recipient
Create a recipient record that tasks can be addressed to
Get Recipient
Retrieve a single recipient by its Onfleet identifier
Find Recipient By Name
Look up a recipient by an exact, case-insensitive name match
Find Recipient By Phone
Look up a recipient by an exact phone number match
Update Recipient
Update a recipient’s name, notes, SMS preference or metadata
Query Recipients By Metadata
Find recipients whose metadata matches one or more name, type and value conditions
List Route Plans
Search route plans by worker, start-time window, creation-time window, or whether they currently hold tasks
Get Route Plan
Retrieve a single route plan by its id
Create Route Plan
Create a route plan that groups tasks for a worker or team and schedules them
Update Route Plan
Update the mutable fields of an existing route plan
Add Tasks To Route Plan
Replace a route plan’s entire ordered task list with the supplied array of task ids
Delete Route Plan
Permanently delete an empty route plan that has not yet started
Create Task Template
Create a Task Template that bundles a set of configured Custom Fields into a reusable task configuration
List Task Templates
List every Task Template configured for the organization along with their Custom Fields
Update Task Template
Modify an existing Task Template’s name, task-type scope, or Custom Field key list
Delete Task Template
Permanently delete a Task Template by its id
Search Eligible Custom Field
Discover which configured Custom Fields are eligible for a given Task Template task-type scope
Create Task
Create a delivery or pickup task, creating its destination and recipient inline
Create Tasks In Batch
Create multiple tasks synchronously in a single request (deprecated — prefer Create Tasks In Batch Async)
Create Tasks In Batch Async
Queue up to 500 tasks for asynchronous creation and receive a job ID
Get Batch Job Status
Retrieve the status and results of an asynchronous batch task-creation job
List Tasks
List the tasks in the organization within a time range
Get Task
Retrieve a single task by its 24-character task ID
Get Task By Short ID
Retrieve a single task by its short identifier
Update Task
Update the mutable fields of an existing task
Delete Task
Permanently delete an unassigned task
Delete A List Of Tasks
Delete multiple tasks in a single request
Clone Task
Create a new task copying the details of an existing task
Complete Task
Force-complete an active task from the dispatcher side
Auto Assign Tasks
Automatically assign a list of existing tasks to available drivers
Query Tasks By Metadata
Find tasks whose metadata matches every supplied name, type and value
Search Task Custom Fields
Find tasks matching one or more Custom Field key and value pairs
Create Team
Create a new team that groups workers under one or more managing administrators
List Teams
List every team defined in the organization
Get Team
Fetch a single team by its ID
Update Team
Update an existing team’s name, membership, or hub
Delete Team
Permanently delete a team by its ID
List Team Unassigned Tasks
List the tasks currently sitting in a team’s unassigned container
Get Team Driver Time Estimate
Estimate travel time, distance, ETA, and ETC for a task that has not been created yet
Dispatch Team
Auto-dispatch a team’s assigned tasks to its on-duty drivers
Query Teams By Metadata
Find teams whose custom metadata entries match one or more name, type, and value matchers
Create Webhook
Register a webhook that Onfleet calls when a trigger condition is met
List Webhooks
Retrieve every webhook registered on the organization
Update Webhook
Update the configuration of an existing webhook
Delete Webhook
Remove a registered webhook
Create Worker
Create a new worker (driver) in the organization and add them to one or more teams
List Workers
Return a collection of all workers in the organization, optionally filtered by team, duty state or phone number
Get Single Worker
Fetch a single worker by ID, optionally including duty, distance and time analytics
Update Worker
Update an existing worker’s mutable details such as name and team memberships
Delete Worker
Permanently remove a worker from the organization
Get Workers By Location
Find the workers currently located within a radius of a coordinate pair
List Worker’s Assigned Tasks
Return the tasks currently assigned to a worker, sorted by creation time
Get Worker’s Schedule
Retrieve all of the shift schedule entries for a worker
Set Worker’s Schedule
Replace a worker’s shift schedule with the supplied list of entries
Query Workers By Metadata
Find workers whose metadata matches every supplied name, type and value filter