Rate limits
| Tier | Limit | Applies to |
|---|---|---|
| Unauthenticated | 30 per minute, per IP address | Requests without a token |
| Authenticated | 120 per minute, per user | Most requests |
| Sensitive | 5 per minute, per user | Changing device settings, pairing a device, and changing or deleting the account |
| Commands | 5 per minute, per user, for config and reboot. 120 per minute for other commands |
POST /devices/{device}/commands |
Reading the limit
Section titled “Reading the limit”| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Requests allowed in the window |
X-RateLimit-Remaining |
Requests left in the window |
Retry-After |
On a 429, the seconds to wait |
When you get a 429, wait for the number of seconds in Retry-After, then try again.
Polling
Section titled “Polling”There are no webhooks or push events, so poll for changes and do it gently. Ask for GET /devices/{device}/state every 10 seconds at most, which is how often the RideBox app refreshes while open.