Skip to the page

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

    Chapters

    Eligibility

    Get an eligibility batch

    GET/api/v1/eligibility/batches/{id}

    One batch of the key's organization and mode: its state and counts, and each item in order with the check it made (read it with GET /eligibility/{id}) or why it failed or was skipped.

    Needs a key with read permission.

    Request

    Path parameters

    Path parameters
    NameTypeRequiredDescription
    idstringrequiredAn eligibility batch ID (elb_...).

    Response

    The batch with its items. Status 200.

    Response fields
    NameTypeDescription
    idstringAn ID that starts with elb_.
    objectstringAlways `eligibility_batch`.
    statestringrunning: checks are still to run. completed: every check ran. cancelled: stopped; the checks not yet run were skipped.One of: `running`, `completed`, `cancelled`.
    sourcestringpatients: started from the Patients list in the dashboard. api: started with POST /eligibility/batches.One of: `patients`, `api`.
    descriptionvalueThe name given to the batch, when there was one.
    countsobject
    counts.totalintegerAt least -9007199254740991.
    counts.completedintegerChecks that were made and answered.At least -9007199254740991.
    counts.failedintegerChecks that were rejected, could not be made, or ended in an error.At least -9007199254740991.
    counts.skippedintegerChecks that were not made (the batch was cancelled).At least -9007199254740991.
    counts.queuedintegerChecks still to run, including the one running.At least -9007199254740991.
    service_datestring (date) or null
    procedure_codesarray of string or null
    request_idstring or nullThe API request that made the batch; null for one made in the dashboard.
    idempotency_keyvalue
    created_atstring (date-time)
    completed_atstring (date-time) or null
    itemsarray of object
    items[].positionintegerThe place of the check in the batch, from 1.At least -9007199254740991.
    items[].statestringOne of: `queued`, `running`, `completed`, `failed`, `skipped`.
    items[].check_idstring or nullThe eligibility check this item made; read it with GET /eligibility/{id}.
    items[].patient_idstring or nullAn ID that starts with pat_.
    items[].failureobject or null
    items[].failure.codestringOne of: `rejected`, `payer_unavailable`, `error`, `unavailable`, `validation`, `forbidden`, `cancelled`.
    items[].failure.messagevalue
    items[].started_atstring (date-time) or null
    items[].finished_atstring (date-time) or null

    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.
    404NOT_FOUNDNot found.
    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/elb_01JM000000E00800000000003G" \
      -H "Authorization: Bearer $CLAIMHOUSE_KEY"

    Example response: 200

    JSON
    {
      "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",
      "items": [
        {
          "position": 1,
          "state": "completed",
          "check_id": "elg_01JM000000E00800000000000G",
          "patient_id": "pat_01JM000000E00800000000004K",
          "failure": null,
          "started_at": "2026-03-10T15:30:00.100000+00:00",
          "finished_at": "2026-03-10T15:30:00.430000+00:00"
        },
        {
          "position": 2,
          "state": "failed",
          "check_id": null,
          "patient_id": null,
          "failure": {
            "code": "rejected",
            "message": null
          },
          "started_at": "2026-03-10T15:30:00.440000+00:00",
          "finished_at": "2026-03-10T15:30:00.700000+00:00"
        }
      ]
    }