curl --location --request GET 'https://api.ticaret.pro/wa/chats//messages?providerSessionId&cursor&limit&q&type&labelId&labelIds&labelMode&assignedUserId&assignedGroupId&assignmentStatus&assignedToMe&assignedToMyGroups&mine&myGroups&customerId&contactId&customerPhone&crmIdentityStatus&customerRepresentativeUserId&customerTeamGroupId&customerStatus' \
--header 'Authorization: Bearer <token>'{
"status": true,
"data": {
"rows": [
{
"id": "string",
"providerSessionId": "string",
"remoteJid": "string",
"messageId": "string",
"fromMe": true,
"participant": "string",
"sender": "string",
"senderJidResolved": "string",
"senderPhone": "string",
"senderName": "string",
"pushName": "string",
"chatType": "string",
"type": "string",
"text": "string",
"emoji": "string",
"reactionTarget": null,
"mentions": [
"string"
],
"quotedMessage": null,
"hasMedia": true,
"mimeType": "string",
"media": null,
"status": 0,
"receipt": null,
"update": null,
"deletedForMe": true,
"deletedForEveryone": true,
"origin": {
"source": "server_user",
"actorType": "string",
"actorId": "string",
"apiAccountId": "string",
"userId": "string",
"operationId": "string",
"ip": "string",
"userAgent": "string"
},
"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"
}
],
"sourceTimestamp": "2019-08-24T14:15:22.123Z",
"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": {}
}
}
],
"nextCursor": "string",
"limit": 0
}
}