Record that blood has been drawn and trigger the lab order pipeline
curl --request POST \
--url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/confirm \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"barcode": "4012345678901"
}'
{
"success": true
}
TEST_SESSIONS_SCHEDULE scope. Requests made with a key that lacks this scope return 403 Forbidden.200 OK confirming the lab order pipeline has been triggered.
true when the blood draw has been recorded and the lab order pipeline triggered.| Status | Description |
|---|---|
400 | Validation error — e.g., barcode is missing or has an invalid format. |
403 | Forbidden — missing TEST_SESSIONS_SCHEDULE scope. |
404 | Appointment not found. |
500 | Internal server error. |
curl --request POST \
--url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/confirm \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"barcode": "4012345678901"
}'
{
"success": true
}
curl --request POST \
--url https://anivahealth.com/api/v1/appointments/c9f3e2a1-7d6b-4c5e-b3a2-1f0e9d8c7b6a/confirm \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"barcode": "4012345678901"
}'
{
"success": true
}