Barcoding
Notifications
Orders
Patients
- GETGet patients
- POSTCreate a patient
- GETGet a patient's details
- PUTUpdate a patient's details
- GETGet guardian relationship types
- GETGet a patient's orders
- GETGet a patient's risk factors
- POSTCreate risk factors
- POSTCreate a single risk factor
- PATCHConfirm risk factor match
- DELDeactivate a risk factor
- POSTAdd freeform risk factor text
Prescribers
Prescriptions
Products and Materials
Products and Materials Inventory
- GETGet inventory
- POSTCreate product inventory
- GETGet inventory lot details
- PUTUpdate inventory lot
- GETGet a prescription product inventory
- POSTCreate prescription product inventory
- GETGet a non-prescription product inventory
- POSTCreate non-prescription product inventory
- GETGet order material inventory
- POSTCreate order material product inventory
- PATCHAdjust inventory quantity
- GETGet inventory associations
- POSTCreate inventory association
- DELRemove inventory association
Reports
Search
Tasks
Webhooks
Authentication
Generate token
Login to generate Blend API access tokens. Returns a JWT access token and refresh token. The access token expires in 60 minutes, and the refresh token expires in 7 days.
POST
/
api
/
v1
/
auth
/
login
Copy
curl --request POST \
--url https://api.byblend.com/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '{
"email": "chad@byblend.com",
"password": "ch4db13nd$$"
}'
Copy
{
"access_token": "eyJhbGciOiJIAzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIAzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2025-03-27T12:00:00Z",
"user": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"email": "chad@byblend.com",
"first_name": "Chad",
"last_name": "Birkenstock",
"is_active": true,
"role": "admin"
}
}
Body
application/json
Response
200 - application/json
Successful response with access tokens and user details
The response is of type object
.
Copy
curl --request POST \
--url https://api.byblend.com/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '{
"email": "chad@byblend.com",
"password": "ch4db13nd$$"
}'
Copy
{
"access_token": "eyJhbGciOiJIAzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIAzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2025-03-27T12:00:00Z",
"user": {
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"email": "chad@byblend.com",
"first_name": "Chad",
"last_name": "Birkenstock",
"is_active": true,
"role": "admin"
}
}
Assistant
Responses are generated using AI and may contain mistakes.