# Download the SDK modules

> Download the current Analytics.luau and CmdrBridge.luau source files, publicly and without a key.

Returns the source of one of the Luau SDK modules as plain text. No key is needed: the modules contain no secrets, because your game passes its project keys to them at runtime.

The download buttons on a project's **SDK** page use this endpoint. Installing the files is covered in [Install the SDK](https://docs.bloxlytics.app/sdk/installation).

## Path parameters

- `file` (string, path, required): The file to download. Exactly one of these names (case-sensitive):  | `file` | What it is | | --- | --- | | `Analytics.luau` | The analytics SDK. Put it in `ServerScriptService` as a `ModuleScript` named `Analytics`. | | `CmdrBridge.luau` | The optional Cmdr bridge for remote commands and macros. Put it inside or next to `Analytics`. |  Any other name returns `404`.

## Response

`200 OK` with the module's Luau source as the body.

| Header | Value |
| --- | --- |
| `Content-Type` | `text/plain; charset=utf-8` |
| `Content-Disposition` | `attachment; filename="Analytics.luau"` (or `CmdrBridge.luau`), so browsers save the file instead of showing it |

The version is near the top of each file (`local VERSION = "1.0.0"`) and is available at runtime as `Analytics.Version`. The analytics SDK reports it in every ingest batch, where it's shown as **SDK version** in the project's SDK debugger.

## Caching

The API doesn't set a `Cache-Control` header, and each request returns the files of the release that's live at that moment. There's no versioned URL for an older release, so if you want to pin a version, keep a copy of the file in your place or your repository, and update it deliberately.

Downloads are limited to 600 requests a minute per IP address. Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`.

**Request example**

```bash cURL
curl -O https://api.bloxlytics.app/api/sdk/Analytics.luau
curl -O https://api.bloxlytics.app/api/sdk/CmdrBridge.luau
```

**Response example**

```luau 200
--!strict
--[[
	Bloxlytics Analytics SDK (server-only)

	Install as a ModuleScript named "Analytics" in ServerScriptService (put
	CmdrBridge inside it, or next to it, to enable remote commands):
	…
]]
```

```json 404
{ "error": { "code": "not_found", "message": "Unknown SDK file." } }
```
