Get Account
Used to retrieve the current account details including permissions and organization memberships.
API Endpoint
| Property | Value |
|---|---|
| Request Method | GET |
| Request URL | https://api.seliseblocks.com/idp/v1/Iam/GetAccount |
Request
Request Example
curl -X GET 'https://api.seliseblocks.com/idp/v1/Iam/GetAccount' \
-H 'x-blocks-key: YOUR_PROJECT_KEY'
Request Headers
| Field | Type | Description |
|---|---|---|
| x-blocks-key | string | Project key for authentication. |
Response
Success Response
Returns HTTP status 200 OK with current account details.
{
"data": {
"itemId": "account_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": {},
"permissions": [
{
"itemId": "perm_123",
"name": "read",
"type": 0,
"description": "Permission to read resources",
"resource": "documents"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
| data | object | Current account details. |
| errors | object | Any errors encountered. |
| permissions | array | List of granted permissions. |
Account Data Fields
| Field | Type | Description |
|---|---|---|
| itemId | string | Unique account identifier. |
| createdDate | string(date-time) | Account creation date. |
| lastUpdatedDate | string(date-time) | Last update date. |
| language | string | Account's preferred language. |
| salutation | string | Account holder's salutation. |
| firstName | string | Account holder's first name. |
| lastName | string | Account holder's last name. |
| string | Account email address. | |
| userName | string | Account username. |
| phoneNumber | string | Account phone number. |
| memberships | array | Organization memberships. |
| active | boolean | Whether account is active. |
| isVarified | boolean | Whether email is verified. |
| profileImageUrl | string | Account's profile image URL. |
| mfaEnabled | boolean | Whether MFA is enabled. |
| isMfaVerified | boolean | Whether MFA is verified. |
| userMfaType | integer | Type of MFA (0-based). |
| userCreationType | integer | Type of account creation (0-based). |
| lastLoggedInTime | string(date-time) | Last login timestamp. |
| lastLoggedInDeviceInfo | string | Device information from last login. |
| logInCount | integer | Total number of logins. |
Permission Object
| Field | Type | Description |
|---|---|---|
| itemId | string | Unique permission identifier. |
| name | string | Permission name. |
| type | integer | Permission type (0-based). |
| description | string | Permission description. |
| resource | string | Resource this permission applies to. |