Skip to main content

Get User

Used to retrieve a specific user's details by their ID.

API Endpoint

PropertyValue
Request MethodGET
Request URLhttps://api.seliseblocks.com/idp/v1/Iam/GetUser

Request

Request Example

curl -X GET 'https://api.seliseblocks.com/idp/v1/Iam/GetUser?Id=user_123&ProjectKey=YOUR_PROJECT_KEY' \
-H 'x-blocks-key: YOUR_PROJECT_KEY'

Request Headers

FieldTypeDescription
x-blocks-keystringProject key for authentication.

Query Parameters

FieldTypeRequiredDescription
IdstringYesThe unique identifier of the user to retrieve.
ProjectKeystringYesThe project key for filtering results.

Response

Success Response

Returns HTTP status 200 OK with user details.

{
"data": {
"itemId": "user_123",
"createdDate": "2026-01-15T10:30:00Z",
"lastUpdatedDate": "2026-03-20T14:00:00Z",
"language": "en-US",
"salutation": "Mr.",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"userName": "johndoe",
"phoneNumber": "+1234567890",
"memberships": [
{
"organizationId": "org_123",
"roles": ["admin"],
"permissions": ["read", "write", "delete"]
}
],
"active": true,
"isVarified": true,
"profileImageUrl": "https://example.com/image.jpg",
"mfaEnabled": true,
"isMfaVerified": true,
"userMfaType": 1,
"userCreationType": 0,
"lastLoggedInTime": "2026-03-20T10:00:00Z",
"lastLoggedInDeviceInfo": "Windows Chrome",
"logInCount": 42
},
"errors": {}
}

Response Fields

FieldTypeDescription
itemIdstringUnique user identifier.
createdDatestring(date-time)Account creation date.
lastUpdatedDatestring(date-time)Last update date.
languagestringUser's preferred language.
salutationstringUser's salutation.
firstNamestringUser's first name.
lastNamestringUser's last name.
emailstringUser's email address.
userNamestringUser's username.
phoneNumberstringUser's phone number.
membershipsarrayOrganization memberships.
activebooleanWhether user is active.
isVarifiedbooleanWhether email is verified.
profileImageUrlstringUser's profile image URL.
mfaEnabledbooleanWhether MFA is enabled.
isMfaVerifiedbooleanWhether MFA is verified.
userMfaTypeintegerType of MFA (0-based).
userCreationTypeintegerType of user creation (0-based).
lastLoggedInTimestring(date-time)Last login timestamp.
lastLoggedInDeviceInfostringDevice information from last login.
logInCountintegerTotal number of logins.