curl --request GET \
--url https://api.example.com/api/dashboard/citas-ultimos-7-dias{
"data": [
{
"fecha": "<string>",
"total": 123
}
],
"401 Unauthorized": {},
"403 Forbidden": {},
"500 Internal Server Error": {}
}Retrieve appointment counts for each of the last 7 days
curl --request GET \
--url https://api.example.com/api/dashboard/citas-ultimos-7-dias{
"data": [
{
"fecha": "<string>",
"total": 123
}
],
"401 Unauthorized": {},
"403 Forbidden": {},
"500 Internal Server Error": {}
}admin or asistente can access this endpoint.Authorization: Bearer <token>
{
"message": "Token requerido"
}
{
"message": "Acceso denegado"
}
{
"message": "Error citas últimos días"
}
curl -X GET https://api.example.com/api/dashboard/citas-ultimos-7-dias \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"
[
{
"fecha": "2026-02-27",
"total": 5
},
{
"fecha": "2026-02-28",
"total": 8
},
{
"fecha": "2026-03-01",
"total": 12
},
{
"fecha": "2026-03-02",
"total": 7
},
{
"fecha": "2026-03-03",
"total": 9
},
{
"fecha": "2026-03-04",
"total": 11
},
{
"fecha": "2026-03-05",
"total": 6
}
]
created_at timestamp of appointments