> ## Documentation Index
> Fetch the complete documentation index at: https://developer.flabslis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Patient APIs Introduction

> APIs for patient authentication and report retrieval

![Flabs Logo Light](https://mintcdn.com/flabs/XMaScWewdN3WnYoT/logo/light.svg?fit=max\&auto=format\&n=XMaScWewdN3WnYoT\&q=85\&s=76bd6efd710b5d3a6017da1d7b459ed2)

## Overview

Flabs Patient APIs allow you to authenticate patients via OTP and retrieve their medical reports securely.

> [card] [Request OTP](https://developer.flabslis.com/patient/endpoint/get_otp.md)
>
> Send OTP to patient's contact number

> [card] [Verify OTP](https://developer.flabslis.com/patient/endpoint/verify_otp.md)
>
> Verify OTP and get patient token

> [card] [Get Reports](https://developer.flabslis.com/patient/endpoint/get_records.md)
>
> Retrieve all patient reports

## Patient Authentication Flow

Our patient authentication system uses a two-step verification process:

1. **Request OTP**: Send an OTP to the patient's contact number
2. **Verify OTP**: Validate the OTP to receive a patient token
3. **Access Reports**: Use the patient token to access patient-specific reports

> [!NOTE]
>
> All API requests require both the lab authentication token (in the
> Authorization header) and for the reports endpoint, the patient token (in the
> patient-authorization header).

## Getting Started

To integrate with our patient authentication system:

1. Authenticate your lab client using the Auth API
2. Request an OTP for the patient using the [getLoginOTP](https://developer.flabslis.com/patient/endpoint/get_otp.md) endpoint
3. Have the patient verify the OTP using the [verifyLoginOTP](https://developer.flabslis.com/patient/endpoint/verify_otp.md) endpoint
4. Retrieve the patient's reports using the [getReports](https://developer.flabslis.com/patient/endpoint/get_records.md) endpoint

## Security

Patient data is secure and can only be accessed with:

* A valid lab authentication token
* A valid patient-specific token obtained through OTP verification

This dual authentication ensures that only authorized labs can access patient data, and only for patients who have verified their identity.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.