Chat

Get Vendor List

get
/chat-admin/vendor-list

Retrieves a list of vendors for chat administration.

Query parameters
keywordstringOptional

A search keyword to filter vendor details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully got vendor details

get
/chat-admin/vendor-list

Get User Details

get
/chat-admin

Fetches user details for chat administration.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully retrieved user details

get
/chat-admin

Get Vendor Details

get
/chat-admin/vendor/{vendorId}

Fetches vendor details by vendor ID.

Path parameters
vendorIdintegerRequired

ID of the vendor to fetch details for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully retrieved vendor details

get
/chat-admin/vendor/{vendorId}

Get Chat History

get
/chat-admin/chat-history

Fetches the chat history for a given vendor.

Query parameters
vendorIdintegerRequired

ID of the vendor to fetch chat history for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully retrieved chat history

get
/chat-admin/chat-history

Get Seller Product Count

get
/admin-vendor-product/vendor-product-count

Fetches the count of products listed by a given vendor.

Query parameters
vendorIdintegerRequired

ID of the vendor to fetch the product count for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully retrieved seller product count

get
/admin-vendor-product/vendor-product-count

Update Chat Seen Status

put
/chat-admin/chat-seen

Updates the status of the chat to 'seen' for a given vendor.

Query parameters
vendorIdintegerRequired

ID of the vendor to update the chat seen status for

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Chat seen status updated successfully

put
/chat-admin/chat-seen

Upload File

post
/media/upload-file

Upload a file (image) to the server.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
imagestring · binaryRequired

The image file to upload

pathstringRequired

The folder path where the image will be saved

fileNamestringRequired

The name to assign to the uploaded file

fileTypeinteger · int32Required

The type of the file (e.g., image, document)

Responses
chevron-right
200

Image uploaded successfully

post
/media/upload-file

Delete a specific message

put
/chat-admin/delete
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
messageIdstringRequired

Unique identifier for the message to delete

fromIdinteger · int32Required

ID of the sender

toIdinteger · int32Required

ID of the recipient

Responses
chevron-right
200

Message Deleted Successfully

put
/chat-admin/delete

Last updated