Support Chat

Includes listing of customer and admin chat history also chat API is used here so user can start chat from this support chat screen.

Chat Listing API

The Chat Listing API provides a comprehensive list of chat conversations between users and admins on the e-commerce platform. It allows users and admins to view their previous chat interactions, ensuring seamless communication and support. Additionally, if an admin is away or unavailable, a prompt will be shown in the chat to inform users.

Support chat listing screen

Endpoint

  • {{baseurl}}/api/v1/chat/list

Method

  • GET

Request Parameters

None

Authorization

The API requires a valid bearer token in the request header for authentication and user authorization. Users and admins must provide their respective tokens to access their chat conversations.

Response Format

The API responds with a JSON object containing an array of chat conversation objects. Each conversation represents a chat interaction and includes details such as the participants, messages, timestamps, and other relevant information.

Example Response:

Features

  • The Chat Listing API allows users and admins to view their previous chat interactions, promoting continuous communication and support.

  • Each chat conversation contains details of the participants and messages exchanged, including timestamps for reference.

  • If an admin is away, a prompt will be shown in the chat to inform users about the delay in response.

Usage

  • The Chat Listing API is used in the chat section of the e-commerce application to display a list of past conversations between users and admins.

  • Users and admins can review previous interactions to address any pending queries or issues, and they will be aware of the admin's availability status through the displayed prompt.

By offering a comprehensive chat history and real-time updates about admin availability, the Chat Listing API enhances the customer support experience, ensuring timely and effective communication between users and admins.

Last updated