Your First API Request!
Now that you've generated an access token(If you haven't, follow the guide here first: Authentication), let's perform your first API request to check program eligibility using the Bridge Health Hub API.
Check Program Eligibility
Use the checkProgramAvailability
endpoint to determine if a patient qualifies based on ZIP code and insurance type.
Endpoint:
POST https://api.bridgehealthhub.com/auth/token
Example `curl`
```bash
curl --location 'https://api.bridgehealthhub.com/enroll' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"thcoPatientID": "THCO99",
"cboID": 1,
"pharmacyID": "1",
"insuranceType": "Commercial",
"zipCode": "75034"
}
'
We should receive a successful response with the list of our integrations. It will look something like this:
Response
{
"data": {
"credentialedPrescriberNPIs": [
{
"NPI": "NPI002",
"name": "Jane Smith",
"prescriberID": 2
},
{
"NPI": "NPI001",
"name": "Jane Credentialed",
"prescriberID": 1
}
],
"patient": {
"cboID": 1,
"cboName": "Community Health Center 1",
"cboPatientID": null,
"createdBy": null,
"createdDate": "2025-07-29T05:12:56",
"isActive": true,
"patientID": 1905,
"reason": null,
"status": "ENROLLED",
"thcoID": 8,
"thcoName": "Telehealth postman",
"thcoPatientID": "THCO-8776d8",
"updatedBy": null,
"updatedDate": "2025-07-29T05:12:56"
}
},
"message": "User enrolled successfully",
"success": true
}