Retrieve all chats associated with the logged-in user.This endpoint provides a comprehensive list of both individual and group chats, offering a centralized view of the user's communication interactions.Developers can utilize this endpoint to seamlessly gather chat metadata, facilitating efficient tracking and management of conversations within the application.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"data": [
{
"__v": 0,
"_id": "64d6722a5bda3332e4f368a9",
"admin": "64d672295bda3332e4f36582",
"createdAt": "2023-08-11T17:38:50.921Z",
"isGroupChat": true,
"name": "Ferrari Civicmarkets",
"participants": [
{
"__v": 0,
"_id": "64d672295bda3332e4f3650d",
"avatar": {
"_id": "64d672295bda3332e4f3650e",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/93.jpg"
},
"createdAt": "2023-08-11T17:38:49.117Z",
"email": "anissa27@gmail.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "USER",
"updatedAt": "2023-08-11T17:39:09.579Z",
"username": "sandrine8"
},
{
"__v": 0,
"_id": "64d672295bda3332e4f3651c",
"avatar": {
"_id": "64d672295bda3332e4f3651d",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1038.jpg"
},
"createdAt": "2023-08-11T17:38:49.119Z",
"email": "vicky.pfeffer49@gmail.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "ADMIN",
"updatedAt": "2023-08-11T17:38:49.119Z",
"username": "michael80"
},
{
"__v": 0,
"_id": "64d672295bda3332e4f36525",
"avatar": {
"_id": "64d672295bda3332e4f36526",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/529.jpg"
},
"createdAt": "2023-08-11T17:38:49.119Z",
"email": "dayton.hirthe@yahoo.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "ADMIN",
"updatedAt": "2023-08-11T17:38:49.119Z",
"username": "anahi_herman"
},
{
"__v": 0,
"_id": "64d672295bda3332e4f3653d",
"avatar": {
"_id": "64d672295bda3332e4f3653e",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1231.jpg"
},
"createdAt": "2023-08-11T17:38:49.120Z",
"email": "jalen.ankunding21@yahoo.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "USER",
"updatedAt": "2023-08-11T17:38:49.120Z",
"username": "tyreek.wolff3"
},
{
"__v": 0,
"_id": "64d672295bda3332e4f36567",
"avatar": {
"_id": "64d672295bda3332e4f36568",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1004.jpg"
},
"createdAt": "2023-08-11T17:38:49.120Z",
"email": "saul58@gmail.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "ADMIN",
"updatedAt": "2023-08-11T17:38:49.120Z",
"username": "joaquin.russel-volkman10"
},
{
"__v": 0,
"_id": "64d672295bda3332e4f36582",
"avatar": {
"_id": "64d672295bda3332e4f36583",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1159.jpg"
},
"createdAt": "2023-08-11T17:38:49.121Z",
"email": "ferne.dare19@yahoo.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "USER",
"updatedAt": "2023-08-11T17:38:49.121Z",
"username": "kaitlin_rolfson69"
},
{
"__v": 0,
"_id": "64d672295bda3332e4f3658b",
"avatar": {
"_id": "64d672295bda3332e4f3658c",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/46.jpg"
},
"createdAt": "2023-08-11T17:38:49.121Z",
"email": "stephon_feeney37@gmail.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "USER",
"updatedAt": "2023-08-11T17:38:49.121Z",
"username": "johnson_wisozk"
}
],
"updatedAt": "2023-08-11T17:38:50.921Z"
}
],
"message": "User chats fetched successfully!",
"statusCode": 200,
"success": true
}
This API endpoint enables developers to retrieve a list of users who are available for chat interactions.The endpoint facilitates the identification of potential chat partners or group members for the logged-in user.It provides a seamless way to explore and initiate conversations, fostering a dynamic and engaging chat environment within the application.
Example-> JSON data
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"__v": 0,
"_id": "64d672295bda3332e4f36513",
"avatar": {
"_id": "64d672295bda3332e4f36514",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1138.jpg"
},
"createdAt": "2023-08-11T17:38:49.119Z",
"email": "lynn75@hotmail.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"password": "$2b$10$GAIbzK/rRLyssJsJyezCaOPO1H1WJUcZkMyVHvycHTaW0YgTQKGK2",
"role": "ADMIN",
"updatedAt": "2023-08-11T17:38:49.119Z",
"username": "nelle38"
},