---
title: "GetAnalyticsJSFile retrieves a gzipped analytics.js file from the cluster based on the pipeline_id."
method: GET
path: "/v1.1/analytics_js_file"
tags: ["ControlService"]
---

# GetAnalyticsJSFile retrieves a gzipped analytics.js file from the cluster based on the pipeline_id.

`GET /v1.1/analytics_js_file`

The ingestor will be calling this endpoint to serve the file.

## Query parameters

- `pipelineId` string

## Response `200`

OK

- ProtobufControlpbV1GetAnalyticsJSFileResponse
  - `file` union
    - object, nullable
    - ProtobufControlpbV1AnalyticsJSFile
      - `author` string
      - `createdAt` string, date-time, nullable
      - `gzippedFileContent` string, byte — Maximum size of the file is 500 KB

## Other responses

- `4XX` — Something is wrong with your request such as missing or invalid data. Correct your request and try again.
- `5XX` — Internal server error. Try again later or reach out to MetaRouter support.

---

[API](https://skmtc.net/metarouter/apis/control-api.md) · [All operations](https://skmtc.net/metarouter/apis/control-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metarouter/control-api/versions/5afc05bfaaa2/schema)
