curl --request GET \
--url https://api.byblend.com/api/v1/search/patients \
--header 'Authorization: Bearer <token>'{
"results": [
{
"rank": 0.7,
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"first_name": "Willard",
"middle_name": "Moises",
"last_name": "Donnelly",
"gender": "male",
"email": "[email protected]",
"phone": "6417383445",
"date_of_birth": "1990-01-01",
"driver_license_number": "B49188319",
"driver_license_state": "CA",
"ssn": "123456789",
"primary_language": "en",
"guardian_name": "John Guardian",
"guardian_phone": "6417383445",
"guardian_email": "[email protected]",
"guardian_relationship": "parent",
"height_inches": 72,
"weight_pounds": 180,
"external_id": "1234567890",
"is_smoker": false,
"is_diabetic": false,
"is_pregnant": false,
"receive_sms": true,
"receive_email": true,
"address": {
"address_1": "140 Lindgren Streets",
"city": "North Consueloburgh",
"state": "CA",
"zip_code": "02108",
"address_2": "Apt 227",
"country": "US"
},
"is_minor": false
}
]
}Search patients by ID, name, email, phone, date of birth (MM/DD/YYYY or YYYYMMDD or YYYY-MM-DD), or a substring of the above.
curl --request GET \
--url https://api.byblend.com/api/v1/search/patients \
--header 'Authorization: Bearer <token>'{
"results": [
{
"rank": 0.7,
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"first_name": "Willard",
"middle_name": "Moises",
"last_name": "Donnelly",
"gender": "male",
"email": "[email protected]",
"phone": "6417383445",
"date_of_birth": "1990-01-01",
"driver_license_number": "B49188319",
"driver_license_state": "CA",
"ssn": "123456789",
"primary_language": "en",
"guardian_name": "John Guardian",
"guardian_phone": "6417383445",
"guardian_email": "[email protected]",
"guardian_relationship": "parent",
"height_inches": 72,
"weight_pounds": 180,
"external_id": "1234567890",
"is_smoker": false,
"is_diabetic": false,
"is_pregnant": false,
"receive_sms": true,
"receive_email": true,
"address": {
"address_1": "140 Lindgren Streets",
"city": "North Consueloburgh",
"state": "CA",
"zip_code": "02108",
"address_2": "Apt 227",
"country": "US"
},
"is_minor": false
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Search query
"Rodrigo Davis"
Optional limit on the number of results to return. Max is 100, default is 50.
10
Successful response with array of patients
Show child attributes
Ranking score of the search result, from 0 to 1, indicating relevance to the search query
0.7
Unique identifier
"0227d1e5-ba9a-42b5-8fe2-38882aa65708"
Date and time of creation
"2025-03-15T12:00:00Z"
Date and time of last update
"2025-03-15T12:00:00Z"
"Willard"
"Moises"
"Donnelly"
Gender of the patient
male, female "male"
10-digit phone number without formatting, e.g. 6417383445
"6417383445"
"1990-01-01"
"B49188319"
"CA"
Social Security number. Can be provided with or without hyphens.
"123456789"
ISO 639-1 language code
"en"
Name of the patient's guardian. Required if patient is a minor.
"John Guardian"
"6417383445"
Relationship of the guardian to the patient. See relationship types lookup for available values; most common are parent and legal_guardian; and other can be used.
"parent"
Height of the patient in inches
72
Weight of the patient in pounds
180
External (your own) ID for the patient, to be used for prescription matching
"1234567890"
Whether the patient is a smoker
false
Whether the patient is diabetic
false
Whether the patient is pregnant
false
Whether the patient should receive SMS notifications for shipments. This is only applicable if you have authorized Blend to send patient communications on your behalf.
true
Whether the patient should receive email notifications for shipments. This is only applicable if you have authorized Blend to send patient communications on your behalf.
true
Show child attributes
"140 Lindgren Streets"
"North Consueloburgh"
Two-letter state abbreviation
"CA"
5-digit ZIP code or 9-digit ZIP+4 code, e.g. 02108 or 02108-1234.
"02108"
"Apt 227"
Two-letter country code, defaults to US
"US"
Whether the patient is a minor. Automatically calculated based on date of birth.
false