Skip to content

Frame series for a ride session

Rate limit 120 requests/min (authenticated)

GET
/ride-sessions/{ride_session}/frames
curl --request GET \
--url 'https://app.ridebox.my/api/ride-sessions/YOUR_RIDE_SESSION_UUID/frames?resolution=auto' \
--header 'Authorization: Bearer <token>' \
--header 'X-API-Version: v1'

The frame series for a ride, oldest first. It is not paginated: the resolution parameter bounds the payload instead.

Authenticated tier: 120 requests/min per user.

ride_session
required
string format: uuid

The ride session uuid.

Example

YOUR_RIDE_SESSION_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
resolution
Any of:
string
Allowed values: auto full

Downsampling strategy.

  • auto (default) — downsample to at most 1,200 points by every-nth selection, always preserving the first frame, the last frame, and any frame where state changes.
  • full — every frame, no downsampling.
  • an integer — explicit every-nth selection.

Examples

Default, capped at 1,200 points

auto

Frame series, oldest first. Unpaginated.

Media type application/json
object
data
required
Array<object>
Telemetry frame

One telemetry sample. A frame is identified by its device and recorded_at.

object
recorded_at
required
string format: date-time
state
required
Device state

The current state of the device.

string
Allowed values: parked riding alert
lat
required
number | null format: double
lng
required
number | null format: double
speed_kmh
required
number | null format: float
heading_deg
required
integer | null
<= 359
lean_deg
required

Positive is a right lean, negative a left lean.

number | null format: float
volts
required
number | null format: float
amps
required
number | null format: float

Example

{
"data": [
{
"recorded_at": "2026-09-12T02:14:00Z",
"state": "riding",
"lat": 1.4927,
"lng": 103.7414,
"speed_kmh": 62,
"heading_deg": 84,
"lean_deg": 12.5,
"volts": 13.4,
"amps": 1.1
}
]
}
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

Validation failed. errors is keyed by field name.

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": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
}
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