> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.joincandidhealth.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.joincandidhealth.com/_mcp/server.

# Poll Batch

GET https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/{batch_id}

Polls the status of a batch eligibility check.

Reference: https://docs.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/poll-batch

## Authentication

- OAuth2 — send the obtained token as `Authorization: Bearer <token>`

## Servers

- `https://pre-api.joincandidhealth.com` (Production, default)
- `https://pre-api-staging.joincandidhealth.com` (Staging)
- `https://sandbox-pre-api.joincandidhealth.com` (CandidSandbox)
- `https://staging-pre-api.joincandidhealth.com` (CandidStaging)
- `http://localhost:4000` (Local)

## Request

### Path parameters

- `batch_id` (string, required)

### Query parameters

- `page_token` (string, optional) — A token that can be used to retrieve the next or previous page of results

## Response

### 200

- `items` (list of EligibilityCheck, required)
- `total` (integer, required)
- `next_page_token` (string, optional) — A token that can be used to retrieve the next or previous page of results
- `prev_page_token` (string, optional) — A token that can be used to retrieve the next or previous page of results

## Types

### EligibilityCheck

- `response` (any, required)
- `batch_id` (string, optional)
- `errors` (list of EligibilityCheckError, optional)
- `request` (EligibilityRequest, optional) — An object representing the data for an eligibility request.
- `parsed_response` (ParsedResponse, optional)
- `request_corrections` (list of RequestCorrection, optional)

### EligibilityCheckError

- `source` (enum, required) — enum to represent the source of an error in an eligibility check
  - Allowed values: `CANDID`, `STEDI`
- `errorDetails` (EligibilityCheckErrorDetails, required) — This object is our fern representation of Stedi's EligbilityCheckError object from their API.

### EligibilityRequest

An object representing the data for an eligibility request.

