Skip to the page

Search the titles, headings and text of every guide and API reference page.

    Chapters

    Eligibility

    List eligibility batches

    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

    Query parameters
    NameTypeRequiredDescription
    limitintegeroptionalHow many items to return, from 1 to 100. Default 25.At least 1.At most 100.
    cursorstringoptionalThe next_cursor of the previous page, to get the page after it. Opaque: pass it back unchanged.
    idempotency_keystringoptionalOnly the batch started with this Idempotency-Key (what a request that timed out started).

    Response

    A page of batch summaries. Status 200.

    Response fields
    NameTypeDescription
    dataarray of object
    data[].idstringAn ID that starts with elb_.
    data[].objectstringAlways `eligibility_batch`.
    data[].statestringrunning: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped.One of: `running`, `completed`, `cancelled`.
    data[].sourcestringpatients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches.One of: `patients`, `api`.
    data[].descriptionvalueThe name given to the batch, when there was one.
    data[].countsobject
    data[].counts.totalintegerAt least -9007199254740991.
    data[].counts.completedintegerChecks that were made and answered.At least -9007199254740991.
    data[].counts.failedintegerChecks that were rejected, could not be made, or ended in an error.At least -9007199254740991.
    data[].counts.skippedintegerChecks that were not made (the batch was cancelled).At least -9007199254740991.
    data[].counts.queuedintegerChecks still to run, including the one running.At least -9007199254740991.
    data[].service_datestring (date) or null
    data[].procedure_codesarray of string or null
    data[].request_idstring or nullThe API request that made the batch; null for one made in the dashboard.
    data[].idempotency_keyvalue
    data[].created_atstring (date-time)
    data[].completed_atstring (date-time) or null
    next_cursorvaluePass as cursor to get the next page; null when there is no next page.

    Errors

    Errors
    HTTP statusCodeWhat it means
    401UNAUTHORIZEDA valid API key is required. Send it as "Authorization: Bearer <key>".
    403PERMISSION_DENIEDThis API key is not allowed to do that.
    422INVALID_REQUESTThe request is not valid.
    429TOO_MANY_REQUESTSToo many requests of this kind lately. Wait, then try again.
    504TIMEOUTThe 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>.
    500INTERNALSomething went wrong on our side. Quote the request ID if you contact us.

    Example

    Example request

    Shell
    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
    }