💬 Chat App
Get user's chat list
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.
get/chat-app/chats
Response
Get user's chat list
Example response
{
"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"
},
{
"__v": 0,
"_id": "64d6722ae23d414af5ee2668",
"admin": "64d672295bda3332e4f3650d",
"createdAt": "2023-08-11T17:38:50.812Z",
"isGroupChat": false,
"name": "One on one chat",
"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": "64d672295bda3332e4f3655e",
"avatar": {
"_id": "64d672295bda3332e4f3655f",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1201.jpg"
},
"createdAt": "2023-08-11T17:38:49.120Z",
"email": "katelyn.marks@yahoo.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "ADMIN",
"updatedAt": "2023-08-11T17:38:49.120Z",
"username": "vella.weber24"
}
],
"updatedAt": "2023-08-11T17:38:50.812Z"
},
{
"__v": 0,
"_id": "64d6722ae23d414af5ee25f3",
"admin": "64d672295bda3332e4f36564",
"createdAt": "2023-08-11T17:38:50.811Z",
"isGroupChat": false,
"name": "One on one chat",
"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": "64d672295bda3332e4f36564",
"avatar": {
"_id": "64d672295bda3332e4f36565",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/947.jpg"
},
"createdAt": "2023-08-11T17:38:49.120Z",
"email": "courtney_quitzon@yahoo.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "USER",
"updatedAt": "2023-08-11T17:38:49.120Z",
"username": "clara24"
}
],
"updatedAt": "2023-08-11T17:38:50.811Z"
},
{
"__v": 0,
"_id": "64d6722ae23d414af5ee25f5",
"admin": "64d672295bda3332e4f3650d",
"createdAt": "2023-08-11T17:38:50.811Z",
"isGroupChat": false,
"name": "One on one chat",
"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"
}
],
"updatedAt": "2023-08-11T17:38:50.811Z"
},
{
"__v": 0,
"_id": "64d6722ae23d414af5ee264f",
"admin": "64d672295bda3332e4f3658e",
"createdAt": "2023-08-11T17:38:50.811Z",
"isGroupChat": false,
"name": "One on one chat",
"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": "64d672295bda3332e4f3658e",
"avatar": {
"_id": "64d672295bda3332e4f3658f",
"localPath": "",
"url": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/120.jpg"
},
"createdAt": "2023-08-11T17:38:49.121Z",
"email": "stefanie13@yahoo.com",
"isEmailVerified": true,
"loginType": "EMAIL_PASSWORD",
"role": "ADMIN",
"updatedAt": "2023-08-11T17:38:49.121Z",
"username": "aida64"
}
],
"updatedAt": "2023-08-11T17:38:50.811Z"
}
],
"message": "User chats fetched successfully!",
"statusCode": 200,
"success": true
}