For the complete documentation index, see llms.txt. This page is also available as Markdown.

User

Operations related to the user account from a user viewpoint.

Get general information about the user

get

Retrieves general information about the user, including the username, profile picture and other basic settings.

Authorization:

  • Requires a valid JWT Bearer token.

  • The token must identify an authenticated end user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Succesful operation

application/json
get/user/whoami
GET /v1/user/whoami HTTP/1.1
Host: api.tip4serv.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "user": {
    "id": 15421,
    "username": "Duster",
    "email": "duster@tip4serv.com",
    "language": "English_en",
    "timezone": "Europe/Paris",
    "registration_date": 1676373212,
    "profile_picture": "https://cdn.tip4serv.com/user-data/avatars/f7b64cc1f38ad584f0a31bdcbb8a4452.png",
    "loyalty_points": 360
  }
}

Last updated