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

# List positions

`GET https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/positions`

Module: Positions · operationId: `listPositions` · Auth: `Authorization: Bearer <token>`
Web page: https://apidocs.sequipay.com/#/api/list-positions

Returns the authenticated company's positions, paginated. By default only **active** (non-archived) positions are returned; soft-deleted positions are never returned.

Requires the `positions:read` scope.

## Query parameters

- `title` (string): Partial, case-insensitive match on the title. Example: `sales`.
- `default_worker_type` (string): Exact match on the default classification (Core `default_classification`). Example: `w2`.
- `status` (string): `active` (default) returns non-archived positions; `archived` returns only archived positions; `all` returns both (never soft-deleted). One of: `active`, `archived`, `all`. Default: `"active"`.
- `page` (integer): 1-based page number. Default: `1`. Minimum: 1.
- `per_page` (integer): Page size (max 200). Default: `20`. Minimum: 1. Maximum: 200.

## Example request

```bash
curl -X GET "https://{apiId}.execute-api.us-west-1.amazonaws.com/{stage}/v1/positions" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

## Responses

### 200: A page of positions.

- `status` (integer) Example: `200`.
- `message` (string) Example: `success`.
- `data` (object)
  - `positions` (array of object)
    - `id` (integer (int64)) Example: `7`.
    - `title` (string) Example: `Sales Rep`.
    - `description` (string, nullable) Example: `Front line sales`.
    - `default_worker_type` (string): Default employment classification (Core `default_classification`). Example: `w2`.
    - `status` (string): Derived from the archived date — `archived` once it is set. One of: `active`, `archived`.
    - `archived_at` (string (date-time), nullable)
    - `created_at` (string (date-time), nullable) Example: `2024-01-15T12:00:00.000Z`.
    - `updated_at` (string (date-time), nullable) Example: `2024-06-01T09:30:00.000Z`.
  - `current_page` (integer) Example: `1`.
  - `per_page` (integer) Example: `20`.
  - `total` (integer) Example: `12`.
  - `last_page` (integer) Example: `1`.
  - `filters` (object): Echoes the filters actually applied.

### 401: Missing, invalid, expired, or revoked token (from the authorizer).

### 403: The token lacks the required scope.

```json
{
  "error": "insufficient_scope",
  "required": "users:read"
}
```

### 500: An infrastructure or data error. The endpoint fails closed — a 500, never a partial or empty-looking result.

```json
{
  "status": 500,
  "message": "internal error",
  "data": null
}
```
