Skip to main content

Rate Limiting

The Cartrack Fleet API applies rate limiting to all incoming API requests to protect network resources, maintain system performance, and ensure a consistent experience for all users.

Default Rate Limit​

The API has a default rate limit of 1,000 requests per minute. This limit applies across most API endpoints unless otherwise specified. Any requests exceeding this limit will receive an HTTP 429 Too Many Requests response.

API Endpoint Specific Rate Limit​

Some API endpoints have stricter rate limits to ensure fairness and prevent abuse. Below are the specific limits for these endpoints:

EndpointRate LimitDescription
POST /fuel/consumed10 requests per minuteRetrieve fuel consumed sensor data for multiple vehicles.
POST /fuel/level10 requests per minuteRetrieve fuel used estimate for multiple vehicles.
POST /vehicles/ev-consumption10 requests per minuteRetrieve battery consumption for multiple electric vehicles.
POST /vehicles/range10 requests per minuteRetrieve EV range reported events for multiple electric vehicles.
POST /vehicles/soc10 requests per minuteRetrieve state of charge (SoC) events for multiple electric vehicles.
GET /vehicles/status60 requests per minuteRetrieve the latest snapshot for the entire fleet.
GET /vehicles/events60 requests per minuteRetrieve events for all vehicles in the fleet.
GET /vehicles/{registration}/events200 requests per minuteRetrieve events for a specific vehicle.
GET /vehicles/{registration}/events/idling200 requests per minuteRetrieve idling events for a specific vehicle.
GET /vehicles/vext10 requests per minuteRetrieve vehicles VEXT data regardless of ignition status.
GET /vision/status6 requests per minuteRetrieve the current online status of Vision cameras across the fleet.
POST /geofences/bulk10 requests per minuteCreate up to 100 geofences in a single request.
DELETE /geofences10 requests per minuteDelete up to 1,000 geofences in a single request.
POST /drivers/tags/assignments10 requests per minuteAssign up to 100 driver tags in a single request.
DELETE /drivers/tags/assignments10 requests per minuteEnd up to 100 driver tag assignments in a single request.

For endpoint-specific rate limits, exceeding the limit will also result in an HTTP 429 Too Many Requests response. The limit on an endpoint with a {registration} in its path applies to all of the account's vehicles together, not to each vehicle separately.

Vehicle Command Cooldown​

In addition to the request rate limits above, the vehicle command endpoints apply a cooldown to prevent duplicate commands:

Once a command is accepted, the same command cannot be sent again to the same vehicle while the previous one is still being processed, for up to 30 seconds. During this window the API responds with an HTTP 409 Conflict and a Retry-After header indicating the number of seconds to wait before retrying.

The cooldown applies per vehicle and per command: sending a different command to the same vehicle, or the same command to a different vehicle, is not affected.

Example Response

HTTP/1.1 409 Conflict
Content-Type: application/json
Retry-After: 30

{
"data": null,
"error": {
"code": 409,
"message": "Cannot send lock/lock simultaneously. Try again later."
}
}

Retry Behavior​

If you receive a HTTP 429 Too Many Requests response, you must respect the headers included in the response. These headers provide information about when you can retry:

  • Retry-After: The standard HTTP header. The number of seconds until the next earliest retry, the same value as X-RateLimit-Retry-After-Seconds when that wait is non-negative. If the computed wait is negative, Retry-After is floored at 0.
  • X-RateLimit-Retry-At: The timestamp of the next earliest retry.
  • X-RateLimit-Retry-After-Seconds: The number of seconds until the next earliest retry.

Example Response

HTTP/1.1 429 Too Many Requests
Content-Type: application/json
X-RateLimit-Retry-At: 1737592000
X-RateLimit-Retry-After-Seconds: 15
Retry-After: 15

{
"error": {
"code": 429,
"message": "Too Many Requests. Please refer to https://developer.cartrack.com/docs/fleet-api-general/rate-limiting for more information."
}
}

How to Handle 429 Too Many Requests

  • Wait and Retry: Respect the Retry-After, X-RateLimit-Retry-At and X-RateLimit-Retry-After-Seconds headers to wait for the recommended time before retrying.
  • Exponential Backoff: Implement exponential backoff with jitter to avoid repeated rate-limit violations.

Notes: Repeated violations of rate limits may result in temporary or permanent access restrictions.

Increasing the Limit​

If your application requires a higher rate limit, you may submit a request for a limit increase. Requests will be evaluated on a case-by-case basis to ensure compatibility with our infrastructure. Approved limits will be customized and communicated accordingly.