- `payer_id` (string, required) — Supported payer ID values can be found [here](https://www.stedi.com/healthcare/network).
- `provider` (Provider, required)
- `subscriber` (MemberInfo, required) — The primary policyholder for the insurance plan or a dependent with a unique member ID. If a dependent has a unique member ID, include their information here and leave dependent undefined.
- `submitter_transaction_identifier` (string, optional) — A unique identifier for the eligibility check within the batch. Candid returns this identifier in the response for the /batch/\{batch\_id} polling endpoint so you can correlate benefit responses with the original eligibility check.
- `dependent` (MemberInfo, optional) — If a dependent has a unique member ID, include their information as subscriber and leave this field undefined.
- `encounter` (Encounter, optional)
- `get_existing_check_initiated_after` (datetime, optional) — If not provided, this endpoint will run a fresh eligibility check. If provided, it will return an existing successful eligibility check if one exists that was initiated after provided date with the same parameters (Date of Service, Payer ID, Provider, Subscriber, Dependent, and Encounter).
- `source` (string, optional)
- `portal_password` (string, optional) — The password that the provider uses to log in to the payer's portal. This is not commonly used.
- `portal_username` (string, optional) — The username that the provider uses to log in to the payer's portal. This is not commonly used.

### ParsedResponse

- `eligibility_status` (enum, required) — enum to represent the status of a patient's coverage
  - Allowed values: `ACTIVE`, `INACTIVE`, `UNKNOWN`
- `plan_metadata` (PlanMetadata, optional)
- `benefits` (CoverageBenefits, optional)

### RequestCorrection

- `property` (string, required)
- `request_value` (string, required)
- `corrected_value` (string, required)

### EligibilityCheckErrorDetails

This object is our fern representation of Stedi's EligbilityCheckError object from their API.

- `field?` (string, optional)
- `description?` (string, optional)
- `location?` (string, optional)
- `possibleResolutions?` (string, optional)
- `code?` (string, optional)
- `followupAction?` (string, optional)

### Provider

### MemberInfo

- `first_name` (string, required)
- `last_name` (string, required)
- `member_id` (string, optional) — Stedi requires that you supply at least one of these fields in the request: memberId, dateOfBirth, or lastName. However, each payer has different requirements, so you should supply as many of the fields necessary for each payer to identify the subscriber/dependent in their system.
- `date_of_birth` (date, optional) — Stedi requires that you supply at least one of these fields in the request: memberId, dateOfBirth, or lastName. However, each payer has different requirements, so you should supply as many of the fields necessary for each payer to identify the subscriber/dependent in their system.

### Encounter

- `date_of_service` (date, optional) — Defaults to the current date if not provided.
- `service_type_codes` (list of string, optional) — Defaults to HealthBenefitPlanCoverage (30) if not provided. Not all payers support multiple service type codes, so it is recommended to only include a single code per request.

### PlanMetadata

- `payer_name` (string, optional)
- `insurance_type` (string, optional)
- `insurance_type_code` (string, optional)
- `plan_name` (string, optional)
- `member_id` (string, optional)
- `group_number` (string, optional)
- `start_date` (date, optional)
- `end_date` (date, optional)
- `plan_dates` (list of PlanDate, optional)
- `subscriber` (ExpandedMemberInfo, optional)
- `dependent` (ExpandedMemberInfo, optional)
- `trading_partner` (string, optional) — The payer's own identifier as returned on the Stedi eligibility response (271) `tradingPartnerServiceId`. Reflects the payer's internal concept of their ID, which may differ from the ID Stedi routes on.

### CoverageBenefits

- `plan_coverage` (PlanCoverage, optional)
- `service_specific_coverage` (list of ServiceCoverage, optional)
- `benefits_related_entities` (list of BenefitsRelatedEntity, optional)
- `non_covered_details` (list of NonCoveredDetail, optional)
- `notes` (string, optional)
- `autoUpdatedEligibilityCheckId` (string, optional)

### IndividualProvider

- `npi` (string, required)
- `first_name` (string, optional)
- `last_name` (string, optional)

### OrganizationProvider

- `npi` (string, required)
- `organization_name` (string, optional)

### PlanDate

- `start_date` (date, required)
- `field_name` (string, required)
- `end_date` (date, optional)

### ExpandedMemberInfo

- `member_id` (string, optional)
- `group_number` (string, optional)
- `first_name` (string, optional)
- `middle_name` (string, optional)
- `last_name` (string, optional)
- `date_of_birth` (string, optional)
- `gender` (string, optional)
- `address` (Address, optional)

### PlanCoverage

- `in_network` (PlanCoverageDetails, optional)
- `in_network_flat` (list of CoverageDetails, optional)
- `out_of_network` (PlanCoverageDetails, optional)
- `out_of_network_flat` (list of CoverageDetails, optional)

### ServiceCoverage

- `service_code` (enum, required) — Code identifying the type of service or benefit within a specific insurance policy (X12 008010 Element 1365)
  - Allowed values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`, `24`, `25`, `26`, `27`, `28`, `30`, `32`, `33`, `34`, `35`, `36`, `37`, `38`, `39`, `40`, `41`, `42`, `43`, `44`, `45`, `46`, `47`, `48`, `49`, `50`, `51`, `52`, `53`, `54`, `55`, `56`, `57`, `58`, `59`, `60`, `61`, `62`, `63`, `64`, `65`, `66`, `67`, `68`, `69`, `70`, `71`, `72`, `73`, `74`, `75`, `76`, `77`, `78`, `79`, `80`, `81`, `82`, `83`, `84`, `85`, `86`, `87`, `88`, `89`, `90`, `91`, `92`, `93`, `94`, `95`, `96`, `97`, `98`, `99`, `A0`, `A1`, `A2`, `A3`, `A4`, `A5`, `A6`, `A7`, `A8`, `A9`, `AA`, `AB`, `AC`, `AD`, `AE`, `AF`, `AG`, `AH`, `AI`, `AJ`, `AK`, `AL`, `AM`, `AN`, `AO`, `AQ`, `AR`, `B1`, `B2`, `B3`, `BA`, `BB`, `BC`, `BD`, `BE`, `BF`, `BG`, `BH`, `BI`, `BJ`, `BK`, `BL`, `BM`, `BN`, `BP`, `BQ`, `BR`, `BS`, `BT`, `BU`, `BV`, `BW`, `BX`, `BY`, `BZ`, `C1`, `CA`, `CB`, `CC`, `CD`, `CE`, `CF`, `CG`, `CH`, `CI`, `CJ`, `CK`, `CL`, `CM`, `CN`, `CO`, `CP`, `CQ`, `DG`, `DM`, `DS`, `GF`, `GN`, `GY`, `IC`, `MH`, `NI`, `ON`, `PT`, `PU`, `RN`, `RT`, `TC`, `TN`, `UC`
- `in_network` (ServiceCoverageDetails, optional)
- `in_network_flat` (list of CoverageDetails, optional)
- `out_of_network` (ServiceCoverageDetails, optional)
- `out_of_network_flat` (list of CoverageDetails, optional)

### BenefitsRelatedEntity

- `entityIdentifier` (string, optional)
- `entityType` (string, optional)
- `entityName` (string, optional)
- `contactInformation` (list of RelatedEntityContact, optional)
- `serviceTypeCodes` (list of enum, optional)
  - Allowed values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`, `24`, `25`, `26`, `27`, `28`, `30`, `32`, `33`, `34`, `35`, `36`, `37`, `38`, `39`, `40`, `41`, `42`, `43`, `44`, `45`, `46`, `47`, `48`, `49`, `50`, `51`, `52`, `53`, `54`, `55`, `56`, `57`, `58`, `59`, `60`, `61`, `62`, `63`, `64`, `65`, `66`, `67`, `68`, `69`, `70`, `71`, `72`, `73`, `74`, `75`, `76`, `77`, `78`, `79`, `80`, `81`, `82`, `83`, `84`, `85`, `86`, `87`, `88`, `89`, `90`, `91`, `92`, `93`, `94`, `95`, `96`, `97`, `98`, `99`, `A0`, `A1`, `A2`, `A3`, `A4`, `A5`, `A6`, `A7`, `A8`, `A9`, `AA`, `AB`, `AC`, `AD`, `AE`, `AF`, `AG`, `AH`, `AI`, `AJ`, `AK`, `AL`, `AM`, `AN`, `AO`, `AQ`, `AR`, `B1`, `B2`, `B3`, `BA`, `BB`, `BC`, `BD`, `BE`, `BF`, `BG`, `BH`, `BI`, `BJ`, `BK`, `BL`, `BM`, `BN`, `BP`, `BQ`, `BR`, `BS`, `BT`, `BU`, `BV`, `BW`, `BX`, `BY`, `BZ`, `C1`, `CA`, `CB`, `CC`, `CD`, `CE`, `CF`, `CG`, `CH`, `CI`, `CJ`, `CK`, `CL`, `CM`, `CN`, `CO`, `CP`, `CQ`, `DG`, `DM`, `DS`, `GF`, `GN`, `GY`, `IC`, `MH`, `NI`, `ON`, `PT`, `PU`, `RN`, `RT`, `TC`, `TN`, `UC`

### NonCoveredDetail

- `type` (enum, required)
  - Allowed values: `DEDUCTIBLE`, `DEDUCTIBLE_CONTRACT`, `DEDUCTIBLE_REMAINING`, `DEDUCTIBLE_YEAR_TO_DATE`, `OOP_MAX`, `OOP_MAX_CONTRACT`, `OOP_MAX_REMAINING`, `OOP_MAX_YEAR_TO_DATE`, `COPAY`, `COINSURANCE`, `NON_COVERED`, `LIMITATION`
- `coverageLevel` (enum, required)
  - Allowed values: `EMPLOYEE_AND_CHILDREN`, `EMPLOYEE_ONLY`, `EMPLOYEE_AND_SPOUSE`, `FAMILY`, `INDIVIDUAL`
- `unit` (enum, required)
  - Allowed values: `PERCENT`, `CURRENCY`, `COUNT`
- `value` (double, required)
- `additional_notes` (string, optional)
- `service_type_codes` (list of enum, optional)
  - Allowed values: `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `13`, `14`, `15`, `16`, `17`, `18`, `19`, `20`, `21`, `22`, `23`, `24`, `25`, `26`, `27`, `28`, `30`, `32`, `33`, `34`, `35`, `36`, `37`, `38`, `39`, `40`, `41`, `42`, `43`, `44`, `45`, `46`, `47`, `48`, `49`, `50`, `51`, `52`, `53`, `54`, `55`, `56`, `57`, `58`, `59`, `60`, `61`, `62`, `63`, `64`, `65`, `66`, `67`, `68`, `69`, `70`, `71`, `72`, `73`, `74`, `75`, `76`, `77`, `78`, `79`, `80`, `81`, `82`, `83`, `84`, `85`, `86`, `87`, `88`, `89`, `90`, `91`, `92`, `93`, `94`, `95`, `96`, `97`, `98`, `99`, `A0`, `A1`, `A2`, `A3`, `A4`, `A5`, `A6`, `A7`, `A8`, `A9`, `AA`, `AB`, `AC`, `AD`, `AE`, `AF`, `AG`, `AH`, `AI`, `AJ`, `AK`, `AL`, `AM`, `AN`, `AO`, `AQ`, `AR`, `B1`, `B2`, `B3`, `BA`, `BB`, `BC`, `BD`, `BE`, `BF`, `BG`, `BH`, `BI`, `BJ`, `BK`, `BL`, `BM`, `BN`, `BP`, `BQ`, `BR`, `BS`, `BT`, `BU`, `BV`, `BW`, `BX`, `BY`, `BZ`, `C1`, `CA`, `CB`, `CC`, `CD`, `CE`, `CF`, `CG`, `CH`, `CI`, `CJ`, `CK`, `CL`, `CM`, `CN`, `CO`, `CP`, `CQ`, `DG`, `DM`, `DS`, `GF`, `GN`, `GY`, `IC`, `MH`, `NI`, `ON`, `PT`, `PU`, `RN`, `RT`, `TC`, `TN`, `UC`

### Address

- `address1` (string, optional)
- `address2` (string, optional)
- `city` (string, optional)
- `state` (string, optional)
- `postal_code` (string, optional)
- `country_code` (string, optional)
- `country_sub_division_code` (string, optional)

### PlanCoverageDetails

- `deductible` (CoverageValue, optional)
- `deductible_contract` (CoverageValue, optional)
- `deductible_remaining` (CoverageValue, optional)
- `deductible_year_to_date` (CoverageValue, optional)
- `oop_max` (CoverageValue, optional)
- `oop_max_contract` (CoverageValue, optional)
- `oop_max_remaining` (CoverageValue, optional)
- `oop_max_year_to_date` (CoverageValue, optional)
- `additional_notes` (string, optional)

### CoverageDetails

- `type` (enum, required)
  - Allowed values: `DEDUCTIBLE`, `DEDUCTIBLE_CONTRACT`, `DEDUCTIBLE_REMAINING`, `DEDUCTIBLE_YEAR_TO_DATE`, `OOP_MAX`, `OOP_MAX_CONTRACT`, `OOP_MAX_REMAINING`, `OOP_MAX_YEAR_TO_DATE`, `COPAY`, `COINSURANCE`, `NON_COVERED`, `LIMITATION`
- `coverageLevel` (enum, required)
  - Allowed values: `EMPLOYEE_AND_CHILDREN`, `EMPLOYEE_ONLY`, `EMPLOYEE_AND_SPOUSE`, `FAMILY`, `INDIVIDUAL`
- `unit` (enum, required)
  - Allowed values: `PERCENT`, `CURRENCY`, `COUNT`
- `value` (double, required)
- `additional_notes` (string, optional)

### ServiceCoverageDetails

- `copay` (CoverageValue, optional)
- `coinsurance` (CoverageValue, optional)
- `visits` (CoverageValue, optional)
- `visits_remaining` (CoverageValue, optional)
- `additional_notes` (string, optional)

### RelatedEntityContact

- `mode` (string, optional)
- `value` (string, optional)

### CoverageValue

- `family` (double, optional)
- `individual` (double, optional)
- `employeeAndSpouse` (double, optional)
- `employeeAndChildren` (double, optional)

## Examples

**Response**

```json
{
  "items": [
    {
      "response": {
        "key": "value"
      },
      "batch_id": "batch_id",
      "errors": [
        {
          "source": "CANDID",
          "errorDetails": {
            "field?": "field?",
            "description?": "description?",
            "location?": "location?",
            "possibleResolutions?": "possibleResolutions?",
            "code?": "code?",
            "followupAction?": "followupAction?"
          }
        },
        {
          "source": "CANDID",
          "errorDetails": {
            "field?": "field?",
            "description?": "description?",
            "location?": "location?",
            "possibleResolutions?": "possibleResolutions?",
            "code?": "code?",
            "followupAction?": "followupAction?"
          }
        }
      ],
      "request": {
        "payer_id": "payer_id",
        "provider": {
          "first_name": "first_name",
          "last_name": "last_name",
          "npi": "npi"
        },
        "subscriber": {
          "first_name": "first_name",
          "last_name": "last_name",
          "member_id": "member_id",
          "date_of_birth": "2023-01-15"
        },
        "submitter_transaction_identifier": "submitter_transaction_identifier",
        "dependent": {
          "first_name": "first_name",
          "last_name": "last_name",
          "member_id": "member_id",
          "date_of_birth": "2023-01-15"
        },
        "encounter": {
          "date_of_service": "2023-01-15",
          "service_type_codes": [
            "service_type_codes",
            "service_type_codes"
          ]
        },
        "get_existing_check_initiated_after": "2024-01-15T09:30:00Z",
        "source": "source",
        "portal_password": "portal_password",
        "portal_username": "portal_username"
      },
      "parsed_response": {
        "eligibility_status": "ACTIVE",
        "plan_metadata": {
          "payer_name": "payer_name",
          "insurance_type": "insurance_type",
          "insurance_type_code": "insurance_type_code",
          "plan_name": "plan_name",
          "member_id": "member_id",
          "group_number": "group_number",
          "start_date": "2023-01-15",
          "end_date": "2023-01-15",
          "plan_dates": [
            {
              "start_date": "2023-01-15",
              "field_name": "field_name"
            },
            {
              "start_date": "2023-01-15",
              "field_name": "field_name"
            }
          ],
          "subscriber": {
            "member_id": "member_id",
            "group_number": "group_number",
            "first_name": "first_name",
            "middle_name": "middle_name",
            "last_name": "last_name",
            "date_of_birth": "date_of_birth",
            "gender": "gender",
            "address": {}
          },
          "dependent": {
            "member_id": "member_id",
            "group_number": "group_number",
            "first_name": "first_name",
            "middle_name": "middle_name",
            "last_name": "last_name",
            "date_of_birth": "date_of_birth",
            "gender": "gender",
            "address": {}
          },
          "trading_partner": "trading_partner"
        },
        "benefits": {
          "plan_coverage": {
            "in_network": {},
            "in_network_flat": [],
            "out_of_network": {},
            "out_of_network_flat": []
          },
          "service_specific_coverage": [
            {
              "service_code": "1"
            },
            {
              "service_code": "1"
            }
          ],
          "benefits_related_entities": [
            {},
            {}
          ],
          "non_covered_details": [
            {
              "type": "DEDUCTIBLE",
              "coverageLevel": "EMPLOYEE_AND_CHILDREN",
              "unit": "PERCENT",
              "value": 1.1
            },
            {
              "type": "DEDUCTIBLE",
              "coverageLevel": "EMPLOYEE_AND_CHILDREN",
              "unit": "PERCENT",
              "value": 1.1
            }
          ],
          "notes": "notes",
          "autoUpdatedEligibilityCheckId": "autoUpdatedEligibilityCheckId"
        }
      },
      "request_corrections": [
        {
          "property": "property",
          "request_value": "request_value",
          "corrected_value": "corrected_value"
        },
        {
          "property": "property",
          "request_value": "request_value",
          "corrected_value": "corrected_value"
        }
      ]
    },
    {
      "response": {
        "key": "value"
      },
      "batch_id": "batch_id",
      "errors": [
        {
          "source": "CANDID",
          "errorDetails": {
            "field?": "field?",
            "description?": "description?",
            "location?": "location?",
            "possibleResolutions?": "possibleResolutions?",
            "code?": "code?",
            "followupAction?": "followupAction?"
          }
        },
        {
          "source": "CANDID",
          "errorDetails": {
            "field?": "field?",
            "description?": "description?",
            "location?": "location?",
            "possibleResolutions?": "possibleResolutions?",
            "code?": "code?",
            "followupAction?": "followupAction?"
          }
        }
      ],
      "request": {
        "payer_id": "payer_id",
        "provider": {
          "first_name": "first_name",
          "last_name": "last_name",
          "npi": "npi"
        },
        "subscriber": {
          "first_name": "first_name",
          "last_name": "last_name",
          "member_id": "member_id",
          "date_of_birth": "2023-01-15"
        },
        "submitter_transaction_identifier": "submitter_transaction_identifier",
        "dependent": {
          "first_name": "first_name",
          "last_name": "last_name",
          "member_id": "member_id",
          "date_of_birth": "2023-01-15"
        },
        "encounter": {
          "date_of_service": "2023-01-15",
          "service_type_codes": [
            "service_type_codes",
            "service_type_codes"
          ]
        },
        "get_existing_check_initiated_after": "2024-01-15T09:30:00Z",
        "source": "source",
        "portal_password": "portal_password",
        "portal_username": "portal_username"
      },
      "parsed_response": {
        "eligibility_status": "ACTIVE",
        "plan_metadata": {
          "payer_name": "payer_name",
          "insurance_type": "insurance_type",
          "insurance_type_code": "insurance_type_code",
          "plan_name": "plan_name",
          "member_id": "member_id",
          "group_number": "group_number",
          "start_date": "2023-01-15",
          "end_date": "2023-01-15",
          "plan_dates": [
            {
              "start_date": "2023-01-15",
              "field_name": "field_name"
            },
            {
              "start_date": "2023-01-15",
              "field_name": "field_name"
            }
          ],
          "subscriber": {
            "member_id": "member_id",
            "group_number": "group_number",
            "first_name": "first_name",
            "middle_name": "middle_name",
            "last_name": "last_name",
            "date_of_birth": "date_of_birth",
            "gender": "gender",
            "address": {}
          },
          "dependent": {
            "member_id": "member_id",
            "group_number": "group_number",
            "first_name": "first_name",
            "middle_name": "middle_name",
            "last_name": "last_name",
            "date_of_birth": "date_of_birth",
            "gender": "gender",
            "address": {}
          },
          "trading_partner": "trading_partner"
        },
        "benefits": {
          "plan_coverage": {
            "in_network": {},
            "in_network_flat": [],
            "out_of_network": {},
            "out_of_network_flat": []
          },
          "service_specific_coverage": [
            {
              "service_code": "1"
            },
            {
              "service_code": "1"
            }
          ],
          "benefits_related_entities": [
            {},
            {}
          ],
          "non_covered_details": [
            {
              "type": "DEDUCTIBLE",
              "coverageLevel": "EMPLOYEE_AND_CHILDREN",
              "unit": "PERCENT",
              "value": 1.1
            },
            {
              "type": "DEDUCTIBLE",
              "coverageLevel": "EMPLOYEE_AND_CHILDREN",
              "unit": "PERCENT",
              "value": 1.1
            }
          ],
          "notes": "notes",
          "autoUpdatedEligibilityCheckId": "autoUpdatedEligibilityCheckId"
        }
      },
      "request_corrections": [
        {
          "property": "property",
          "request_value": "request_value",
          "corrected_value": "corrected_value"
        },
        {
          "property": "property",
          "request_value": "request_value",
          "corrected_value": "corrected_value"
        }
      ]
    }
  ],
  "total": 1,
  "next_page_token": "next_page_token",
  "prev_page_token": "prev_page_token"
}
```

**SDK Code**

```python
import requests

url = "https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id"

headers = {"Authorization": "<token>."}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id';
const options = {method: 'GET', headers: {Authorization: '<token>.'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "<token>.")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<token>.'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id")
  .header("Authorization", "<token>.")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id', [
  'headers' => [
    'Authorization' => '<token>.',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<token>.");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "<token>."]

let request = NSMutableURLRequest(url: NSURL(string: "https://pre-api.joincandidhealth.com/eligibility-checks/v1/batch/batch_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```