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.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
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 taskPOSTAgents: ask firstMarks an Onfleet task as completed, either successfully or as a failure.create_taskCreate taskPOSTAgents: ask firstCreates an Onfleet task at a destination, optionally assigned to a worker or team.delete_taskDelete taskDELETEAgents: ask firstDeletes an Onfleet task permanently.get_taskGet taskGETAgents: ask firstRetrieves a single Onfleet task by identifier.list_tasksList tasksGETAgents: ask firstLists Onfleet tasks from a starting timestamp, with cursor paging.update_taskUpdate taskPUTAgents: ask firstUpdates a pending Onfleet task.
Worker, 5 operations
create_workerCreate workerPOSTAgents: ask firstCreates an Onfleet worker attached to one or more teams.delete_workerDelete workerDELETEAgents: ask firstDeletes an Onfleet worker.get_workerGet workerGETAgents: ask firstRetrieves a single Onfleet worker.list_workersList workersGETAgents: ask firstLists Onfleet workers with their duty state and current position.update_workerUpdate workerPUTAgents: ask firstUpdates an Onfleet worker.
Team, 2 operations
get_teamGet teamGETAgents: ask firstRetrieves a single Onfleet team.list_teamsList teamsGETAgents: ask firstLists Onfleet teams with their workers and managers.
Webhook, 2 operations
create_webhookCreate webhookPOSTAgents: ask firstRegisters an Onfleet webhook that posts a chosen event to a URL.list_webhooksList webhooksGETAgents: ask firstLists the Onfleet webhooks and the events they fire on.
Destination, 1 operation
create_destinationCreate destinationPOSTAgents: ask firstCreates an Onfleet destination and geocodes its address.
Organization, 1 operation
get_organizationGet organizationGETAgents: ask firstRetrieves the Onfleet organization tied to the API key, including its delegatees.
Recipient, 1 operation
create_recipientCreate recipientPOSTAgents: ask firstCreates 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.
