POST /history/conversations
Realizar una consulta a todos los registros de conversaciones.
Request:
- Headers
- PageGearToken:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjX2tleSI6ImxjYWRmMmJjNjExNzUyZTlkNjc3N2UxN2I4Y2RlNmRhNTgiLCJpZF9wZ2UiOjQyMSwiaWRfY3VlbnRhIjoxLCJub21icmUiOiJEZW1vIENoYXQiLCJpYXQiOjE2MDIwOTI3NjksImV4cCI6MTYwMjEyMTU2OX0.0od933kf0dc2k30d30fck3
- Url Params: No specific query parameters needed.
- Body
{ "initFrom": 0, //*Opcional "limit": "2", //*Opcional }
Response:
- Status: 200
- Body:
{ "status": 1, "data": [ { "id": 2066, "idc": 1, "id_canal": 10, "id_grupo": 4, "id_usuario": 3, "id_contacto": 62, "id_conversacion_fb": "KHNLZ575661420PSGRC", "fecha_add": "2020-10-05 19:45:03", "fecha_ini": null, "fecha_edt": "2020-10-05 19:45:03", "fecha_end": "2020-10-05 21:00:47", "offline": 1, "nps": null, "ssa": null, "pais": "CO", "browser": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36", "ips": "190.159.82.102, 64.252.186.156", "trace_id": "Root=1-5f7bbe0e-4eb5761158dbc66d505b4490", "crm_id_negociacion": 0, "crm_id_actividad": 0, "crm_id_contacto": 0, "grupo": "Servicio al Cliente", "canalnombre": "Chat Exus", "canaltipo": "Sitio Web", "usuario": "Pancho", "contacto": "Piero6" }, { "id": 2065, "idc": 1, "id_canal": 10, "id_grupo": 4, "id_usuario": 3, "id_contacto": 62, "id_conversacion_fb": "JKRJM88151577403KYOUE", "fecha_add": "2020-10-05 19:40:20", "fecha_ini": null, "fecha_edt": "2020-10-05 19:40:20", "fecha_end": "2020-10-05 19:43:17", "offline": 1, "nps": null, "ssa": null, "pais": "CO", "browser": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36", "ips": "190.159.82.102, 64.252.186.94", "trace_id": "Root=1-5f7bbcf4-36a21b7173e8041631db039d", "crm_id_negociacion": 0, "crm_id_actividad": 0, "crm_id_contacto": 0, "grupo": "Servicio al Cliente", "canalnombre": "Chat Exus", "canaltipo": "Sitio Web", "usuario": "Pancho", "contacto": "Piero6" }], "status_message": "Se encontraron estas conversaciones", "PageGearToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjX2tleSI6ImxjYWRmMmJjNjExNzU yZTlkNjc3N2UxN2I4Y2RlNmRhNTgiLCJpZF9wZ2UiOjQyMSwiaWRfY3VlbnRhIjoxLCJu b21icmUiOiJEZW1vIENoYXQiLCJpYXQiOjE2MDIxMDE1MzQsImV4cCI6MTYwMjEzMDMzN H0.0od933kf0dc2k30d30fck3" }
Realizar una consulta puntual a un registro usando el ID de la conversación.
Request:
- Headers
- PageGearToken:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjX2tleSI6ImxjYWRmMmJjNjExNzUyZTlkNjc3N2UxN2I4Y2RlNmRhNTgiLCJpZF9wZ2UiOjQyMSwiaWRfY3VlbnRhIjoxLCJub21icmUiOiJEZW1vIENoYXQiLCJpYXQiOjE2MDIwOTI3NjksImV4cCI6MTYwMjEyMTU2OX0.0od933kf0dc2k30d30fck3
- Url Params: No specific query parameters needed.
- Body
{ "id": "30" }
Response:
- Status: 200
- Body:
{ "status": 1, "data": { "id": 30, "idc": 1, "id_canal": 10, "id_grupo": 5, "id_usuario": 2, "id_contacto": 66, "id_conversacion_fb": null, "fecha_add": "2020-08-19 09:41:26", "fecha_ini": null, "fecha_edt": "2020-08-19 09:41:26", "fecha_end": "2020-08-19 09:42:21", "offline": 1, "nps": null, "ssa": null, "pais": null, "browser": null, "ips": null, "trace_id": null, "crm_id_negociacion": 0, "crm_id_actividad": 0, "crm_id_contacto": 0, "grupo": "Ventas", "canalnombre": "Chat Exus", "canaltipo": "Sitio Web", "usuario": "Herduin Rivera Alzate", "contacto": "Nuevo Visitante" }, "status_message": "Se encontró esta conversación", "PageGearToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjX2tleSI6ImxjYWRmMmJjNjExNzUyZTlkNjc3N2UxN2I4Y2RlNmRhNTgiLCJpZF9wZ2UiOjQyMSwiaWRfY3VlbnRhIjoxLCJub21icmUiOiJEZW1vIENoYXQiLCJpYXQiOjE2MDIwOTI3NzIsImV4cCI6MTYwMjEyMTU3Mn0.0od933kf0dc2k30d30fck3" }