Skip to main content
GET
Read vehicle maintenance schedules

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Query Parameters

hubId
string

Schedules of the vehicles in this hub. Required when vehicleId is not sent. Example: 65e7b0110000000000000001

vehicleId
string

Schedules of this vehicle. Required when hubId is not sent. Example: 65f9c1aa77e0b30001aa1122

startTime
string

Keeps the schedules that end at or after this time. Y-m-d H:i:s (UTC) or ISO-8601 with an offset. Example: 2026-11-01T00:00:00+07:00

endTime
string

Keeps the schedules that start at or before this time. Same formats as startTime, and not earlier than it. Example: 2026-11-30T23:59:59+07:00

isLatest
enum<string>

true or 1 returns only the schedule that ended most recently (end time before now), combined with the other filters. page, limit and sortOrder are then ignored, and total is 0 or 1. Example: true

Available options:
true,
false,
1,
0
sortOrder
enum<string>
default:asc

Order by startTime: asc (default) or desc. Example: desc

Available options:
asc,
desc
limit
integer
default:20

Schedules per page, 1 to 1000. Example: 20

Required range: 1 <= x <= 1000
page
integer
default:1

Page number, from 1. Example: 1

Required range: x >= 1

Response

Success

status
boolean

Shows if the request was successful.

data
object[]

Maintenance schedules, ordered by startTime.

total
integer

Number of schedules that match the filters.