User
The user endpoint allows you to retrieve information about the currently authenticated user. This is useful for getting details such as the user's name, email, and team information.
GET/v1/user/whoami
Retrieve authenticated user
This endpoint allows you to retrieve information about the currently authenticated user. It returns details such as the user's name, email, and team information.
Request
GET
/v1/user/whoamicurl https://app.quincy.health/api/v1/user/whoami \
-H "Authorization: Bearer {token}"
Response
{
"user": {
"title": "Dr.",
"name": "Jane Smith",
"email": "[email protected]",
"phone": "+1234567890",
"team_name": "Medical Team A",
"can_sign_prescriptions": true
}
}
The user model
The user model contains information about the authenticated user, including their personal details and team information.
Properties
- Name
title- Type
- string
- Description
The title of the user (e.g., Dr., Mr., Ms.).
- Name
name- Type
- string
- Description
The full name of the user.
- Name
email- Type
- string
- Description
The email address of the user.
- Name
phone- Type
- string
- Description
The phone number of the user.
- Name
team_name- Type
- string
- Description
The name of the user's current team.
- Name
can_sign_prescriptions- Type
- boolean
- Description
Indicates whether the user is authorized to sign prescriptions.