List Teams

onfleet.list_teams
ActionBusiness appsconnection required

Calls the Onfleet API with the connection's credentials.

List every team, with its workers, managers and hub.

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 team's Onfleet id.
string—
items[].name
That team's name.
string—
items[].workers
The worker ids on that team.
array—
items[].managers
The administrator ids who manage it.
array—
items[].hub
The hub that team starts and ends shifts at.
string—
{
  "count": 0,
  "items": [
    {
      "hub": "",
      "id": "",
      "managers": [],
      "name": "",
      "workers": []
    }
  ]
}

See List Teams 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.