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

# List candidates

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

Module: Candidates · operationId: `listCandidates` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequifi.com/#/api/list-candidates

Lists candidates: people in your recruiting pipeline who are not yet onboarding records. Results are newest first, 20 per page by default. There is no date filter, so a sync has to page through the whole list each time.

**Filtering and paging:**

- Filters combine with AND.
- `first_name`, `last_name`, `full_name`, `email`, `mobile_no`, `source` and `lead_status` are partial, case-insensitive matches. `_` and `%` in a value act as wildcards, so `email=jo_n@example.com` also matches `join@example.com`. Compare exact values on your side before you treat a result as a match.
- `lead_status` matches the candidate's free-text status (for example `Follow Up`). `pipeline_status` is an exact stage name from `GET /v1/candidates/stages` (case-insensitive).
- `recruiter_id` is an exact user id.
- `page` starts at 1. `per_page` defaults to 20, maximum 200. `last_page` is `0` when nothing matches, and a page past the end returns an empty `candidates` array.
- Sorted by `id`, newest first. Candidates added while you page shift later pages, so de-duplicate on `id`.
- Unknown query parameters are rejected with `400`.

**Formats:**

- `interview_date` and `pipeline_status_date` are calendar days returned as midnight UTC, for example `"2026-06-03T00:00:00.000Z"`. Use the first 10 characters. Converting them to a US time zone shows the previous day.
- `interview_time` is free text as entered in Sequifi, for example `"14:30:00"` or `"2:30 PM"`.
- `last_hired_date`, `created_at` and `updated_at` are UTC timestamps, for example `"2026-05-20T09:12:44.000Z"`.
- `lead_rating`, `custom_rating` and `overall_rating` are decimal strings such as `"4.00"`, or null.
- `custom_fields_detail` is an array of `{id, field_name, field_type, value}`. It is `[]` when cleared and null when never set.
- `status` is the free-text status. `pipeline_status` is the stage name, or null when unset or when the stage was hidden or deleted.
- `recruiter` and `reporting_manager` are `{id, first_name, last_name, email}`, or null when unset or when that user no longer exists.
- `filters` echoes the filters you applied, keyed by parameter name, or is null.

**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 Bad Request: recruiter_id must be a positive integer`

**Related:**

- `GET /v1/candidates/{id}` returns one candidate.
- To start onboarding someone, call `POST /v1/onboarding` and pass the candidate `id` as `lead_id` to keep the link. Creating the onboarding record does not change the candidate.

## 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 email. `_` and `%` act as wildcards; compare the exact address on your side. Example: `alex.morgan@example.com`.
- `mobile_no` (string): Partial match on mobile number. Example: `5125550148`.
- `lead_status` (string): Partial, case-insensitive match on the candidate's free-text status, for example `Follow Up`. Not the pipeline stage. Example: `Follow Up`.
- `pipeline_status` (string): Exact pipeline stage name (case-insensitive), from `GET /v1/candidates/stages`. Example: `Phone Screen`.
- `source` (string): Partial, case-insensitive match on the candidate's source. Example: `Referral`.
- `recruiter_id` (integer): Exact recruiter user id. Minimum: 1. Example: `57`.

## Example request

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

## Responses

### 200: One page of candidates. 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 candidates that match the filters.
  - `last_page` (integer): Last page number. `0` when nothing matches.
  - `filters` (object, nullable): The filters you applied, keyed by parameter name. Null when none.
  - `candidates` (array of object): Candidates on this page, newest first.
    - `id` (integer): Candidate id. Pass it as `lead_id` on `POST /v1/onboarding`.
    - `first_name` (string): First name.
    - `last_name` (string): Last name.
    - `email` (string, nullable): Email address.
    - `mobile_no` (string, nullable): Mobile number as stored.
    - `source` (string, nullable): Where the candidate came from.
    - `status` (string, nullable): Free-text status, for example `Follow Up`.
    - `pipeline_status` (string, nullable): Pipeline stage name, or null when unset, hidden or deleted.
    - `pipeline_status_date` (string, nullable): Day the stage was set, as midnight UTC. Use the date part.
    - `interview_date` (string, nullable): Interview day, as midnight UTC. Use the date part.
    - `interview_time` (string, nullable): Interview time as free text.
    - `last_hired_date` (string, nullable): UTC timestamp of the last hire, if any.
    - `lead_rating` (string, nullable): Rating as a decimal string.
    - `custom_rating` (string, nullable): Custom rating as a decimal string.
    - `overall_rating` (string, nullable): Overall rating as a decimal string.
    - `custom_fields_detail` (array of object): Candidate custom fields. `[]` when cleared, null when never set.
      - `id` (integer, nullable): Custom field id.
      - `field_name` (string, nullable): Field name.
      - `field_type` (string, nullable): Field type, for example `text`.
      - `value` (any): Stored value as entered. Usually a string.
    - `comments` (string, nullable): Free-text comments.
    - `state_code` (string, nullable): Two-letter state code.
    - `office_name` (string, nullable): Office name.
    - `recruiter` (object, nullable): `{id, first_name, last_name, email}` of the recruiter, or null.
    - `reporting_manager` (object, nullable): `{id, first_name, last_name, email}` of the reporting manager, or null.
    - `created_at` (string): UTC timestamp.
    - `updated_at` (string): UTC timestamp.

Example (list_response): One page of candidates

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "current_page": 1,
    "per_page": 20,
    "total": 1,
    "last_page": 1,
    "filters": {
      "lead_status": "Follow Up"
    },
    "candidates": [
      {
        "id": 1093,
        "first_name": "Alex",
        "last_name": "Morgan",
        "email": "alex.morgan@example.com",
        "mobile_no": "5125550148",
        "source": "Referral",
        "status": "Follow Up",
        "interview_date": "2026-06-03T00:00:00.000Z",
        "interview_time": "14:30:00",
        "last_hired_date": null,
        "pipeline_status_date": "2026-05-27T00:00:00.000Z",
        "lead_rating": "4.00",
        "custom_rating": "3.50",
        "overall_rating": "3.75",
        "custom_fields_detail": [
          {
            "id": 12,
            "field_name": "Resume URL",
            "field_type": "text",
            "value": "https://example.com/resume.pdf"
          }
        ],
        "comments": "Strong closer, available immediately.",
        "created_at": "2026-05-20T09:12:44.000Z",
        "updated_at": "2026-05-27T16:03:10.000Z",
        "state_code": "TX",
        "office_name": "Austin",
        "pipeline_status": "Phone Screen",
        "recruiter": {
          "id": 57,
          "first_name": "Jamie",
          "last_name": "Chen",
          "email": "jamie.chen@example.com"
        },
        "reporting_manager": {
          "id": 312,
          "first_name": "Riley",
          "last_name": "Brooks",
          "email": "riley.brooks@example.com"
        }
      }
    ]
  }
}
```

Example (empty_response): No candidates match the filters

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "current_page": 1,
    "per_page": 20,
    "total": 0,
    "last_page": 0,
    "filters": {
      "email": "nobody@example.com"
    },
    "candidates": []
  }
}
```

### 400: An unknown query parameter or an invalid paging or `recruiter_id` value.

Example (invalid_param): Unknown query parameter

```json
{
  "status": 400,
  "message": "Invalid query parameter(s)",
  "data": {
    "invalid_params": [
      "pipeline_status_id"
    ],
    "allowed_params": [
      "first_name",
      "last_name",
      "full_name",
      "email",
      "mobile_no",
      "lead_status",
      "pipeline_status",
      "source",
      "recruiter_id",
      "page",
      "per_page"
    ]
  }
}
```

### 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": {}
}
```
