List Hubs

onfleet.list_hubs
ActionBusiness appsconnection required

Calls the Onfleet API with the connection's credentials.

List every hub, with its address and the teams that use it.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Onfleet
Secret shape
the API key, or {"api_key": "…"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

This node takes no configuration beyond its connection.

Output

One shape.

result

FieldTypeExample
items
The records on this page, exactly as Onfleet returned them.
array—
count
How many records are on this page.
number—
items[].id
A hub's Onfleet id.
string—
items[].name
That hub's name.
string—
items[].address.street
The hub's street name.
string—
items[].address.city
The hub's city.
string—
items[].location
The hub's [longitude, latitude] pair.
array—
items[].teams
The team ids that start their shifts there.
array—
{
  "count": 0,
  "items": [
    {
      "address": {
        "city": "",
        "street": ""
      },
      "id": "",
      "location": [],
      "name": "",
      "teams": []
    }
  ]
}

See List Hubs run in a workflow.

In a technical demo we add the Onfleet connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.