My Project
  1. ChatRoom/Messages
My Project
  • OUTBACK APIs
    • User
      • Create User
      • Login User
      • Forgot Password
      • Validate otp
      • Reset Password
      • Social login
      • Search Post
      • Update User
      • Get Profile
      • Get User Profile for Web
      • Delete Account
      • Logout
      • Get All Users
      • Update FCM TOKEN
      • Verify User
      • Follow Unfollow User
      • Get User Connections
    • Post
      • Get Popular Categories Post
      • Add Post
      • Update Post
      • Get Post
      • Get My Post
      • Detail Post By Id
      • Get Trending Posts
      • Get Most Viewed Post
      • get specfic user post
      • Record Fav_Unfav post
      • Get Favt Post
      • Record Views
      • All Posts Views
      • Add Comment
      • Get Comments
      • Get Collection List
      • Get Post Collection
      • Remove Collection
      • Soft Delete Post
      • Delete Post
      • Update Sold Type
      • report post
      • update thumnail of posts
    • ChatRoom/Messages
      • Create Chatroom
        POST
      • Send Message
        POST
      • Get Messages
        POST
      • Get ChatRoom
        GET
      • Update block status
        PUT
      • Delete Message
        DELETE
    • Town Hall
      • Add townhall post
      • get town hall post
      • get specific user townhall post
      • reaction on townhall post
      • Add replies
      • get replies
      • Reaction On reply
      • get Location search
      • Report Townhall post
    • notfication
      • message notfication
      • message notfication
    • Category
      • Update Category
      • Get Model By Makes
      • get category V2
      • Add Category
      • Add subcategory
      • Get Categories
      • Delete Category
    • Payments
      • Add Card
      • Get Cards
      • Top up Wallet
      • Get Transaction History
      • View Wallet balence
      • Make Payments
      • Update Default Card
      • Add Bank Account
      • Update Bank Account
      • Withdraw to Bank Acc
    • PAYMENTS APIS
      • Create Setup Intent
      • Save Payment Method
      • For getting test payment Id
      • View Balance
      • Add funds to Account
      • Add Bank Account
      • Get User Bank Accounts
      • Select Default Bank Acc
  1. ChatRoom/Messages

Get ChatRoom

GET
/chat-mgt/get-chat-rooms

Request

Header Params
Authorization
string 
required
Example:
bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NzFjZDZmYzA1OGE4NDA0MjEyNGJlZjMiLCJpYXQiOjE3MzA4OTExMzAsImV4cCI6MTc2MjQ0ODczMH0.6xVVAT5RgHHThm9zBywUAuNGVxsMxqmoiZxnK8BfM4k

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://13.239.78.144:3000/api/v1/chat-mgt/get-chat-rooms' \
--header 'Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2NzFjZDZmYzA1OGE4NDA0MjEyNGJlZjMiLCJpYXQiOjE3MzA4OTExMzAsImV4cCI6MTc2MjQ0ODczMH0.6xVVAT5RgHHThm9zBywUAuNGVxsMxqmoiZxnK8BfM4k'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "status": 1,
    "statusCode": 200,
    "message": "Chat rooms retrieved successfully.",
    "data": [
        {
            "_id": "67c577bcdf1ced3a02bea7e9",
            "participants": [
                {
                    "_id": "67b825e6944bb7629e4ad86f",
                    "name": "John Doe",
                    "profile_photo_url": null
                }
            ],
            "lastMessage": {
                "_id": "67c577c1df1ced3a02bea81b",
                "messageText": "Hello",
                "userId": "67b825e6944bb7629e4ad86f",
                "name": "John Doe",
                "message_status": {
                    "isSeen": false
                },
                "createdAt": "2025-03-03T09:34:57.767Z"
            },
            "is_blocked": false,
            "is_active": true,
            "createdAt": "2025-03-03T09:34:52.510Z",
            "updatedAt": "2025-03-03T09:34:57.770Z",
            "productDetails": null
        }
    ]
}
Modified at 2025-03-03 10:09:17
Previous
Get Messages
Next
Update block status
Built with