EHR Simulator API Documentation

Authentication

This API requires JWT token authentication. You'll need to include a bearer token in the Authorization header for all authenticated endpoints.

How to get your JWT token:

  1. Login to the dashboard at /login
  2. Use the "Copy JWT" button below to copy your token to clipboard
  3. Include the token in your API requests as a Bearer token in the Authorization header

Include the following header in your requests:

Authorization: Bearer YOUR_JWT_TOKEN

Alternative: Generate a test token programmatically

python generate_test_token.py

Example request with curl:

curl -X GET "https://health-sync.replit.app/api/patients" \ -H "accept: application/json" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Example: GET Patients Example: Create Patient Example: Create Appointment