Set Up and Use the IM Session Status Webhook in Zoho Desk

Set Up IM Message and Session Status Webhooks


Never miss a conversation update in IM! With the IM webhooks, you’ll know right away when a live chat or instant message session changes status, so you can respond quickly, keep your team informed.


IM Message Add Event

This event is triggered whenever an incoming or outgoing instant message (IM) is received. It helps you track individual message-level activity within a chat session. Learn more
Event Type: IM_Message_Add

[{
  "payload": {
    "actor": {
      "contactId": "186543000000451259",
      "name": "Kamal Nayan",
      "externalId": "+919878765654",
      "type": "ENDUSER"
    },
    "messageType": "TEXT",
    "meta": {
      "DESK_TICKET_ID": "186543000001543003",
      "DESK_TICKET_NUMBER": "434"
    },
    "integration": "WHATSAPP",
    "createdTime": "1710293987000",
    "sessionId": "3942000001025025",
    "id": "3942000001321149",
    "text": "This is Zykler Cares. I have some issues with my phone",
    "channelId": "3942000000995017",
    "direction": "IN",
    "status": "SAVED"
  },
  "eventTime": "1710313788286",
  "eventType": "IM_Message_Add",
  "orgId": "78412359"
}]

What can you achieve with the IM Session Status webhook?   

Stay in control of every customer conversation. The IM Session Status webhook notifies you automatically the moment a chat session:
  1. Is picked up by an agent or a bot
  2. Goes on hold or ends
  3. Gets assigned, blocked, or switched between open and active states
 
This lets you:
  1. Trigger internal workflows instantly (like reassigning a ticket or updating a dashboard)
  2. Analyze support team performance in real time
  3. Monitor customer engagement across channels

Steps to set up your webhook for IM Session Status updates   

  1. Navigate to Setup > Automation > Webhooks.
  2. Click Create Webhook.
  3. Select the IM Session Status event.
  4. Enter your Webhook URL. This is where notifications will be sent.
  5. Save and test.

What information do you get in each webhook notification?   

 
Every time a chat/IM session’s status changes, you’ll get a payload like this at your webhook endpoint:
json
 [{
  "payload": {
    "currentAssigneeId": "106554156",
    "sessionStatus": "ON_HOLD",
    "replyStatus": "ACCEPTED",
    "sessionOldStatus": "ENDED",
    "sessionId": "65403000000038063",
    "messagesCount": "23",
    "assigneeType": "AGENT",
    "channelId": "65403000000038011"
  },
  "eventTime": "1751022087019",
  "eventType": "IM_Session_Status",
  "orgId": "106553778"
}] 

Payload field description
Payload field description
Field
Description
currentAssigneeId
Agent or bot ID currently handling the session.
sessionStatus
Current status of the conversation (e.g., ON_PROGRESS, ENDED).
replyStatus
If messages can be sent/received for this session (see below for all possible statuses).
sessionOldStatus
Previous status of the session. This helps with tracking changes.
sessionId
Unique identifier for the session.
messagesCount
Total number of messages exchanged so far.
assigneeType
Identifies if the current handler is an ‘AGENT’ or a ‘BOT’.
channelId
ID of the channel (chat, social, etc.) where the session occurred.
eventTime
Timestamp of event occurrence.
eventType
The type of webhook event received (IM_Session_Status).
orgId
Your Zoho Desk organization ID.
   

Status Values Cheat Sheet   

Session Status
Reply Status
Session Status
Value
Description
CREATED
New conversation started by an end user.
OPEN
Waiting to be handled by an agent or bot.
ON_PROGRESS
Agent/bot is actively involved in the session.
ON_HOLD
Picked up, but no response sent yet.
ENDED
Agent/bot has ended the session.
BLOCKED
Session is blocked; no further messages allowed.
Reply Status
Value
What It Means
ACCEPTED
Messages can be exchanged.
CHANNEL_INACTIVE
Channel is inactive. Messages cannot be sent.
CHANNEL_REVOKED
Channel revoked. Messages cannot be sent.
SESSION_ENDED
Session ended and communication is closed.
SESSION_BLOCKED
Blocked by agent. No messages allowed.
SESSION_EXPIRED
Expired session. The user must send another message to resume.
UNASSIGNED
Not assigned to anyone.
NOT_AN_ASSIGNEE
Handler is not actually assigned to the session.
CREDIT_EXHAUSTED
Message credit exhausted and no more can be sent.
ACCESSTOKEN_EXPIRED
(FB/Instagram only) Access token expired, needs reauthentication.
PERMISSION_REVOKED
(FB/Instagram only) Page permission revoked.
UNEXPECTED_ERROR
Error sending message. There may be a misconfiguration.
PAGE_REMOVED
Page/channel deleted or deactivated.
SANDBOX_LIMIT_REACHED
Sandbox daily message limit reached.
CHANNEL_DELETED
Channel deleted; messaging disabled.
ENDUSER_OFFLINE
(ZBM sessions) End user is offline; only receive messages.
CONFIG_SKIPPED_CHANNEL
Configuration skipped.
OUTGOING_LIMIT_REACHED
Message limit reached for outbound messages.
ASSIGNED_TO_OTHER_SERVICE
Handled by another Zoho service.


