Get user by id
GET/v1/users/:target_user_id
Get user by id
This endpoint retrieves detailed information about a user based on their unique identifier (id). It returns a JSON object containing the user's ID, email, nickname, status, creation date, last transaction date, and last login date. Access to this endpoint is restricted; users can only retrieve information about another user if they share common accounts or if the requesting user is an administrator. The endpoint supports caching to reduce database load for frequently accessed user profiles.
Request
Path Parameters
target_user_id uuidrequired
User id
Responses
- 200
- 403
- 404
- 500
User found
- application/json
- Schema
- Example (from schema)
Schema
createdAt date-timerequired
email stringrequired
id uuidrequired
lastLogin date-timenullable
lastTransaction date-timenullable
nickname stringrequired
status stringrequired
{
"createdAt": "2024-09-25T19:42:12.589Z",
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"lastLogin": "2024-09-25T19:42:12.590Z",
"lastTransaction": "2024-09-25T19:42:12.590Z",
"nickname": "string",
"status": "string"
}
Invalid user
- text/plain
- Schema
Schema
string
User not found
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...