# List eligibility batches

Page: https://app.myclaimhouse.com/docs/api/listEligibilityBatches

`GET /api/v1/eligibility/batches`

The batches of the key's organization in the key's mode, newest first, as summaries (with counts, without the items; read one batch for those).

Needs a key with `read` permission.

## Request

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | No | How many items to return, from 1 to 100. Default 25. At least 1. At most 100. |
| `cursor` | string | No | The next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged. |
| `idempotency_key` | string | No | Only the batch started with this Idempotency-Key (what a request that timed out started). |

## Response

A page of batch summaries. Status `200`.

| Name | Type | Description |
| --- | --- | --- |
| `data` | array of object |  |
| `data[].id` | string | An ID that starts with elb_. |
| `data[].object` | string | Always `eligibility_batch`. |
| `data[].state` | string | running: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped. One of: `running`, `completed`, `cancelled`. |
| `data[].source` | string | patients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches. One of: `patients`, `api`. |
| `data[].description` | value | The name given to the batch, when there was one. |
| `data[].counts` | object |  |
| `data[].counts.total` | integer | At least -9007199254740991. |
| `data[].counts.completed` | integer | Checks that were made and answered. At least -9007199254740991. |
| `data[].counts.failed` | integer | Checks that were rejected, could not be made, or ended in an error. At least -9007199254740991. |
| `data[].counts.skipped` | integer | Checks that were not made (the batch was cancelled). At least -9007199254740991. |
| `data[].counts.queued` | integer | Checks still to run, including the one running. At least -9007199254740991. |
| `data[].service_date` | string (date) or null |  |
| `data[].procedure_codes` | array of string or null |  |
| `data[].request_id` | string or null | The API request that made the batch; null for one made in the dashboard. |
| `data[].idempotency_key` | value |  |
| `data[].created_at` | string (date-time) |  |
| `data[].completed_at` | string (date-time) or null |  |
| `next_cursor` | value | Pass as cursor to get the next page; null when there is no next page. |

## Errors

| HTTP status | Code | What it means |
| --- | --- | --- |
| 401 | `UNAUTHORIZED` | A valid API key is required. Send it as "Authorization: Bearer <key>". |
| 403 | `PERMISSION_DENIED` | This API key is not allowed to do that. |
| 422 | `INVALID_REQUEST` | The request is not valid. |
| 429 | `TOO_MANY_REQUESTS` | Too many requests of this kind lately. Wait, then try again. |
| 504 | `TIMEOUT` | The request took too long. Send it again with the same Idempotency-Key and body after Retry-After seconds: a 409 means it is still finishing (wait and send again), and any other answer is final. If this 504 comes back, find what the request made by listing with ?idempotency_key=<the key>. |
| 500 | `INTERNAL` | Something went wrong on our side. Quote the request ID if you contact us. |

## Example

### Example request

```bash
curl "https://app.myclaimhouse.com/api/v1/eligibility/batches?limit=10" \
  -H "Authorization: Bearer $CLAIMHOUSE_KEY"
```

### Example response: 200

```json
{
  "data": [
    {
      "id": "elb_01JM000000E00800000000003G",
      "object": "eligibility_batch",
      "state": "completed",
      "source": "api",
      "description": "Tomorrow's schedule",
      "counts": {
        "total": 2,
        "completed": 1,
        "failed": 1,
        "skipped": 0,
        "queued": 0
      },
      "service_date": null,
      "procedure_codes": null,
      "request_id": "req_01JM000000E00800000000003H",
      "idempotency_key": "schedule-2026-03-10",
      "created_at": "2026-03-10T15:29:59.900000+00:00",
      "completed_at": "2026-03-10T15:30:00.700000+00:00"
    }
  ],
  "next_cursor": null
}
```
