# List bulk reassignments (/docs/api-reference/scheduling-reassignments/list-scheduling-reassignments)

Newest first, with how each is going.

`GET https://api.coss.com/v1/scheduling/reassignments`

Authenticate with your API key as a bearer token (`Authorization: Bearer coss_test_…`). Responses are JSON with snake_case fields; errors are `{ error: { type, code, message, param?, issues?, request_id } }` (https://coss.com/docs/api-reference/errors.md).

## Query parameters

- `limit` (integer, 1-100, default 20)
- `after` (string): The last id of the previous page.

## Example request

TypeScript (the `coss` package):

```ts
import { Coss } from "coss";

const coss = new Coss({
  apiKey: process.env.COSS_API_KEY,
  baseUrl: "https://api.coss.com",
});

const { data, error } = await coss.scheduling.reassignments.list();
```

HTTP:

```sh
curl -X GET "https://api.coss.com/v1/scheduling/reassignments" \
  -H "Authorization: Bearer $COSS_API_KEY"
```

## Response 200

The runs.

- `object` ("list", required)
- `data` (object[], required)
  - `object` ("scheduling.reassignment", required)
  - `id` (string, required)
  - `status` ("pending" | "running" | "completed" | "cancelled", required)
  - `reason_code` ("host_unavailable" | "out_of_office" | "workload" | "customer_request" | "offboarding" | "other", required)
  - `out_of_office` (string | null, required)
  - `undo_of` (string | null, required)
  - `counts` (object, required)
    - `total` (number, required)
    - `pending` (number, required)
    - `reassigned` (number, required)
    - `skipped` (number, required): They'd moved on since it was selected.
    - `no_candidate` (number, required): Nobody could take them: they stayed.
    - `failed` (number, required)
    - `cancelled` (number, required)
  - `created_at` (string, required)
  - `started_at` (string | null, required)
  - `finished_at` (string | null, required)
- `has_more` (boolean, required)

Example:

```json
{
  "object": "list",
  "data": [
    {
      "object": "scheduling.reassignment",
      "id": "reasn_01kd2m9a0b1c2d3e4f5g6h7j8m",
      "status": "completed",
      "reason_code": "out_of_office",
      "out_of_office": "ooo_01kd2m9a0b1c2d3e4f5g6h7j8m",
      "undo_of": null,
      "counts": {
        "total": 12,
        "pending": 0,
        "reassigned": 11,
        "skipped": 0,
        "no_candidate": 1,
        "failed": 0,
        "cancelled": 0
      },
      "created_at": "2027-01-01T10:00:00.000Z",
      "started_at": "2027-01-01T10:00:01.000Z",
      "finished_at": "2027-01-01T10:00:09.000Z"
    }
  ],
  "has_more": false
}
```

## Errors

- `400`: The `Coss-Version` header names an unknown API version (`invalid_api_version`).
- `401`: The API key is missing, invalid, revoked or expired (`authentication_error`).
- `403`: The API key lacks the permission this endpoint needs (`permission_error`), or its organization is suspended (`organization_suspended`).
- `422`: The request failed validation (`validation_error`, see `issues`), or can't be done: see `code`.
- `429`: Too many requests with this API key (`rate_limited`), or too many requests with invalid keys from this address (`too_many_failed_authentications`). Retry after `Retry-After` seconds. Successful responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds until the limit is fully restored).
- `500`: Unexpected server error (`api_error` / `internal_error`).
- `503`: The API key could not be verified right now; retry (`service_unavailable`).