Onfleet · JSON Structure

Onfleet Task Structure

Operational structure of a delivery or pickup task in Onfleet.

Type: Properties: 0
Last Mile DeliveryLogisticsFleet ManagementDispatchRoute OptimizationCouriersDriversTrackingGeocodingWebhookArtificial IntelligenceSoftware-as-a-Service

OnfleetTask is a JSON Structure definition published by Onfleet.

Meta-schema:

JSON Structure

Raw ↑
{
  "name": "OnfleetTask",
  "description": "Operational structure of a delivery or pickup task in Onfleet.",
  "fields": [
    {"path": "id", "type": "string", "description": "24-char resource ID."},
    {"path": "shortId", "type": "string", "description": "Short 8-char identifier shown on dashboards and tracking pages."},
    {"path": "state", "type": "integer", "enum": [0, 1, 2, 3], "description": "0 Unassigned, 1 Assigned, 2 Active, 3 Completed."},
    {"path": "pickupTask", "type": "boolean"},
    {"path": "completeAfter", "type": "integer", "format": "unix-ms"},
    {"path": "completeBefore", "type": "integer", "format": "unix-ms"},
    {"path": "destination.location", "type": "array", "format": "geojson-point"},
    {"path": "destination.address.unparsed", "type": "string"},
    {"path": "recipients[].name", "type": "string"},
    {"path": "recipients[].phone", "type": "string", "format": "e164"},
    {"path": "worker", "type": "string", "nullable": true},
    {"path": "container.type", "type": "string", "enum": ["ORGANIZATION", "TEAM", "WORKER"]},
    {"path": "dependencies", "type": "array", "items": "task-id"},
    {"path": "metadata[].name", "type": "string"},
    {"path": "metadata[].type", "type": "string", "enum": ["boolean", "number", "string", "object", "array"]},
    {"path": "metadata[].value", "type": "any"},
    {"path": "eta", "type": "integer", "format": "unix-ms"},
    {"path": "trackingURL", "type": "string", "format": "uri"},
    {"path": "completionDetails.success", "type": "boolean"},
    {"path": "completionDetails.photoUploadIds", "type": "array"},
    {"path": "completionDetails.signatureUploadId", "type": "string"}
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/onfleet-task-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.