Skip to content
Onfleet logo

Connectors / Supply chain · HTTP Connector

Automate Onfleet with Tray.ai

Create a task, create an order and create a route plan in Onfleet, and start a workflow when Onfleet sends “Task started”.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.

See all connectors

What can you do with Onfleet on Tray.ai?

Onfleet is last-mile delivery management software for dispatching drivers, planning routes, tracking deliveries, and notifying recipients. Tray.ai connects to Onfleet through the HTTP Connector, so your workflows can call the Onfleet API alongside the rest of your stack.

Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://onfleet.com/api/v2

What the Onfleet API covers

4 resources and 14 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow.

Tasks

  • Create a task
  • List tasks
  • Get a task

Orders

  • Create an order
  • Get orders
  • Update an order
  • Cancel an order

Route plans

  • Create a route plan
  • Get a route plan
  • Update a route plan
  • Add tasks to a route plan
  • Delete a route plan

Webhooks

  • Update a webhook
  • Manage webhook secrets

Events Onfleet can send to a Tray.ai webhook trigger

  • Task started
  • Task ETA
  • Task arrival
  • Task completed
  • Task failed
  • Task created
  • Task updated
  • Task deleted
  • Task assigned
  • Task unassigned
  • Task delayed
  • Worker duty changed
  • Worker created
  • Worker updated
  • Worker deleted
  • Route plan created
  • Route plan started
  • Route plan completed

Checked against Onfleet's own documentation on 2026-10-22

docs.onfleet.com/reference/introduction

Frequently asked questions

What can a Tray.ai workflow do in Onfleet?

+

The Onfleet API documents 14 actions across 4 resources (Tasks, Orders, Route plans, Webhooks). For example: Create a task; Create an order; Create a route plan. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Onfleet?

+

The Onfleet API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Onfleet events can start a Tray.ai workflow?

+

Onfleet sends 18 events to a webhook URL, for example: Task started; Task ETA; Task arrival; Task completed; Task failed; Task created; Task updated; Task deleted. A Tray.ai webhook trigger receives them and starts a workflow.

See Onfleet working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.