Skip to main content
GET
Obtener reportes programados

Authorizations

Authorization
string
header
required

Token de sesión Better Auth o API token (atk_...) en el header Authorization: Bearer <token>. Los JWT legacy ya no son válidos.

Response

Lista de reportes programados

_id
string

ID del reporte programado

name
string

Nombre del reporte

clientId
object
createdBy
object
reportType
enum<string>
Available options:
trips_history,
stops_history,
speed_excess
assetIds
object[]
reportConfig
object
includeSummary
boolean
frequency
enum<string>

daily: solo hora. weekly: requiere weekDays. monthly: requiere monthDays.

Available options:
daily,
weekly,
monthly
weekDays
integer[]

Solo aplica si frequency es weekly (0=domingo, 6=sábado)

Required range: 0 <= x <= 6
monthDays
integer[]

Solo aplica si frequency es monthly

Required range: 1 <= x <= 31
executionTime
string
Pattern: ^([01]\d|2[0-3]):[0-5]\d$
Example:

"08:30"

periodValue
integer
periodUnit
enum<string>
Available options:
hours,
days
controlDays
enum<string>[]

Días de la semana cuyos datos se incluyen en el reporte

Available options:
monday,
tuesday,
wednesday,
thursday,
friday,
saturday,
sunday
format
enum<string>[]

Formatos de archivo. Si se envían múltiples, se genera un ZIP.

Available options:
pdf,
xlsx
recipients
string<email>[]
isActive
boolean
nextRunAt
string<date-time>
lastRunAt
string<date-time>
createdAt
string<date-time>
updatedAt
string<date-time>