Ver un chat
POST /api/chats/get-chat
Descripción
Trae un chat tuyo con su restaurante, su contexto y su pedido o reserva.
Detalles
* Solo responde si eres miembro del chat. * Con sesión encuentra también los chats que abriste en otros celulares.
Permisos requeridos
public
Request
| Nombre | Tipo | Requerido | Reglas |
|---|---|---|---|
| chatUuid | string | Sí |
min:36
max:36
|
| deviceUuid | string | Sí |
min:36
max:36
|
Ejemplo de request
curl -X POST https://restofy.pro/api/chats/get-chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <accessToken>" \
-d '{
"chatUuid": "string",
"deviceUuid": "string"
}'
Los valores son demo: reemplázalos por datos reales del negocio.
Ejemplo de respuesta
Actualizado: 2026-10-09T02:12:12Z
HTTP 200
Request
{
"chatUuid": "7c0e43f1-c386-11f1-a755-a2f78ac020f7",
"deviceUuid": "f64dc0c8-7ea6-42ae-b58b-bdaa8dbcc75e"
}
Response
{
"success": true,
"message": "Chat",
"data": {
"chat": {
"chatUuid": "7c0e43f1-c386-11f1-a755-a2f78ac020f7",
"contextType": "counter",
"fulfillmentUuid": "c0464a40-d69f-428a-9121-181158350ebc",
"linkToken": "***",
"placeName": null,
"orderUuid": "756b07c6-074d-4056-8cbb-9359aee00412",
"reservationUuid": null,
"isInProgress": true,
"slug": "mi-negocio",
"restaurantName": "Mi Negocio",
"logoUrl": null,
"timezone": "America/Bogota",
"isRestaurantActive": true,
"createdAt": "2026-10-09T02:09:39.000Z"
}
}
}