Show one alert
Rate limit 120 requests/min (authenticated)
const url = 'https://app.ridebox.my/api/alerts/YOUR_ALERT_UUID';const options = { method: 'GET', headers: {'X-API-Version': 'v1', 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 https://app.ridebox.my/api/alerts/YOUR_ALERT_UUID \ --header 'Authorization: Bearer <token>' \ --header 'X-API-Version: v1'One alert, in the same shape as an element of the feed.
Authenticated tier: 120 requests/min per user.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The alert uuid.
Example
YOUR_ALERT_UUIDHeader Parameters
Section titled “ Header Parameters ”Selects the API version. With no version header the request is served as v1. An Accept: application/vnd.ridebox+v1+json header selects the version too; X-API-Version is read first when both are sent. An unsupported version answers 400 with supported_versions.
Example
v1Responses
Section titled “ Responses ”The alert.
object
One alert. device_id holds the device UUID.
object
The uuid of the device that raised the alert.
The kind of alert.
Fixed by alert type: tamper and geofence_exit are high, low_charging_voltage and low_resting_voltage are medium, and device_offline is low.
Context for the alert type, or null. For example, the position at which a tamper or geofence exit was detected.
Example
{ "data": { "id": "YOUR_ALERT_UUID", "device_id": "YOUR_DEVICE_UUID", "type": "tamper", "severity": "high", "raised_at": "2026-09-12T01:00:00Z", "acknowledged_at": null, "payload": { "lat": 1.4927, "lng": 103.7414 } }}Headers
Section titled “ Headers ”The API version that served this response. Always v1 on this surface.
Example
v1Requests permitted in the current window for the applicable tier.
Example
120Requests remaining in the current window.
Example
0Missing, invalid, expired or revoked token. When a token was presented, code tells an expired token from a revoked one.
The single shape used by every non-2xx response. message is always present and safe to display. errors is present only on 422. code is present on a 401 that presented a token.
object
Human-readable, safe to display to the end user.
Present only on 422. Field name to array of messages.
object
Tells an expired token, which you can replace by signing in again, from a revoked one.
Examples
No token presented
{ "message": "Unauthenticated."}Token past its 30-day expiry
{ "message": "Your session has expired. Please sign in again.", "code": "token_expired"}Token revoked server-side
{ "message": "Your session is no longer valid. Please sign in again.", "code": "token_revoked"}Headers
Section titled “ Headers ”The API version that served this response. Always v1 on this surface.
Example
v1Not found, or owned by another account. The two cases are deliberately indistinguishable.
The single shape used by every non-2xx response. message is always present and safe to display. errors is present only on 422. code is present on a 401 that presented a token.
object
Human-readable, safe to display to the end user.
Present only on 422. Field name to array of messages.
object
Tells an expired token, which you can replace by signing in again, from a revoked one.
Example
{ "message": "Not found."}Headers
Section titled “ Headers ”The API version that served this response. Always v1 on this surface.
Example
v1Rate limited. Back off and honour Retry-After.
The single shape used by every non-2xx response. message is always present and safe to display. errors is present only on 422. code is present on a 401 that presented a token.
object
Human-readable, safe to display to the end user.
Present only on 422. Field name to array of messages.
object
Tells an expired token, which you can replace by signing in again, from a revoked one.
Example
{ "message": "Too many requests. Please try again shortly."}Headers
Section titled “ Headers ”Seconds to wait before retrying.
Example
42Requests permitted in the current window for the applicable tier.
Example
120Requests remaining in the current window.
Example
0Unix timestamp at which the current window resets. Sent on 429.
Example
1789180500The API version that served this response. Always v1 on this surface.
Example
v1