Onfleet · Arazzo Workflow

Onfleet Onboard Worker to Team

Version 1.0.0

Create a team, add a new worker to it, then confirm the worker's membership.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Last Mile DeliveryLogisticsFleet ManagementDispatchRoute OptimizationCouriersDriversTrackingGeocodingWebhookArtificial IntelligenceSoftware-as-a-ServiceArazzoWorkflows

Provider

onfleet

Workflows

onboard-worker-to-team
Create a team and a worker, then verify the worker belongs to the team.
Creates a team, creates a worker that belongs to it, and confirms the resulting membership.
3 steps inputs: managerId, teamName, vehicleType, workerName, workerPhone outputs: teamId, teams, workerId
1
createTeam
Create the team the new worker will belong to.
2
createWorker
Create the worker and assign them to the team just created.
3
confirmWorker
Read the worker back to confirm team membership and duty status.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Onfleet Onboard Worker to Team
  summary: Create a team, add a new worker to it, then confirm the worker's membership.
  description: >-
    Stands up a delivery team and its first driver in one pass. The workflow
    creates a team, creates a worker assigned to that team in the same flow
    (Onfleet requires a worker to belong to at least one team at creation), and
    then reads the worker back to confirm the team membership and capture the
    worker's organization and duty status. Every step spells out its request
    inline so the flow can be read and executed without opening the underlying
    OpenAPI descriptions.
  version: 1.0.0
sourceDescriptions:
- name: organizationsApi
  url: ../openapi/onfleet-organizations-api-openapi.yml
  type: openapi
- name: workersApi
  url: ../openapi/onfleet-workers-api-openapi.yml
  type: openapi
workflows:
- workflowId: onboard-worker-to-team
  summary: Create a team and a worker, then verify the worker belongs to the team.
  description: >-
    Creates a team, creates a worker that belongs to it, and confirms the
    resulting membership.
  inputs:
    type: object
    required:
    - teamName
    - managerId
    - workerName
    - workerPhone
    properties:
      teamName:
        type: string
        description: The display name for the new team.
      managerId:
        type: string
        description: An administrator id to set as the team manager.
      workerName:
        type: string
        description: The worker's full name.
      workerPhone:
        type: string
        description: The worker's phone number in E.164 format.
      vehicleType:
        type: string
        description: The worker's vehicle type (CAR, MOTORCYCLE, BICYCLE, or TRUCK).
  steps:
  - stepId: createTeam
    description: Create the team the new worker will belong to.
    operationId: createTeam
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.teamName
        workers: []
        managers:
        - $inputs.managerId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      teamId: $response.body#/id
  - stepId: createWorker
    description: Create the worker and assign them to the team just created.
    operationId: createWorker
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.workerName
        phone: $inputs.workerPhone
        teams:
        - $steps.createTeam.outputs.teamId
        vehicle:
          type: $inputs.vehicleType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      workerId: $response.body#/id
  - stepId: confirmWorker
    description: Read the worker back to confirm team membership and duty status.
    operationId: getWorker
    parameters:
    - name: workerId
      in: path
      value: $steps.createWorker.outputs.workerId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      teams: $response.body#/teams
      onDuty: $response.body#/onDuty
      organization: $response.body#/organization
  outputs:
    teamId: $steps.createTeam.outputs.teamId
    workerId: $steps.createWorker.outputs.workerId
    teams: $steps.confirmWorker.outputs.teams

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow 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 workflow
curl "https://apis.io/api/v1/arazzo/onfleet-onboard-worker-to-team-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?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.