List gear maintenance tasks
const url = 'http://localhost:8080/api/v1/gear/maintenance-tasks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/gear/maintenance-tasks \ --header 'Authorization: Bearer <token>'Lists the maintenance tasks of every gear component. Always returned as a single page.
GET /api/v1/gear/maintenance-tasks?filters[gearId]=gear-b12659861
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”object
Only tasks of components that are currently fitted on this gear
Responses
Section titled “Responses”All maintenance tasks, most urgent first.
object
object
The gear component the task belongs to.
object
The gear the component is fitted on today.
How often the task has to be performed.
object
km, mi, hours and daysUsed count the use of the component; days counts calendar days.
Null for a task that was never performed.
The use since the task was last performed, in the unit of the interval.
What is left of the interval.
How far the task is into its interval, capped at 100.
True once the task is at 98% of its interval or more.
True once the interval is exceeded.
object
Example
{ "maintenanceTasks": [ { "id": "maintenanceTask-chain-lubed", "label": "Lube", "component": { "id": "gearComponent-chain", "label": "Chain" }, "gearIds": [ "gear-b12659861" ], "interval": { "value": 500, "unit": "km" }, "lastPerformedOn": "2026-09-01", "elapsed": 380.4, "remaining": 119.6, "percentage": 76 } ]}Every error uses this shape.
object
A stable, machine readable code.
Examples
{ "error": "bad_request", "message": "\"filters[gearId]\" is not a valid gear id."}The Authorization header was missing, malformed, or did not match the configured key.
Every error uses this shape.
object
A stable, machine readable code.
Examples
{ "error": "invalid_token", "message": "A valid API token is required. Send it in the Authorization header as a Bearer token."}