Перейти к содержанию
SoulFire LogoSoulFire

Get user

Это руководство доступно только на английском.

GET
/v1/users/{id}

Retrieves detailed information about a specific user.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

id*string

The unique identifier (UUID) of the user to retrieve information for.

Formatuuid

Response Body

Response message containing detailed information about a specific user.

application/json
  1. response

Response message containing detailed information about a specific user.

username*string

The username of the user (3-32 lowercase alphanumeric characters with dashes allowed).

role*string

The role of the user (ADMIN or USER).

Value in"ADMIN""USER"
email*string

The email address of the user.

Formatemail
createdAt*string

Timestamp when the user account was created.

Formatdate-time
updatedAt*string

Timestamp when the user account was last updated.

Formatdate-time
lastLoginAt?|

Timestamp of the user's last successful authentication. Optional; may be absent if the user has never logged in.

minIssuedAt*string

Minimum issued-at timestamp for valid JWT tokens. Tokens issued before this timestamp are considered invalid. Used to invalidate all sessions by updating this value.

Formatdate-time
Example Request
curl -X GET 'http://127.0.0.1:38765/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{
  "username": "string",
  "role": "ADMIN",
  "email": "user@example.com",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "lastLoginAt": "2019-08-24T14:15:22Z",
  "minIssuedAt": "2019-08-24T14:15:22Z"
}

Полезна ли эта страница?