Skip to main content
GET
/
credits
/
usage
Consultar consumo
curl --request GET \
  --url https://api.lina.health/v1/credits/usage \
  --header 'Authorization: Bearer <token>'
{
  "startDate": "2026-05-01T00:00:00Z",
  "endDate": "2026-05-14T23:59:59Z",
  "totalCredits": 1550,
  "breakdown": [
    { "action": "call", "credits": 890, "count": 15 },
    { "action": "conversation", "credits": 340, "count": 22 },
    { "action": "schedule.whatsapp", "credits": 150, "count": 50 },
    { "action": "schedule.sms", "credits": 100, "count": 50 },
    { "action": "schedule.email", "credits": 70, "count": 70 },
    { "action": "schedule.app", "credits": 0, "count": 45 }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.linahealthcareplatform.com/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

startDate
string
required
Fecha inicio en formato ISO 8601 (ej. 2026-05-01T00:00:00Z).
endDate
string
required
Fecha fin en formato ISO 8601.
groupBy
string
default:"day"
Agrupar resultados por: day o action.
{
  "startDate": "2026-05-01T00:00:00Z",
  "endDate": "2026-05-14T23:59:59Z",
  "totalCredits": 1550,
  "breakdown": [
    { "action": "call", "credits": 890, "count": 15 },
    { "action": "conversation", "credits": 340, "count": 22 },
    { "action": "schedule.whatsapp", "credits": 150, "count": 50 },
    { "action": "schedule.sms", "credits": 100, "count": 50 },
    { "action": "schedule.email", "credits": 70, "count": 70 },
    { "action": "schedule.app", "credits": 0, "count": 45 }
  ]
}
totalCredits
integer
Total de créditos consumidos en el periodo consultado.
breakdown
array
Desglose del consumo según la agrupación seleccionada.
breakdown[].action
string
Tipo de acción (cuando groupBy=action): call, conversation, schedule.email, schedule.sms, schedule.whatsapp, schedule.app.
breakdown[].count
integer
Número de operaciones realizadas.