Practical use cases   

  1. Real-time Agent Routing: Reassign chats when status is "ON_HOLD" too long.
  2. Performance Tracking: Log all ENDED sessions for service-quality reviews.
  3. Queue Monitoring: Alert supervisors when sessions stay "OPEN" with no assignee.
  4. Omnichannel Insights: Tie chat behavior to other channel data with the unique session or channel ID.

Advanced tips and integration examples   

Automating escalations
  1. Connect the webhook to your ticketing or incident management system.
  2. Trigger auto-escalation for sessions blocked, left open, or ended abruptly.
Live analytics dashboard
  1. Feed webhook data into a dashboard tool for up-to-the-minute session trends, agent workloads, and engagement stats.

Custom notifications
  1. Use payload data to build targeted email, SMS, or app notifications for your team.
  2. Send alerts for "BLOCKED" or "CREDIT_EXHAUSTED" statuses to prevent lost conversations.


Best practices  


  1. Document Your Flows: Keep a record of each status transition for compliance and clarity.
  2. Regularly Review Status Definitions: Stay up to date with any new values Zoho adds.
  3. Test Thoroughly: Simulate all session states and statuses in a sandbox before going live.
  4. Secure Your Endpoint: Use authentication, validation, and logging to protect your webhook URL.


Troubleshooting & FAQ

Why am I not receiving any webook events?
  1. Double-check the destination URL. Ensure it is accessible, expects POST requests, and can parse JSON.
  2. Review authentication and firewall settings if you use a secured webhook endpoint.
Why is the data my webhook is receiving not useful?
  1. Make sure your logic checks for all possible statuses (such as "BLOCKED" or "SESSION_EXPIRED").
  2. Map sessionStatus and replyStatus values in your app to accurately reflect session lifecycles.
Can I use this webhook for Whatsapp/Facebook/Instagram?
  1. Yes! The payload includes helpful statuses for social channels. Look for replyStatus like ‘ACCESSTOKEN_EXPIRED’ or ‘PERMISSION_REVOKED’ for Facebook/Instagram integrations.
 

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              WCAG



                                        Create. Review. Publish.

                                        Write, edit, collaborate on, and publish documents to different content management platforms.

                                        Get Started Now







                                                          You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                              Manage your brands on social media


                                                                • Desk Community Learning Series


                                                                • Digest


                                                                • Functions


                                                                • Meetups


                                                                • Kbase


                                                                • Resources


                                                                • Glossary


                                                                • Desk Marketplace


                                                                • MVP Corner


                                                                • Word of the Day


                                                                • Ask the Experts


                                                                  Zoho Sheet Resources

                                                                   

                                                                      Zoho Forms Resources


                                                                        Secure your business
                                                                        communication with Zoho Mail


                                                                        Mail on the move with
                                                                        Zoho Mail mobile application

                                                                          Stay on top of your schedule
                                                                          at all times


                                                                          Carry your calendar with you
                                                                          Anytime, anywhere




                                                                                Zoho Sign Resources

                                                                                  Sign, Paperless!

                                                                                  Sign and send business documents on the go!

                                                                                  Get Started Now




                                                                                          Zoho TeamInbox Resources





                                                                                                    Zoho DataPrep Demo

                                                                                                    Get a personalized demo or POC

                                                                                                    REGISTER NOW


                                                                                                      Design. Discuss. Deliver.

                                                                                                      Create visually engaging stories with Zoho Show.

                                                                                                      Get Started Now









                                                                                                                          • Related Articles

                                                                                                                          • WhatsApp Message Templates User Guide

                                                                                                                            What is a Message Template? A WhatsApp Message Template is a pre-approved customized message that is used to send notifications to opted-in customers. To start using the Message templates, you must first submit the messages to WhatsApp and get them ...
                                                                                                                          • Setting up Webhooks

                                                                                                                            Webhooks are one way that apps can send automated messages or information to other apps. They facilitate communication with third-party applications by sending instant web notifications every time an event occurs in Zoho Desk. All you need to do is ...
                                                                                                                          • Setting Task Status, Due Date, and Priority

                                                                                                                            Task Status An important aspect of customer support is to keep track of all the tasks that are created on your help desk. Task status accurately reflects the current stage of your tasks, from start to finish. With task status, you can neatly track ...
                                                                                                                          • Ticket Status Lifecycle Extension for Zoho Desk

                                                                                                                            A ticket can go through various statuses once it gets created. For example, upon its creation, ticket status is Open. When an agent replies to the ticket, its status will change to Resolved. Similarly, if the customer responds to the same ticket, ...
                                                                                                                          • How to set the welcome message on the ASAP Help Widget

                                                                                                                            Specifying the Welcome Message A personalized welcome message can serve as a friendly greeting for customers when they first access your ASAP help widget. You can include a brief introduction about your service and explain how it can benefit them, ...
                                                                                                                            Wherever you are is as good as
                                                                                                                            your workplace

                                                                                                                              Resources

                                                                                                                              Videos

                                                                                                                              Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                              eBooks

                                                                                                                              Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                              Webinars

                                                                                                                              Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                              CRM Tips

                                                                                                                              Make the most of Zoho CRM with these useful tips.



                                                                                                                                Zoho Show Resources