User API Documentation

Authentication Required

Include your authorization token in the request headers:
Authorization: Bearer your-auth-token

GET /api/user/me

Get the authenticated user

Response Type

User
{
    "id": number,
    "createdAt": "string",
    "username": "string",
    "password": "string",
    "authTypes": [
      "string"
    ],
    "role": "string",
    "premiumType": "string",
    "isPremium": boolean,
    "isBlocked": boolean,
    "isDeleted": boolean
  }

POST /api/user/check-premium

Check if the user is premium

Response Type

CheckPremiumResponse
{
  "isPremium": boolean,
  "message": string
}