OBTEN DATOS DE TUS CONVERSACIONES
En Mercately, cuando ingresa una conversación, puedes obtener los datos de la misma.
Puedes enviar en la estructura del GET los siguientes parámetros:
page
results_per_page
unassigned
Obtener conversación de Messenger
Response 200
Json
{
"results": 3,
"total_pages": 1,
"messenger_conversations": [
{
"id": null,
"customer_id": 1360,
"message_count": 1,
"last_interaction": "2022-09-23T00:34:11.056Z",
"first_name": "Julia",
"last_name": "Lozano",
"email": "[email protected]",
"agent_id": 957
},
{
"id": null,
"customer_id": 1361,
"message_count": 1,
"last_interaction": "2022-09-22T19:34:10.966Z",
"first_name": "Luis Miguel",
"last_name": "Rivera",
"email": "[email protected]",
"agent_id": null
},
{
"id": null,
"customer_id": 1359,
"message_count": 1,
"last_interaction": "2022-09-22T15:34:10.743Z",
"first_name": "Cristina",
"last_name": "Sierra",
"email": "[email protected]",
"agent_id": 957
}
]
}
Obtener conversaciones no asignadas de Messenger
Json
Api-Key: Your API KEY
Response 200
Json
{
"results": 1,
"total_pages": 1,
"messenger_conversations": [
{
"id": null,
"customer_id": 1364,
"message_count": 1,
"last_interaction": "2022-09-22T19:34:11.411Z",
"first_name": "Alejandro",
"last_name": "Zepeda",
"email": "[email protected]",
"agent_id": null
}
]
}