Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

Read the signed in user

Any signed in user. Returns the caller’s id, email, name, role, and branch. The branch comes from the session, so it needs no lookup and cannot be pointed at another till.

GET/api/v1/auth/me
Authorization
AuthorizationBearer token (JWT) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Responses
200

The caller

user_idstringrequired
emailstringrequired
full_namestringrequired
rolestringrequired
branch_idstringrequired
branch_namestringrequired
401

Not authenticated

detailstringrequired
Try it
Server
Authorization
Request
curl -X GET 'http://localhost:8000/api/v1/auth/me' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "user_id": "string",
  "email": "string",
  "full_name": "string",
  "role": "string",
  "branch_id": "string",
  "branch_name": "string"
}