Skip to main content
Retrieve the user’s profile. Requires a valid authentication token in the AUTH header.

Headers

AUTH
string
required
Authentication token (JWT) obtained from the /auth/login endpoint

Example Request

curl -X GET "https://api.scorton.tech/users/me" \
  -H "AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Example Response

{
  "id": "123456789",
  "email": "[email protected]",
  "role": "user"
}

Success Response

StatusDescription
200Returns the authenticated user’s details

Error Responses

StatusDescriptionExample
401Missing or invalid token{ "detail": "Unauthorized: Invalid or expired token." }
403Account not validated yet{ "detail": "Forbidden: Account is not validated yet." }
404User not found{ "detail": "Not Found: User does not exist." }