Skip to main content

Get Doctor (v1)

Method & Path

GET /api/v1/doctors/me

Actual backend path: /v1/doctors/me

Description

Get the current authenticated doctor's information.

Authentication

Required: Bearer token in Authorization header

Required Permissions:

  • Doctor authentication

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

None

Query Parameters

None

Request Body

No request body required.

Response 200 OK

{
"doctor": {
"id": "507f1f77bcf86cd799439011",
"email": "doctor@example.com",
"fullName": "Dr. John Smith",
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-15T10:00:00Z"
}
}

Common Errors

  • 401 Unauthorized: Missing or invalid authentication token
  • 500 Internal Server Error: Server error