Skip to content

Get current logged-in user
deprecated

Request

Deprecated. Returns credential-bearing SystemUser fields. Use Get my profile (GET /api/v1/users/me), which returns a credential-free UserResponse.

Security
apikeyAuth
curl -i -X GET \
  https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/payless4messaging-service/WhatsApp/SystemUsers/getCurrentLoginSystemUser \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

The authenticated user's profile including role, assigned numbers, and availability status

Bodyapplication/json
idstring, (uuid)
Example:"e1f2a3b4-c5d6-7890-e1f2-a3b4c5d67890"
emailstring
Example:"agent@example.com"
passwordstring, (password)
Example:"********"
tempPasswordstring or null
Example:"********"
rolestring
Value:"CLIENT"
Example:"CLIENT"
liveChatRolestring
Enum:"SUPERVISOR""AGENT"
Example:"AGENT"
primaryEmailAddressstring or null
Example:"agent@example.com"
mobileNumberstring or null
Example:"+27821234567"
sentLowerCreditLimitMailboolean
Example:false
sentZeroCreditMailboolean
Example:false
apiKeystring
Example:"64a1b2c3d4e5f67890abcdef"
disabledboolean
Default:false
Example:false
deletedboolean
Default:false
Example:false
emailVerificationKeystring or null
Example:null
passwordResetKeystring or null
Example:null
inactivityNodeIdstring or null
Example:"node-inactivity-001"
publicHolidayInactivityNodeIdstring or null
Example:"node-holiday-001"
officeClosedInactivityNodeIdstring or null
Example:"node-closed-001"
autoResponseNodeIdstring or null
Example:"node-auto-001"
clientobject(Client)
clientRefstring or null
Example:null
ticketCountinteger or null
Example:5
lastSeenstring or null
Example:null
resetPasswordEmailSentboolean
Example:false
emailVerifiedboolean
Example:false
firstNamestring
Example:"Jane"
lastNamestring
Example:"Doe"
agentChatLimitinteger

Max concurrent chats.

Example:5
availabilityStatusboolean
Example:true
initialPasswordboolean
Example:false
tempAccountboolean
Example:false
loginTokenstring
Example:"1d368c30-c9f8-4523-b8c2-3824ba72ff5c"
validTokenboolean
Example:false
avatarstring
Example:"https://example.com/avatars/jane.jpg"
shouldGetNotificationsboolean
Example:true
applicationKeystring
Example:"a3b4c5d6-e7f8-9012-a3b4-c5d6e7f89012"
userIdstring
Example:"21c28d3e-bc5c-4bc9-99be-fe283df71653"
applicationClientIdstring
Example:"1d368c30-c9f8-4523-b8c2-3824ba72ff5c"
allowedSharedInboxboolean
Example:true
allowedUnassignedInboxboolean
Example:true
assignmentMessagestring

Custom message sent to the customer when a chat is assigned to this agent. If null, defaults to 'Assigned to <agent name>'.

Example:"Hi, I'm Jane and I'll be assisting you today."
Response
{ "id": "e1f2a3b4-c5d6-7890-e1f2-a3b4c5d67890", "email": "agent@example.com", "password": "********", "tempPassword": "********", "role": "CLIENT", "liveChatRole": "AGENT", "primaryEmailAddress": "agent@example.com", "mobileNumber": "+27821234567", "sentLowerCreditLimitMail": false, "sentZeroCreditMail": false, "apiKey": "64a1b2c3d4e5f67890abcdef", "disabled": false, "deleted": false, "emailVerificationKey": null, "passwordResetKey": null, "inactivityNodeId": "node-inactivity-001", "publicHolidayInactivityNodeId": "node-holiday-001", "officeClosedInactivityNodeId": "node-closed-001", "autoResponseNodeId": "node-auto-001", "client": { … }, "clientRef": null, "ticketCount": 5, "lastSeen": null, "resetPasswordEmailSent": false, "emailVerified": false, "firstName": "Jane", "lastName": "Doe", "agentChatLimit": 5, "availabilityStatus": true, "initialPassword": false, "tempAccount": false, "loginToken": "1d368c30-c9f8-4523-b8c2-3824ba72ff5c", "validToken": false, "avatar": "https://example.com/avatars/jane.jpg", "shouldGetNotifications": true, "applicationKey": "a3b4c5d6-e7f8-9012-a3b4-c5d6e7f89012", "userId": "21c28d3e-bc5c-4bc9-99be-fe283df71653", "applicationClientId": "1d368c30-c9f8-4523-b8c2-3824ba72ff5c", "allowedSharedInbox": true, "allowedUnassignedInbox": true, "assignmentMessage": "Hi, I'm Jane and I'll be assisting you today." }