Get current user information
Returns information about the currently authenticated user within the current workspace.
What is returned:
- Basic profile information (name, email, avatar)
- Workspace and role information
- User type (Employee or Organization Member)
- All granted permissions
- Account preferences (language, email notifications, workspace color)
- Identifiers for employee/member accounts
This endpoint is useful for determining the current user’s identity, permissions, and account type before making other API calls.
GET
/account/infoAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredResponses
200
avatarUrlstring | nullrequiredPublic URL for the generated user avatar image
emailstringrequiredemailNotificationsbooleanrequiredEmail notifications enabled
employeeIdstring | nullrequiredEmployee ID if user is Employee
firstNamestring | nullrequiredlanguagestringrequiredUser preferred language
lastNamestring | nullrequiredmemberIdstring | nullrequiredOrganization member ID if user is OrganizationMember
namestringrequiredConvenience full name
okbooleanrequiredOperation success flag
permissionsstring[]requiredGranted permission keys
roleIdstringrequiredroleNamestringrequiredsourcestringrequiredAuthentication source
Allowed:
webappapi_patapi_oauthmcpagenttypestringrequiredUser type
Allowed:
EmployeeOrganizationMemberLeadtimeSupportHelpdeskUserAgentuserIdstringrequiredCurrent user ID
userWorkspaceColorstringrequiredUser workspace color preference
Allowed:
INHERITDEFAULTBLACKREDROSEMAGENTAGREENBLUEYELLOWVIOLETworkspaceIdstringrequiredCurrent workspace ID
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404User not found
Request
curl -X GET "https://leadtime.app/api/public/account/info" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/account/info", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/account/info",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"avatarUrl": "https://app.example.com/api/avatars/public/avatar_123.svg",
"email": "jane.doe@example.com",
"emailNotifications": true,
"employeeId": "emp_789",
"firstName": "Jane",
"language": "en",
"lastName": "Doe",
"memberId": null,
"name": "Jane Doe",
"ok": true,
"permissions": [
"string"
],
"roleId": "role_abc",
"roleName": "Admin",
"source": "webapp",
"type": "Employee",
"userId": "user_123",
"userWorkspaceColor": "INHERIT",
"workspaceId": "workspace_456"
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
User not found