Start Chat
                 Author: Rohit Agnihotri 
                 26 views 
            
        
                                            POST
                                            Start Chat 
                                        
                                     {{URL}}/api/v1/chat/startChat
                                    
                                    HEADERS
                                        Accept
                                            application/json
                                            None
Content-Type
                                            application/json
                                            None
Authorization
                                            {{Authorization}}
                                            None
client
                                            {{client}}
                                            None
language
                                            1
                                            None
currency
                                            USD
                                            None
BODY raw
                                                                                          
                                                    
{
    "sub_domain":"192.168.101.88",
    "client_id":1,
    "db_name":"salesdemo",
    "user_id":"133",
    "type":"agent-to-user",
    "order_vendor_id":2,
    "vendor_id":3,
    "order_id":5
}
                                                  
                                              
                                            
                                        Example Request
                                    
                                    - Start Chat
 
                                            Example Response
                                        
                                                                                            {- message: "Room created successfully !!!"
 - roomData: {
- _id: "641d731dee3408c461095a2b"
 - status: true
 - type: "agent_to_user"
 - room_id: "52788594"
 - room_name: "OrderNo-52788594-orderId-10-oderVendor-7-agentId-141"
 - order_vendor_id: "9"
 - order_id: "10"
 - agent_db: "ace"
 - vendor_id: "7"
 - sub_domain: "192.168.101.88"
 - vendor_user_id: "141"
 - order_user_id: "1"
 - agent_id: "141"
 - db_name: "ace"
 - client_id: "1"
 - created_date: "2023-03-24T09:53:33.984Z"
 - updated_date: "2023-03-24T10:13:40.620Z"
 - __v: 0
 
} - status: 200
 
}
                                                
                                            Still stuck? How can we help?
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.