Get Current User

Retrieve the profile of the currently authenticated user.

GEThttps://api.marinahealth.eu/auth/me
Requires Auth

Headers

Headers

NameTypeRequiredDescription
AuthorizationstringrequiredBearer <accessToken>

Example Request

cURL
curl https://api.marinahealth.eu/auth/me \
  -H "Authorization: Bearer <accessToken>"

Response

Successful
FieldTypeDescription
userobjectAuthenticated user object.
idstringUUID.
emailstringEmail address.
namestringDisplay name.
rolestringUser role.
ship_namestringVessel name.
imo_numberstringIMO vessel number (7 digits).
companystringCompany or organisation name.
email_verifiedbooleanWhether email is verified.
mfa_enabledbooleanWhether MFA is enabled.
created_atstringISO 8601 creation timestamp.
updated_atstringISO 8601 last-updated timestamp.
json
{
  "user": {
    "id": "usr_abc123",
    "email": "user@example.com",
    "name": "Jane Doe",
    "role": "user",
    "ship_name": "MV Northern Star",
    "imo_number": "9876543",
    "company": "Nordic Shipping AS",
    "email_verified": true,
    "mfa_enabled": false,
    "created_at": "2024-01-15T10:30:00.000Z",
    "updated_at": "2024-06-01T08:00:00.000Z"
  }
}