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

# List onboarding records

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

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

Lists people who are being onboarded and are not hired yet, newest first, 20 per page by default. A record leaves this list when it is hired with `PUT /v1/onboarding/hire`, so a poller never sees the hire here: follow hired people with `GET /v1/users`. Branch on `status_id`, because your company can rename statuses.

**Filtering and paging:**

- Filters combine with AND.
- `first_name`, `last_name`, `full_name`, `email` and `employee_id` are partial, case-insensitive matches. `_` and `%` in a value act as wildcards, so `email=jo_n@example.com` also matches `join@example.com`. Compare the exact value on your side before you treat a result as a duplicate.
- `status` is a partial match on the status name, so `status=Offer` matches Offer Sent, Offer Review, Offer Expired and more. There is no `status_id` filter.
- `updated_after`, `updated_before`, `created_after` and `created_before` take `YYYY-MM-DD` or an ISO 8601 timestamp such as `2026-05-06T13:43:14Z` (a `+hh:mm` offset or a space instead of `T` also work). No zone means UTC. Bounds are inclusive. A bare date means 00:00:00 UTC for `_after` and 23:59:59 UTC for `_before`.
- To poll for changes, pass the newest `updated_at` you have seen as `updated_after`. The record at that exact time comes back again, so de-duplicate on `id`.
- `per_page` defaults to 20, maximum 200. `last_page` is `0` when nothing matches. Sorted by `id`, newest first.
- Unknown query parameters are rejected with `400`.
- A record deleted in the app disappears without a trace.

**Formats:**

- `id` is the onboarding id used by `GET /v1/onboarding/{id}`, send-offer and hire. `employee_id` is the onboarding id string, such as `ONB0012`; the user gets a different one on hire.
- `start_date` (the agreement start date) and `end_date` are calendar days returned as midnight UTC, for example `"2026-11-02T00:00:00.000Z"`. Use the first 10 characters. Converting them to a US time zone shows the previous day.
- `created_at` and `updated_at` are UTC timestamps, for example `"2026-10-01T15:22:08.000Z"`.
- `custom_fields` is a JSON-encoded string such as `"{\"Employment Type\":\"Full Time\"}"`, or null. Parse it yourself.
- `worker_type` comes from the position: `"1099"` or `"w2"` (sometimes `"W2"`).
- `sub_position_id` equals `position_id` when no sub-position was sent at create. `position_name` is the name of `position_id`.
- `user_id` is always null in this list.
- `status_id` and its default `status_name`:
  - `8` Draft: created by `POST /v1/onboarding`. Nothing sent yet.
  - `17` Offer Review: the offer is waiting for internal approval.
  - `4` Offer Sent, Unread; `21` Offer Sent, Read; `12` Offer Resent, Unread; `24` Offer Resent, Read.
  - `13` Offer Letter Accepted; `22` Offer Accepted, Docs Pending; `23` Offer Pending, Docs Completed; `16` Document Review.
  - `6` Requested Change; `2` Declined; `5` Offer Expired.
  - `11` Rejected; `15` Admin Reject; `19` Manager Rejected; `20` Conditions Rejected.
  - `7` Onboarding: set by the hire call. The record then leaves this list.

**Errors:**

- `400 Invalid query parameter(s)`, with `data.invalid_params` and `data.allowed_params`.
- `400 Bad Request: page must be a positive integer`
- `400 Bad Request: per_page must be a positive integer between 1 and 200`
- `400 <name> must be a date (YYYY-MM-DD) or ISO 8601 timestamp` for the four date filters, including impossible dates such as `2026-02-30`.

**Related:**

- `GET /v1/onboarding/{id}` returns one record.
- `POST /v1/onboarding/{id}/send-offer` sends the offer letter for a Draft record.
- `PUT /v1/onboarding/hire` creates the user.
- `GET /v1/users?email=` finds people who were already hired.

## Query parameters

- `page` (integer): Page number, starting at 1. Default: `1`. Minimum: 1. Example: `1`.
- `per_page` (integer): Records per page. Default 20, maximum 200. Default: `20`. Minimum: 1. Maximum: 200. Example: `20`.
- `first_name` (string): Partial, case-insensitive match on first name. Example: `Alex`.
- `last_name` (string): Partial, case-insensitive match on last name. Example: `Morgan`.
- `full_name` (string): Partial, case-insensitive match on first name, a space, then last name. Example: `Alex Morgan`.
- `email` (string): Partial, case-insensitive match on the personal email. `_` and `%` act as wildcards; compare the exact address on your side. Example: `alex.morgan@example.com`.
- `employee_id` (string): Partial, case-insensitive match on the onboarding id string, such as `ONB0012`. Example: `ONB0012`.
- `status` (string): Partial, case-insensitive match on the status name, for example `Draft` or `Offer Sent`. `Offer` matches several statuses. There is no filter by `status_id`. Example: `Draft`.
- `updated_after` (string): Records with `updated_at` on or after this value. `YYYY-MM-DD` (from 00:00:00 UTC) or an ISO 8601 timestamp; no zone means UTC. Pass the newest `updated_at` you have seen to poll for changes. Example: `2026-10-01T15:22:08Z`.
- `updated_before` (string): Records with `updated_at` on or before this value. A bare date runs to 23:59:59 UTC that day. Example: `2026-10-31`.
- `created_after` (string): Records with `created_at` on or after this value. `YYYY-MM-DD` or an ISO 8601 timestamp. Example: `2026-10-01`.
- `created_before` (string): Records with `created_at` on or before this value. A bare date runs to 23:59:59 UTC that day. Example: `2026-10-31`.

