logo

Independent Page for IM Chat Logs

By generating a link, you can directly access the chat logs of the conversation.

https://{company_customer_service_system_domain}/entry/im-log-list.html?token={token}&im_sub_session_id={conversation_record_id}&customer_id={customer_id}&im_robot_session_id={robot_conversation_id}

Parameter Description

ParameterRequiredDescription
tokenYesJWT used for authentication
im_sub_session_idYesSession ID
customer_idNo
im_robot_session_idNo

Generating Token

The token is in JWT format.
To obtain the JWT secret key: Location in the Udesk system, Management Center - Single Sign-On - Shared Secret Key
JWT data must include:

{
  "email": "agent@udesk.cn", // Email of the agent
  "iat": 1605768993, // Integer representing Greenwich time, time when the token is generated
}

Note:

The expiration time of JWT_TOKEN is 10 hours. Developers need to provide functionality to refresh JWT_TOKEN.