Introduction

API reference

The public HTTP API that Roblox game servers and shared-dashboard viewers call, with its base URLs, versioning, content types and rate limits.

Bloxlytics has a small public HTTP API. Your game servers use it to send analytics events, fetch remote configuration and run the optional Cmdr bridge. Anyone can use a few read-only endpoints: SDK downloads, shared dashboard links and a health check.

The Luau SDK calls every game-server endpoint for you, so most developers never use this API directly. Read this reference if you're writing your own client, debugging what the SDK sends, or want to know exactly what the API accepts.

#Base URLs

Base URL Serves Who calls it
https://api.bloxlytics.app /v1/*, /api/sdk/*, /api/health Roblox game servers, and anyone downloading the SDK
https://dash.bloxlytics.app /api/public/dashboards/* (and the dashboard's own internal API) Browsers opening a shared dashboard link

On api.bloxlytics.app, any path other than those listed returns 404. Dashboard endpoints are never reachable on that host.

Roblox game servers can only make HTTPS requests, and only when Allow HTTP Requests is turned on in Game Settings → Security. Every URL in this reference uses HTTPS.

#Endpoints

#Game servers

These need the project header and a project key. See Authentication.

Method and path Key What it does
POST /v1/ingest Write key (bxw_) Send a batch of up to 500 events
GET /v1/config Write key (bxw_) Fetch remote configuration and running experiments
POST /v1/bridge/hello Bridge key (bxb_) Register a server and its Cmdr commands
POST /v1/bridge/poll Bridge key (bxb_) Report players and long-poll for commands
POST /v1/bridge/result Bridge key (bxb_) Report command results
POST /v1/bridge/bye Bridge key (bxb_) Tell Bloxlytics the server is shutting down

The event format page describes each event inside an ingest batch, including the reserved $ events and the properties each one requires.

#Public

These need no key.

Method and path Host What it does
GET /api/sdk/:file api.bloxlytics.app Download Analytics.luau or CmdrBridge.luau
GET /api/public/dashboards/:token dash.bloxlytics.app Read a shared dashboard's layout
GET /api/public/dashboards/:token/widgets/:widgetId dash.bloxlytics.app Read one widget's data on a shared dashboard
GET /api/health Both Check that the API is up

#What isn't public

The web dashboard at dash.bloxlytics.app talks to its own endpoints under /api/* (workspaces, projects, analytics queries, DataStores, moderation, commands and so on). Those endpoints are internal:

  • They authenticate with the signed-in user's session cookie, which you only get by signing in with Roblox in the browser.
  • They only accept browser requests from the dashboard's own origin.
  • They can change without notice, so they aren't documented and aren't supported for scripts.

There is no API key for reading analytics, and the write key can never read anything. To share numbers outside your team, use a shared dashboard link.

#Versioning

Game-server endpoints are versioned in two places:

  • The path. Every game-server endpoint starts with /v1.
  • The protocol field. Every POST /v1/* body carries "protocol": 1, the only version there is. The API rejects any other value with 400, so a mismatched client fails loudly instead of being misread.

The public /api/* endpoints aren't versioned. Write clients that ignore response fields they don't recognise.

#Requests and responses

  • Request bodies are JSON. Send Content-Type: application/json. Other content types are refused with 415, except text/plain, which is read as a string and then fails validation with 400.
  • Response bodies are JSON (application/json; charset=utf-8), except GET /api/sdk/:file, which returns Luau source as text/plain.
  • Body size. POST /v1/ingest accepts bodies up to 1 MB (1,048,576 bytes). Every other endpoint accepts up to 2 MB (2,097,152 bytes). Larger bodies get 413.
  • Timestamps in request bodies and command expiries are Unix time in seconds. Response timestamps such as updatedAt are ISO 8601 strings in UTC.
  • Unknown fields in request objects are ignored and dropped. The exception is a custom event's props, a free-form map where every valid key is kept. Reserved $ events keep only the properties they define.

Errors always use one shape, { "error": { "code": "…", "message": "…" } }. See Errors for every code.

#Response headers

Every response carries these security headers:

Header Value
X-Content-Type-Options nosniff
Referrer-Policy strict-origin-when-cross-origin
X-Frame-Options DENY
Strict-Transport-Security max-age=31536000; includeSubDomains

#Browsers and CORS

Cross-origin browser requests are only allowed from https://dash.bloxlytics.app. A web page on any other origin can't read API responses, including public ones. Game servers and command-line tools aren't affected, because CORS only applies to browsers.

#Rate limits

Game-server endpoints are limited per project (per Universe ID), so busy experiences with many servers share one budget. The windows are fixed one-minute windows that start on the minute.

Endpoint Limit per project
POST /v1/ingest 3,000 requests a minute
GET /v1/config 2,000 requests a minute
POST /v1/bridge/hello 600 requests a minute
POST /v1/bridge/poll 20,000 requests a minute
POST /v1/bridge/result 6,000 requests a minute
POST /v1/bridge/bye No limit

The per-project limit is checked after the key, so a request with a bad key gets 401, not 429. Over the limit, the API answers 429 with code rate_limited.

Public endpoints are limited per client IP address:

Endpoint Limit per IP address
GET /api/public/dashboards/:token 60 requests a minute
GET /api/public/dashboards/:token/widgets/:widgetId 300 requests a minute
GET /api/sdk/:file 600 requests a minute
GET /api/health No limit

Per-address limits add X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds) to responses. When you go over, the 429 response also carries Retry-After in seconds.

At the default settings (a flush every 10 seconds), one server sends about 6 ingest batches a minute, so 3,000 a minute is roughly 500 servers flushing at once. The SDK retries 429 with backoff, and events stay queued in the server meanwhile. See Errors.

#Where next