curl --location 'https://api.ticaret.pro/wa/chats?providerSessionId=undefined&q=undefined&page=undefined&limit=undefined&unreadOnly=undefined&unread=undefined&labelId=undefined&labelIds=undefined&labelMode=undefined&assignedUserId=undefined&assignedGroupId=undefined&assignmentStatus=undefined&assignedToMe=undefined&assignedToMyGroups=undefined&mine=undefined&myGroups=undefined&customerId=undefined&contactId=undefined&customerPhone=undefined&crmIdentityStatus=undefined&customerRepresentativeUserId=undefined&customerTeamGroupId=undefined&customerStatus=undefined' \
--header 'Authorization: Bearer <token>'{
"status": true,
"data": {
"rows": [
{
"id": "string",
"providerSessionId": "string",
"remoteJid": "string",
"chatType": "direct",
"title": "string",
"lastMessage": null,
"lastMessageAt": "2019-08-24T14:15:22.123Z",
"lastAction": "string",
"lastActionAt": "2019-08-24T14:15:22.123Z",
"unreadCount": 0,
"labels": [
{
"id": "string",
"accountId": "string",
"name": "string",
"color": "string",
"description": "string",
"status": "active",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z",
"entityVersion": "string"
}
],
"updatedAt": "2019-08-24T14:15:22.123Z",
"createdAt": "2019-08-24T14:15:22.123Z",
"entityVersion": "string",
"assignment": {
"id": "string",
"accountId": "string",
"providerSessionId": "string",
"targetType": "chat",
"remoteJid": "string",
"messageId": "string",
"assigneeType": "user",
"assigneeId": "string",
"user": {
"id": "string",
"email": "string",
"displayName": "string",
"status": "string"
},
"group": {},
"assignedByType": "string",
"assignedBy": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"crmContext": {
"identityStatus": "mapped",
"phone": "string",
"mapping": {
"id": "string",
"accountId": "string",
"providerSessionId": "string",
"whatsappJid": "string",
"phone": "string",
"customerId": "string",
"contactId": "string",
"customer": {
"id": "string",
"accountId": "string",
"title": "string",
"shortName": "string",
"sector": "string",
"city": "string",
"notes": "string",
"source": "string",
"taxOffice": "string",
"taxNumber": "string",
"status": "active",
"primaryRepresentativeUserId": "string",
"primaryTeamGroupId": "string",
"representative": {
"id": "string",
"email": "string",
"displayName": "string",
"status": "string"
},
"team": {},
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"contact": {
"id": "string",
"accountId": "string",
"customerId": "string",
"firstName": "string",
"lastName": "string",
"displayName": "string",
"email": "string",
"role": "string",
"title": "string",
"profession": "string",
"notes": "string",
"phones": [
{
"type": "string",
"label": "string",
"value": "string",
"normalized": "string",
"whatsappJid": "string",
"isWhatsapp": true,
"isPrimary": true
}
],
"isPrimary": true,
"status": "active",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"source": "string",
"status": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"customer": {
"id": "string",
"accountId": "string",
"title": "string",
"shortName": "string",
"sector": "string",
"city": "string",
"notes": "string",
"source": "string",
"taxOffice": "string",
"taxNumber": "string",
"status": "active",
"primaryRepresentativeUserId": "string",
"primaryTeamGroupId": "string",
"representative": {
"id": "string",
"email": "string",
"displayName": "string",
"status": "string"
},
"team": {},
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"contact": {
"id": "string",
"accountId": "string",
"customerId": "string",
"firstName": "string",
"lastName": "string",
"displayName": "string",
"email": "string",
"role": "string",
"title": "string",
"profession": "string",
"notes": "string",
"phones": [
{
"type": "string",
"label": "string",
"value": "string",
"normalized": "string",
"whatsappJid": "string",
"isWhatsapp": true,
"isPrimary": true
}
],
"isPrimary": true,
"status": "active",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
},
"representative": {
"id": "string",
"email": "string",
"displayName": "string",
"status": "string"
},
"team": {},
"participantId": "string"
}
}
],
"page": 0,
"limit": 0,
"total": 0
}
}