Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

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/info
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:read
or
AuthorizationBearer token (JWT) · headerrequired
Responses
200
avatarUrlstring | nullrequired

Public URL for the generated user avatar image

emailstringrequired
emailNotificationsbooleanrequired

Email notifications enabled

employeeIdstring | nullrequired

Employee ID if user is Employee

firstNamestring | nullrequired
languagestringrequired

User preferred language

lastNamestring | nullrequired
memberIdstring | nullrequired

Organization member ID if user is OrganizationMember

namestringrequired

Convenience full name

okbooleanrequired

Operation success flag

permissionsstring[]required

Granted permission keys

roleIdstringrequired
roleNamestringrequired
sourcestringrequired

Authentication source

Allowed:webappapi_patapi_oauthmcpagent
typestringrequired

User type

Allowed:EmployeeOrganizationMemberLeadtimeSupportHelpdeskUserAgent
userIdstringrequired

Current user ID

userNavigationAnimationsstringrequired

Personal override for left-right page navigation animations. INHERIT follows the workspace default. ON and OFF force the animation on or off.

Allowed:INHERITONOFF
userWorkspaceColorstringrequired

User workspace color preference

Allowed:INHERITDEFAULTBLACKREDROSEMAGENTAGREENBLUESKYYELLOWVIOLET
workspaceIdstringrequired

Current workspace ID

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

404

User not found

Try it
Server
Authorization
Request
curl -X GET "https://leadtime.app/api/public/account/info" \
  -H "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",
  "userNavigationAnimations": "INHERIT",
  "userWorkspaceColor": "INHERIT",
  "workspaceId": "workspace_456"
}