Skip to main content

Agent Session Updated

The Agent Session Updated event is triggered whenever an agent's session changes, such as when they log in, log out, or their session expires.

Event Name

agent_session_updated

Payload Fields

FieldTypeDescription
actionstringThe action type of the event. Possible actions: user_logged_in, user_logged_out or system_logged_out
userTeamMemberThe agent who performed the action.

Example Payload

{
"event": "agent_session_updated",
"payload": {
"action": "user_logged_in",
"user": {
"email": "john.doe@gmail.com",
"name": "John Doe",
"available": false,
"lastUpdatedAt": "2024-02-21T12:02:47Z"
}
}
}