Developers Hub Sdn Bhd
Overview
Read your devices, rides, telemetry and alerts, and send device commands.
RideBox Integration API v1
Section titled “ RideBox Integration API v1 ”The RideBox integration API lets you read your devices, rides, telemetry and alerts, and send commands to your devices.
Replace placeholders such as YOUR_DEVICE_UUID and YOUR_API_TOKEN with your own values.
Authentication
Send a bearer token on every request except POST /auth/login: Authorization: Bearer YOUR_API_TOKEN. Tokens expire after 30 days. expires_at is returned when a token is issued, so refresh before then. A 401 for a presented token carries a code of token_expired or token_revoked.
Identifiers and ownership
Every identifier is a UUID. A resource belonging to another account answers 404, never 403, so its existence is not disclosed.
Errors
Every non-2xx response uses one shape: a required, human-readable message, an errors map on 422, and a code on a 401 that presented a token. The 400 for an unsupported API version also carries error and supported_versions. Request bodies reject unknown fields with 422.
Pagination
Collections use a data / links / meta envelope. per_page defaults to 15, and a value above 100 is clamped to 100 rather than rejected.
Versioning
Paths carry no version. Choose one with a request header: X-API-Version: v1 or Accept: application/vnd.ridebox+v1+json. A request with no version header is served as v1. An unsupported version answers 400 with supported_versions.
Responses carry X-API-Version: v1, on errors as well as successes, except the GPX download, a 400 for an unsupported version and a 404 for a path that matches no route.
Within a version, changes are additive. Breaking changes ship under a new version.
Rate limits
| Tier | Applies to | Limit |
|---|---|---|
| Public | POST /auth/login |
30 requests/min per IP |
| Authenticated | Every other endpoint, unless listed below | 120 requests/min per user |
| Sensitive | PATCH /devices/{device}/settings, and POST /devices/{device}/commands with command of config or reboot |
5 requests/min per user |
Throttled responses carry X-RateLimit-Limit and X-RateLimit-Remaining. A 429 adds Retry-After (seconds) and X-RateLimit-Reset. Back off and honour Retry-After.
Authentication
Section titled “ Authentication ”bearerAuth
Section titled “ bearerAuth ”A bearer token issued by POST /auth/login. Tokens expire 30 days after issue.
Security scheme type: http