The admin role is the highest-privilege account in Clinica. Admins are responsible for setting up doctor profiles and have full visibility into the doctor roster. Unlike doctors and patients, the admin account is not created through the API — it is seeded directly into the database when the application starts for the first time.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bentlyy/Clinica/llms.txt
Use this file to discover all available pages before exploring further.
Default admin credentials
When Clinica starts and no admin account exists,seedAdmin runs automatically and inserts a default account:
| Field | Value |
|---|---|
admin@clinic.com | |
| Password | admin123 |
| Role | admin |
role = 'admin' already exists in the users table, the seed skips silently.
What admins can do
Admins have access to two doctor-related endpoints, both requiring a valid admin JWT.List all doctors
Create a doctor
user_id must reference an existing user account that already has the doctor role — the API rejects any other role.
Required fields:
| Field | Type | Description |
|---|---|---|
name | string | Doctor’s full name |
specialty | string | Medical specialty (e.g. "Cardiology") |
email | string | Doctor’s contact email |
user_id | integer | ID of an existing doctor-role user to link to this profile |
Getting an admin token
Log in with the admin credentials to receive a JWT:token from the response as the Bearer value in subsequent requests.