Get Specific User

Get Cakes

GET {{URL}}/api/v1/users/:user_id

This endpoint allows the Admin to get any user.

Path Parameters

Name
Type
Description

user_id

string

The ID of the user to get.

Headers

Name
Type
Description

Authentication

string

Authentication token of Admin user.

{
    "status": "success",
    "message": "User retrieved successfully",
    "results": 1,
    "data": {
        "userPermissions": {
            "login": 1,
            "readArticles": 1
        },
        "role": "User",
        "interests": [],
        "isVerified": false,
        "_id": "6079eb589b653c0022b9f5c1",
        "email": "[email protected]",
        "username": "aura-admin",
        "createdAt": "2021-04-16T19:54:00.000Z",
        "__v": 0
    }
}

Last updated

Was this helpful?