GET
/
api
/
auth
/
me
Get current worker profile
curl --request GET \
  --url http://localhost:3000/api/auth/me \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "name": "<string>",
    "username": "<string>",
    "position": "<string>",
    "role": "<string>",
    "notificationPreferences": {
      "enabled": true,
      "volume": 0.6,
      "sounds": {
        "low": "soft_pop",
        "medium": "ding",
        "high": "alert",
        "urgent": "alert"
      }
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Current worker

success
boolean
Example:

true

message
string
data
object