Sign in

Create worker

documented

Create a new driver/worker in your organization.

POST /workersWorkersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://onfleet.com/api/v2/workers" \
  -X POST \
  -u "{{ONFLEET_API_KEY}}:" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$name}}", "phone": "{{$phone}}", "teams": ["{{$team_id}}"], "vehicle": {"type": "CAR", "description": "{{$vehicle_description}}", "licensePlate": "{{$license_plate}}", "color": "{{$vehicle_color}}"} }'
Create worker · Onfleet · OpenIntegrations