Skip to main content

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.


Parameters


No parameters.


Attributes


status boolean

Indicates the status of the request to retrieve your account details, true indicates success, while false indicates error.


message string

A message describing the status of the request.


user object

An object containing user account details.

Show child attributes
email string

The email address associated with the user account.


name string

First and last name of the user.


username string

The username associated with the user account.


created_at date-time

The timestamp when the user account was created.

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.


Back to top