Skip to main content
Every Radar REST API request uses the same base URL, the same Authorization header, and the same response envelope. With these conventions, you can authenticate a request, tell a test request from a live one, read any error, page through a list, and retry safely.

Base URL and request format

All endpoints are served over HTTPS from this base URL:
  • GET and DELETE requests take parameters in the path and query string.
  • POST, PUT, and PATCH requests take body parameters as application/json or application/x-www-form-urlencoded. Send JSON when a parameter is an object or an array.
  • Request bodies are limited to 500 KB.
  • All responses, including errors, are JSON.
  • Datetimes are ISO 8601 strings, for example 2026-10-21T12:00:00Z.
  • Coordinates in GeoJSON objects and in coordinates body parameters are in [longitude, latitude] order. Query parameters that take a single point, such as near on Search geofences, use latitude,longitude.

Authentication

All requests must be authenticated. Send your API key in the Authorization header, with no prefix:
Find your API keys on the Settings page of the Radar dashboard. To set up projects, keys, and team access, see Set up organizations, projects, accounts, and authentication.

Key types

Each project has four keys. The key type decides where you can use the key. The key environment decides which data the request reads and writes. Each operation in this reference lists the key type it needs:
  • Publishable key: The operation is safe to call from a client.
  • Secret key: The operation reads or changes your project’s data. Call it only from your backend.
Use publishable keys in client code. Never put a secret key in an app or web page.

Test and live environments

Test and live data are separate. A user, geofence, trip, or beacon created with a test key isn’t visible to a live key, and a live object isn’t visible to a test key. Objects returned by the API include a live boolean: true for live data and false for test data. Use test keys while you build and in non-production environments. Switch to live keys only in production.

Response format

Every response has a meta object with a numeric code that matches the HTTP status code. Successful responses add one or more resource fields next to meta, as in this response:

Errors

The API uses standard HTTP response codes. An error response has the same meta object, with a message that describes the problem and, for validation errors, a param that names the invalid parameter, as in this response:

Status codes

Some batch operations return HTTP 200 with a per-item meta.code. Check each item. See Block users and devices for an example.

Request IDs

Every API response includes an X-Radar-Request-ID header with a unique identifier for the request, in this form:
Log this value with your own request logs. If you contact Radar support about a specific API call, include the request ID so the exact request can be found.

Rate limits

Rate limits are applied per second. Each operation in this reference lists its default limit. Most data management operations default to 10 requests per second. Track is limited to 1 request per second per device. To increase a limit, contact your Radar account team. When you exceed a limit, the API returns HTTP 429:
A 429 response can also include a type string in meta that identifies which limit applied. Treat it as diagnostic information and don’t branch on its value.

Retries

  • Retry 429, 500, and 503 responses with exponential backoff and jitter. Start with a delay of at least 1 second for per-second limits.
  • Don’t retry 400, 401, 402, 403, or 404 responses without changing the request.
  • PUT upserts that address an object by tag and externalId, and DELETE requests, are safe to repeat. Before you retry a POST that creates an object, check whether the first attempt succeeded.
  • To load many objects, send requests in sequence or with a small fixed concurrency instead of in a burst.

Pagination

List operations return the newest objects first and accept a limit query parameter. Each list operation documents its own default and maximum limit. List responses include hasMore in meta. When hasMore is true, request the next page with a datetime cursor: pass the timestamp of the last object you received as the updatedBefore or createdBefore parameter documented for that operation.
Radar returns this response:
Stop when hasMore is false.

Metadata

Users, geofences, trips, and beacons accept a metadata dictionary of custom key-value pairs. Send it as a JSON object, or as a JSON string in a form-encoded request. For users and geofences, the API enforces these rules by default:
  • Up to 16 keys.
  • Keys are 1 to 256 characters and can contain letters, numbers, spaces, and the characters _, -, :, and #.
  • Values are strings, booleans, or numbers. String values are up to 256 characters.
Don’t store names, email addresses, or other personally identifiable information in metadata or in userId.

See also

For the list of resources and operations, see the REST API overview.