> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Onfleet

> How to set up the Onfleet connector, plus the actions that are available.

![Onfleet](https://stackone-logos.com/api/onfleet/filled/svg)

Betav0.1.0[See changelog](https://docs.stackone.com/connectors/onfleet/changelog.md)

[84 actions](#actions) · 1 auth method

Logistics

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [API Key · Connector Profile](https://docs.stackone.com/connectors/onfleet/guides/connector-profile/api-key.md)
>
> 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](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [API Key · Link Account](https://docs.stackone.com/connectors/onfleet/guides/link-account/api-key.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

84 actions

ActionDescription

Create Administrator`onfleet_create_administrator`

Create a new dashboard administrator in the organization and send them a confirmation email

List Administrators`onfleet_list_administrators`

List every administrator in the organization, including super admins and standard dispatchers

Update Administrator`onfleet_update_administrator`

Update an existing administrator's email, phone, read-only permission or metadata

Delete Administrator`onfleet_delete_administrator`

Permanently delete a standard dispatcher administrator from the organization

Query Administrators By Metadata`onfleet_query_administrators_by_metadata`

Find administrators whose metadata matches every supplied name, type and value filter

Test API Key`onfleet_test_api_key`

Verify that the configured Onfleet API key is valid and correctly formatted

Get Container`onfleet_get_container`

Retrieve a container and the ordered list of tasks currently assigned to a worker, team, or organization

Update Container Tasks`onfleet_update_container_tasks`

Assign, reorder, insert, or fully replace the ordered task list of a worker, team, or organization container

Create Destination`onfleet_create_destination`

Create a standalone destination from an address, optionally with explicit coordinates

Get Destination`onfleet_get_destination`

Retrieve a single destination by its Onfleet identifier

Query Destinations By Metadata`onfleet_query_destinations_by_metadata`

Find destinations whose metadata matches one or more name, type and value conditions

Create Hub`onfleet_create_hub`

Create a hub as a home base location and optionally assign it to existing teams

List Hubs`onfleet_list_hubs`

List every hub in the organization

Update Hub`onfleet_update_hub`

Update an existing hub's name or phone number

Generate Delivery Manifest`onfleet_generate_delivery_manifest`

Generate a compliance delivery manifest for a worker's assigned route from a given hub

Initialize Route Optimization`onfleet_initialize_route_optimization`

Configure and preview a route optimization run and receive the optimizationId the rest of the lifecycle consumes

Start Route Optimization`onfleet_start_route_optimization`

Start the computation for a previously initialized route optimization run

Get Optimization Status`onfleet_get_optimization_status`

Poll the current state of a started route optimization run

Abort Optimization`onfleet_abort_optimization`

Cancel a route optimization run so its results are never applied

Apply Optimization Results`onfleet_apply_optimization_results`

Commit a completed route optimization's planned assignments to the workers

Create Order`onfleet_create_order`

Create a linked pickup and dropoff task pair as a new order

Get Order`onfleet_get_order`

Retrieve a single order by its order shortId

Update Order`onfleet_update_order`

Update the pickup and dropoff tasks of an existing order

Cancel Orders`onfleet_cancel_order`

Cancel one or more orders before they start or complete

Clone Order`onfleet_clone_order`

Create a direct copy of an existing order

Reject Order`onfleet_reject_order`

Reject an order a client sent to a courier, with a reason

Quote Order`onfleet_quote_order`

Get price quotes across a client’s configured delivery services for a potential order

Get Organization`onfleet_get_organization`

Retrieve your own organization's details, the organization the API key belongs to

Get Delegatee Organization`onfleet_get_delegatee_organization`

Retrieve the details of a connected delegatee organization by its id

Create Recipient`onfleet_create_recipient`

Create a recipient record that tasks can be addressed to

Get Recipient`onfleet_get_recipient`

Retrieve a single recipient by its Onfleet identifier

Find Recipient By Name`onfleet_find_recipient_by_name`

Look up a recipient by an exact, case-insensitive name match

Find Recipient By Phone`onfleet_find_recipient_by_phone`

Look up a recipient by an exact phone number match

Update Recipient`onfleet_update_recipient`

Update a recipient's name, notes, SMS preference or metadata

Query Recipients By Metadata`onfleet_query_recipients_by_metadata`

Find recipients whose metadata matches one or more name, type and value conditions

List Route Plans`onfleet_list_route_plans`

Search route plans by worker, start-time window, creation-time window, or whether they currently hold tasks

Get Route Plan`onfleet_get_route_plan`

Retrieve a single route plan by its id

Create Route Plan`onfleet_create_route_plan`

Create a route plan that groups tasks for a worker or team and schedules them

Update Route Plan`onfleet_update_route_plan`

Update the mutable fields of an existing route plan

Add Tasks To Route Plan`onfleet_add_tasks_to_route_plan`

Replace a route plan's entire ordered task list with the supplied array of task ids

Delete Route Plan`onfleet_delete_route_plan`

Permanently delete an empty route plan that has not yet started

Create Task Template`onfleet_create_task_template`

Create a Task Template that bundles a set of configured Custom Fields into a reusable task configuration

List Task Templates`onfleet_list_task_templates`

List every Task Template configured for the organization along with their Custom Fields

Update Task Template`onfleet_update_task_template`

Modify an existing Task Template's name, task-type scope, or Custom Field key list

Delete Task Template`onfleet_delete_task_template`

Permanently delete a Task Template by its id

Search Eligible Custom Field`onfleet_search_eligible_custom_field`

Discover which configured Custom Fields are eligible for a given Task Template task-type scope

Create Task`onfleet_create_task`

Create a delivery or pickup task, creating its destination and recipient inline

Create Tasks In Batch`onfleet_create_tasks_in_batch`

Create multiple tasks synchronously in a single request (deprecated — prefer Create Tasks In Batch Async)

Create Tasks In Batch Async`onfleet_create_tasks_in_batch_async`

Queue up to 500 tasks for asynchronous creation and receive a job ID

Get Batch Job Status`onfleet_get_batch_job_status`

Retrieve the status and results of an asynchronous batch task-creation job

List Tasks`onfleet_list_tasks`

List the tasks in the organization within a time range

Get Task`onfleet_get_task`

Retrieve a single task by its 24-character task ID

Get Task By Short ID`onfleet_get_task_by_short_id`

Retrieve a single task by its short identifier

Update Task`onfleet_update_task`

Update the mutable fields of an existing task

Delete Task`onfleet_delete_task`

Permanently delete an unassigned task

Delete A List Of Tasks`onfleet_delete_tasks`

Delete multiple tasks in a single request

Clone Task`onfleet_clone_task`

Create a new task copying the details of an existing task

Complete Task`onfleet_complete_task`

Force-complete an active task from the dispatcher side

Auto Assign Tasks`onfleet_auto_assign_tasks`

Automatically assign a list of existing tasks to available drivers

Query Tasks By Metadata`onfleet_query_tasks_by_metadata`

Find tasks whose metadata matches every supplied name, type and value

Search Task Custom Fields`onfleet_search_task_custom_fields`

Find tasks matching one or more Custom Field key and value pairs

Create Team`onfleet_create_team`

Create a new team that groups workers under one or more managing administrators

List Teams`onfleet_list_teams`

List every team defined in the organization

Get Team`onfleet_get_team`

Fetch a single team by its ID

Update Team`onfleet_update_team`

Update an existing team's name, membership, or hub

Delete Team`onfleet_delete_team`

Permanently delete a team by its ID

List Team Unassigned Tasks`onfleet_list_team_unassigned_tasks`

List the tasks currently sitting in a team's unassigned container

Get Team Driver Time Estimate`onfleet_get_team_driver_time_estimate`

Estimate travel time, distance, ETA, and ETC for a task that has not been created yet

Dispatch Team`onfleet_dispatch_team`

Auto-dispatch a team's assigned tasks to its on-duty drivers

Query Teams By Metadata`onfleet_query_teams_by_metadata`

Find teams whose custom metadata entries match one or more name, type, and value matchers

Create Webhook`onfleet_create_webhook`

Register a webhook that Onfleet calls when a trigger condition is met

List Webhooks`onfleet_list_webhooks`

Retrieve every webhook registered on the organization

Update Webhook`onfleet_update_webhook`

Update the configuration of an existing webhook

Delete Webhook`onfleet_delete_webhook`

Remove a registered webhook

Create Worker`onfleet_create_worker`

Create a new worker (driver) in the organization and add them to one or more teams

List Workers`onfleet_list_workers`

Return a collection of all workers in the organization, optionally filtered by team, duty state or phone number

Get Single Worker`onfleet_get_worker`

Fetch a single worker by ID, optionally including duty, distance and time analytics

Update Worker`onfleet_update_worker`

Update an existing worker's mutable details such as name and team memberships

Delete Worker`onfleet_delete_worker`

Permanently remove a worker from the organization

Get Workers By Location`onfleet_get_workers_by_location`

Find the workers currently located within a radius of a coordinate pair

List Worker's Assigned Tasks`onfleet_list_worker_assigned_tasks`

Return the tasks currently assigned to a worker, sorted by creation time

Get Worker's Schedule`onfleet_get_worker_schedule`

Retrieve all of the shift schedule entries for a worker

Set Worker's Schedule`onfleet_set_worker_schedule`

Replace a worker's shift schedule with the supplied list of entries

Query Workers By Metadata`onfleet_query_workers_by_metadata`

Find workers whose metadata matches every supplied name, type and value filter


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.