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

# List candidate pipeline stages

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

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

Returns your company's candidate pipeline stages (the columns of the hiring pipeline in Sequifi) in display order. Use a stage's `status_name` as the `pipeline_status` filter on `GET /v1/candidates`. These stages are not onboarding statuses: those are the `status_id` values on `GET /v1/onboarding`.

**What happens:**

- Read-only. Hidden and deleted stages are left out.
- Not paginated: every stage comes back in one response.
- Query parameters are ignored.

**Formats:**

- `id` and `display_order` are integers. Candidates are filtered by stage name, not by stage id.
- `colour_code` is a hex color string, for example `#E4E9FF`.

**Related:**

- `GET /v1/candidates?pipeline_status=<status_name>` lists the candidates in one stage.

## Example request

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

## Responses

### 200: The company's active pipeline stages, in display order.

- `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.
  - `stages` (array of object): Active stages, ordered by `display_order`, then `id`.
    - `id` (integer): Stage id.
    - `status_name` (string): Stage name. Pass it as `pipeline_status` on `GET /v1/candidates`.
    - `display_order` (integer): Position of the stage in the pipeline.
    - `colour_code` (string): Hex color shown for the stage in Sequifi.

```json
{
  "status": 200,
  "message": "success",
  "data": {
    "requestedBy": "acme",
    "stages": [
      {
        "id": 1,
        "status_name": "New",
        "display_order": 1,
        "colour_code": "#E4E9FF"
      },
      {
        "id": 3,
        "status_name": "Phone Screen",
        "display_order": 3,
        "colour_code": "#E4E9FF"
      }
    ]
  }
}
```

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