Skip to content

Acknowledge an alert

Rate limit 120 requests/min (authenticated)

POST
/alerts/{alert}/acknowledge
curl --request POST \
--url https://app.ridebox.my/api/alerts/YOUR_ALERT_UUID/acknowledge \
--header 'Authorization: Bearer <token>' \
--header 'X-API-Version: v1'

Marks the alert acknowledged. Acknowledging an alert twice answers 409.

Authenticated tier: 120 requests/min per user.

alert
required
string format: uuid

The alert uuid.

Example

YOUR_ALERT_UUID
X-API-Version
string
default: v1
Allowed values: v1

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

v1

The alert, with acknowledged_at set.

Media type application/json
Alert response
object
data
required
Alert

One alert. device_id holds the device UUID.

object
id
required
string format: uuid
device_id
required

The uuid of the device that raised the alert.

string format: uuid
type
required
Alert type

The kind of alert.

string
Allowed values: tamper geofence_exit low_charging_voltage low_resting_voltage device_offline
severity
required
Alert severity

Fixed by alert type: tamper and geofence_exit are high, low_charging_voltage and low_resting_voltage are medium, and device_offline is low.

string
Allowed values: low medium high critical
raised_at
required
string format: date-time
acknowledged_at
required
string | null format: date-time
payload
required

Context for the alert type, or null. For example, the position at which a tamper or geofence exit was detected.

object | null

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
}
}
}
X-API-Version
string
Allowed value: v1

The API version that served this response. Always v1 on this surface.

Example
v1
X-RateLimit-Limit
integer

Requests permitted in the current window for the applicable tier.

Example
120
X-RateLimit-Remaining
integer

Requests remaining in the current window.

Example
0

Missing, invalid, expired or revoked token. When a token was presented, code tells an expired token from a revoked one.

Media type application/json
Error envelope

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
message
required

Human-readable, safe to display to the end user.

string
errors

Present only on 422. Field name to array of messages.

object
key
additional properties
Array<string>
code
Machine-readable error code

Tells an expired token, which you can replace by signing in again, from a revoked one.

string
Allowed values: token_expired token_revoked

Examples

No token presented

{
"message": "Unauthenticated."
}
X-API-Version
string
Allowed value: v1

The API version that served this response. Always v1 on this surface.

Example
v1

Not found, or owned by another account. The two cases are deliberately indistinguishable.

Media type application/json
Error envelope

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
message
required

Human-readable, safe to display to the end user.

string
errors

Present only on 422. Field name to array of messages.

object
key
additional properties
Array<string>
code
Machine-readable error code

Tells an expired token, which you can replace by signing in again, from a revoked one.

string
Allowed values: token_expired token_revoked

Example

{
"message": "Not found."
}
X-API-Version
string
Allowed value: v1

The API version that served this response. Always v1 on this surface.

Example
v1

The resource is not in a state that permits this action, for example an alert that is already acknowledged.

Media type application/json
Error envelope

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
message
required

Human-readable, safe to display to the end user.

string
errors

Present only on 422. Field name to array of messages.

object
key
additional properties
Array<string>
code
Machine-readable error code

Tells an expired token, which you can replace by signing in again, from a revoked one.

string
Allowed values: token_expired token_revoked

Example

{
"message": "This alert has already been acknowledged."
}
X-API-Version
string
Allowed value: v1

The API version that served this response. Always v1 on this surface.

Example
v1

Rate limited. Back off and honour Retry-After.

Media type application/json
Error envelope

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
message
required

Human-readable, safe to display to the end user.

string
errors

Present only on 422. Field name to array of messages.

object
key
additional properties
Array<string>
code
Machine-readable error code

Tells an expired token, which you can replace by signing in again, from a revoked one.

string
Allowed values: token_expired token_revoked

Example

{
"message": "Too many requests. Please try again shortly."
}
Retry-After
required
integer
>= 1

Seconds to wait before retrying.

Example
42
X-RateLimit-Limit
integer

Requests permitted in the current window for the applicable tier.

Example
120
X-RateLimit-Remaining
integer

Requests remaining in the current window.

Example
0
X-RateLimit-Reset
integer

Unix timestamp at which the current window resets. Sent on 429.

Example
1789180500
X-API-Version
string
Allowed value: v1

The API version that served this response. Always v1 on this surface.

Example
v1