Retrieve Authenticated User Details
GET https://infrahub-api.nexgencloud.com/v1/auth/me
Retrieves information about the currently authenticated user, including your name, username, email associated with your account, and timestamp of account creation.
Example request
curl -X GET "https://infrahub-api.nexgencloud.com/v1/auth/me" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "Auth user",
"user": {
"email": "[email protected]",
"name": "John Smith",
"username": "johnsmith1",
"created_at": "1970-01-01T00:00:00.000Z"
}
}
Returns
A successful response returns a status value of true
, a message describing the status, and the user
object containing your account details. The user
object includes your name, username, the email associated with your account, and the timestamp of account creation.