---
title: "Onboard Personnel"
method: POST
path: "/api/v1/personnel/onboard"
tags: ["v1", "Personnel"]
---

# Onboard Personnel

`POST /api/v1/personnel/onboard`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/personnel/onboard`
- Auth: none declared

Create personnel record + WorkOS user + local users row in one atomic flow.

Requires personnel write permission. Rolls back the personnel record if
any subsequent step fails.

## Request body

- PersonnelOnboard: Schema for the combined onboard flow: create personnel + provision user account. Email and PIN are optional. The person is a roster record either way. A portal login and an invite email are created only when ``send_invite`` is true.
  - `name` string, required
  - `email` string, nullable
  - `phone` string, nullable
  - `hire_date` string, nullable
  - `status` string
  - `employee_type` string
  - `shop_id` integer, nullable
  - `capability_ids` integer[]
  - `capabilities_with_proficiency` CapabilityProficiency[], nullable: Capabilities with proficiency; takes precedence over capability_ids
    - `capability_id` integer, required
    - `proficiency_level` 'basic' | 'intermediate' | 'advanced' | 'expert'
  - `shop_role_id` integer, nullable
  - `send_invite` boolean
  - `confirm` boolean
  - `pin` string, nullable
  - `export_authorization` 'us_person' | 'foreign_person', nullable
  - `gusto_id` string, nullable
  - `address` string, nullable
  - `hourly_rate` number, nullable
  - `emergency_contact_name` string, nullable
  - `emergency_contact_phone` string, nullable
  - `notes` string, nullable
  - `preferred_language` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
