auth

Get a user by id (admin/superadmin)

Changed on
get/auth/users/{userId}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/auth/users/{userId}
  • Auth
    HTTP bearer

Path parameters

userIdstring required

Response

OK

successtrue required
msgstring required

Example response

{
  "data": {
    "id": "65f1c2a4d8b9e0123456789a",
    "firstName": "Ada",
    "lastName": "Lovelace",
    "email": "ada@example.com",
    "isActive": true,
    "isVerified": true,
    "role": [
      "admin"
    ],
    "teamId": "65f1c2a4d8b9e01234567890",
    "createdAt": "2026-04-01T10:00:00.000Z",
    "updatedAt": "2026-04-15T14:30:00.000Z"
  }
}

Changes

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new admin enum value to the // response property for the response status

    • warning

      added the new demo enum value to the // response property for the response status

    • warning

      added the new superadmin enum value to the // response property for the response status

    • warning

      added the new user enum value to the // response property for the response status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      the response property / became required for the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status