## Example request

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

## Responses

### 200: One page of onboarding records. An empty page is still a `200`.

- `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.
  - `current_page` (integer): The page returned.
  - `per_page` (integer): Page size used.
  - `total` (integer): Number of records that match.
  - `last_page` (integer): Last page number. `0` when nothing matches.
  - `filters` (object, nullable): The filters you applied, as sent. Null when none.
  - `onboarding_employees` (array of object): Records on this page, newest first.
    - `id` (integer): Onboarding id. Use it for send-offer, hire and `GET /v1/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. The offer letter goes here.
    - `mobile_no` (string): Mobile number.
    - `worker_type` (string, nullable): `1099` or `w2` (sometimes `W2`), from the position.
    - `status_id` (integer): Onboarding status id. See the list above. Branch on this, not on the name.
    - `status_name` (string, nullable): Status name. Your company can rename statuses.
    - `position_id` (integer): Position id.
    - `position_name` (string, nullable): Name of `position_id`.
    - `sub_position_id` (integer, nullable): Sub-position id. Equals `position_id` when none was sent at create.
    - `department_id` (integer, nullable): Department id.
    - `office_id` (integer): Office id.
    - `office_name` (string, nullable): Office name.
    - `manager_id` (integer, nullable): Manager's user id.
    - `recruiter_id` (integer, nullable): Recruiter's user id. The offer letter is sent as this user.
    - `lead_id` (integer, nullable): Candidate id from `GET /v1/candidates`, if one was linked.
    - `team_id` (integer, nullable): Team id stored as a label. It does not place the person on a team.
    - `start_date` (string, nullable): Agreement start day as midnight UTC, for example `2026-11-02T00:00:00.000Z`. Use the date part.
    - `end_date` (string, nullable): Agreement end day as midnight UTC, or null. Use the date part.
    - `custom_fields` (string, nullable): Onboarding custom fields as a JSON-encoded string, or null.
    - `user_id` (integer, nullable): Always null here (hired records are not listed).
    - `created_at` (string): UTC timestamp.
    - `updated_at` (string): UTC timestamp. Use it with `updated_after` to poll.

Example (list_response): One page of onboarding records

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "current_page": 1,
    "per_page": 20,
    "total": 1,
    "last_page": 1,
    "filters": null,
    "onboarding_employees": [
      {
        "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"
      }
    ]
  }
}
```

Example (filtered_response): Records still in Draft

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "current_page": 1,
    "per_page": 20,
    "total": 1,
    "last_page": 1,
    "filters": {
      "status": "Draft"
    },
    "onboarding_employees": [
      {
        "id": 4830,
        "employee_id": "ONB0013",
        "first_name": "Jordan",
        "last_name": "Reyes",
        "email": "jordan.reyes@example.com",
        "mobile_no": "5125550199",
        "worker_type": "w2",
        "status_id": 8,
        "position_id": 14,
        "sub_position_id": 14,
        "department_id": 3,
        "office_id": 7,
        "manager_id": null,
        "recruiter_id": null,
        "lead_id": null,
        "team_id": null,
        "start_date": "2026-11-09T00:00:00.000Z",
        "end_date": null,
        "custom_fields": null,
        "user_id": null,
        "created_at": "2026-10-03T18:05:51.000Z",
        "updated_at": "2026-10-03T18:05:51.000Z",
        "position_name": "Setter",
        "office_name": "Austin",
        "status_name": "Draft"
      }
    ]
  }
}
```

### 400: An unknown query parameter, or an invalid paging or date value.

Example (invalid_param): Unknown query parameter

```json
{
  "status": 400,
  "message": "Invalid query parameter(s)",
  "data": {
    "invalid_params": [
      "status_id"
    ],
    "allowed_params": [
      "first_name",
      "last_name",
      "full_name",
      "email",
      "employee_id",
      "status",
      "page",
      "per_page",
      "updated_after",
      "updated_before",
      "created_after",
      "created_before"
    ]
  }
}
```

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

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

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

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