<!-- Generated by scripts/build-docs.js. Edit docs/swagger.yaml or docs/guides/, then run `npm run docs:build`. -->

# Get an onboarding record

`GET https://marketplace-api.sequifi.com/v1/onboarding/{id}`

Module: Onboarding · operationId: `getOnboardingEmployee` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequifi.com/#/api/get-onboarding-employee

Returns one onboarding record that is not hired yet, as a single object in `data.onboarding_employee`. After `PUT /v1/onboarding/hire` the same id returns `404`, which is expected: follow the person at `GET /v1/users/{user_id}` from then on.

**Formats:**

- Same fields and formats as one item of `GET /v1/onboarding`, including the `status_id` list there.
- `start_date` and `end_date` are calendar days returned as midnight UTC (`"2026-11-02T00:00:00.000Z"`). Use the first 10 characters.
- `custom_fields` is a JSON-encoded string or null.

**Errors:**

- `400 Invalid onboarding id`: the id is not a positive whole number.
- `400 Cannot use query parameters when fetching a single onboarding employee by id`
- `404 Onboarding employee not found`: no record has this id, or the record was hired.

**Related:**

- `POST /v1/onboarding/{id}/send-offer` while the record is Draft (`status_id` 8).
- `PUT /v1/onboarding/hire` once the candidate has accepted.

## Path parameters

- `id` (integer, **required**): Onboarding id, the `onboarding_id` returned by `POST /v1/onboarding`. Minimum: 1. Example: `4821`.

## Example request

```bash
curl -X GET "https://marketplace-api.sequifi.com/v1/onboarding/4821" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: The onboarding record.

- `status` (integer): Same as the HTTP status code. Example: `200`.
- `message` (string) Example: `success`.
- `data` (object)
  - `requestedBy` (string): Label of the API credentials that made the call.
  - `onboarding_employee` (object): The record, with the same fields as `GET /v1/onboarding`.
    - `id` (integer): Onboarding id.
    - `employee_id` (string): Onboarding id string, for example `ONB0012`.
    - `first_name` (string): First name.
    - `last_name` (string): Last name.
    - `email` (string): Personal email.
    - `status_id` (integer): Onboarding status id, for example `8` Draft or `4` Offer Sent, Unread.
    - `status_name` (string, nullable): Status name. Can be renamed by your company.
    - `position_id` (integer): Position id.
    - `sub_position_id` (integer, nullable): Sub-position id. Equals `position_id` when none was sent.
    - `office_id` (integer): Office id.
    - `manager_id` (integer, nullable): Manager's user id.
    - `recruiter_id` (integer, nullable): Recruiter's user id.
    - `start_date` (string, nullable): Agreement start day as midnight UTC. Use the date part.
    - `custom_fields` (string, nullable): Custom fields as a JSON-encoded string.
    - `updated_at` (string): UTC timestamp.

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "onboarding_employee": {
      "id": 4821,
      "employee_id": "ONB0012",
      "first_name": "Alex",
      "last_name": "Morgan",
      "email": "alex.morgan@example.com",
      "mobile_no": "5125550148",
      "worker_type": "1099",
      "status_id": 4,
      "position_id": 14,
      "sub_position_id": 22,
      "department_id": 3,
      "office_id": 7,
      "manager_id": 312,
      "recruiter_id": 57,
      "lead_id": 1093,
      "team_id": null,
      "start_date": "2026-11-02T00:00:00.000Z",
      "end_date": null,
      "custom_fields": "{\"Employment Type\":\"Full Time\"}",
      "user_id": null,
      "created_at": "2026-10-01T15:22:08.000Z",
      "updated_at": "2026-10-02T09:41:30.000Z",
      "position_name": "Setter",
      "office_name": "Austin",
      "status_name": "Offer Sent, Unread"
    }
  }
}
```

### 400: The id is invalid, or query parameters were sent with it.

Example (invalid_id): id is not a positive whole number

```json
{
  "status": 400,
  "message": "Invalid onboarding id",
  "data": {}
}
```

### 401: Missing, unknown, expired or disabled token. Sent by the gateway as `{"message":"Unauthorized"}`, without `status` or `data`.

```json
{
  "message": "Unauthorized"
}
```

### 404: No record has this id, or the record was hired (expected after `PUT /v1/onboarding/hire`).

```json
{
  "status": 404,
  "message": "Onboarding employee not found",
  "data": {}
}
```

### 500: Unexpected server error. Safe to retry.

```json
{
  "status": 500,
  "message": "Internal Server Error",
  "data": {}
}
```
