Onfleet integration
Onfleet API v2 for last-mile delivery operations: create and dispatch tasks, follow their state through to completion, manage drivers, teams, destinations and recipients, and register webhooks for delivery events. Authentication is HTTP Basic with the API key as the username and an empty password.
Say what should happen.
The workflow builds itself.
Common Onfleet use cases
- offboarding a courier who left
- showing a driver's live position
- polling a delivery until it completes
- reassigning a driver to a different team
- turning a new order into a delivery task
- measuring the unassigned backlog of a team
- onboarding a new courier from an HR system
- cancelling an order before it is dispatched
- resolving a team id before creating a worker
- pushing task-completed events into a workflow
What you can do with Onfleet
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Task, 6 operations
complete_taskComplete taskPOSTMarks an Onfleet task as completed, either successfully or as a failure.create_taskCreate taskPOSTCreates an Onfleet task at a destination, optionally assigned to a worker or team.delete_taskDelete taskDELETEDeletes an Onfleet task permanently.get_taskGet taskGETRetrieves a single Onfleet task by identifier.list_tasksList tasksGETLists Onfleet tasks from a starting timestamp, with cursor paging.update_taskUpdate taskPUTUpdates a pending Onfleet task.
Worker, 5 operations
create_workerCreate workerPOSTCreates an Onfleet worker attached to one or more teams.delete_workerDelete workerDELETEDeletes an Onfleet worker.get_workerGet workerGETRetrieves a single Onfleet worker.list_workersList workersGETLists Onfleet workers with their duty state and current position.update_workerUpdate workerPUTUpdates an Onfleet worker.
Team, 2 operations
get_teamGet teamGETRetrieves a single Onfleet team.list_teamsList teamsGETLists Onfleet teams with their workers and managers.
Webhook, 2 operations
create_webhookCreate webhookPOSTRegisters an Onfleet webhook that posts a chosen event to a URL.list_webhooksList webhooksGETLists the Onfleet webhooks and the events they fire on.
Destination, 1 operation
create_destinationCreate destinationPOSTCreates an Onfleet destination and geocodes its address.
Organization, 1 operation
get_organizationGet organizationGETRetrieves the Onfleet organization tied to the API key, including its delegatees.
Recipient, 1 operation
create_recipientCreate recipientPOSTCreates an Onfleet recipient with a name and phone number.
Use Onfleet from Claude Code, Cursor or Codex
Connect Onfleet in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Onfleet operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Onfleet
- Create your workspace
Sign up free. Nothing to install.
- Connect Onfleet once
Add your Onfleet connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Onfleet integration FAQ
What can you do with the Onfleet integration?
LiveContext exposes 18 operations on Onfleet, covering task, worker, team and webhook. Common uses include offboarding a courier who left, showing a driver's live position and polling a delivery until it completes.
