Back to User Management
Get User by ID
Retrieves a specific user's details by their unique ID.
Request Details
path Parameters
Field | Type | Required | Description |
---|---|---|---|
userId | string | Yes | The unique identifier of the user. |
Sample Request & Response
GET
/users/{userId}Retrieves a specific user's details by their unique ID.
Sample Request
Headers:
{
"Authorization": "Bearer <YOUR_AUTH_TOKEN>"
}
Path Parameters:
{
"userId": "string (required) - The unique identifier of the user."
}
Sample Response (200)
{
"id": "usr_abc123xyz",
"name": "John Doe",
"email": "john.doe@example.com",
"createdAt": "2024-07-24T10:00:00Z",
"lastLogin": "2024-07-24T11:30:00Z",
"settings": {
"notificationsEnabled": true,
"theme": "dark"
}
}