Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

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
userWorkspaceColorstringrequired
User workspace color preference
Allowed:INHERITDEFAULTBLACKREDROSEMAGENTAGREENBLUEYELLOWVIOLET
workspaceIdstringrequired
Current 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"
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"
}