Grant lab access to a patient
Grant a specific lab explicit access to a patient record. The lab must have an active partnership with the clinic. Clinic only - the patient must belong to the current clinic. Idempotent - granting access twice is a no-op.
Grant a specific lab explicit access to a patient record. The lab must have an active partnership with the clinic. Clinic only - the patient must belong to the current clinic. Idempotent - granting access twice is a no-op.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Path Parameters
Patient ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/patients/550e8400-e29b-41d4-a716-446655440000/lab-access" \ -H "Content-Type: application/json" \ -d '{ "labId": "string" }'{ "success": true}Get a single patient by ID GET
Retrieve a patient's details. Labs can access patients from partnered clinics (subject to lab access and share-all-patients settings). Anonymized patients return masked data for labs. Clinics can only access their own patients.
List labs with access to a patient GET
List labs with effective access through either an explicit live grant or the active partnership's share-all-patients policy. Clinic only - the patient must belong to the current clinic.