---
title: "CreateMetaTaggerFile stores a gzipped MetaTagger file inside of the cluster."
method: POST
path: "/v1.1/metatagger_file"
tags: ["ControlService"]
---

# CreateMetaTaggerFile stores a gzipped MetaTagger file inside of the cluster.

`POST /v1.1/metatagger_file`

## Request

- Base URL: `https://www.metarouter.io/contact`
- URL: `https://www.metarouter.io/contact/v1.1/metatagger_file`
- Auth: HTTP bearer

This file is then served by the ingestor e.g. ingest.mr-in.com/v1/metatagger/<container-id>/<env>/tagging.js

## Request body

- ProtobufControlpbV1CreateMetaTaggerFileRequest
  - `containerId` string: The Ion container that publishes the file, a lowercase UUID.
  - `environment` string: The container's environment key, such as prod.
  - `file` union
    - object, nullable
    - ProtobufControlpbV1MetaTaggerFile
      - `author` string
      - `createdAt` string, date-time, nullable
      - `gzippedFileContent` string, byte: Maximum size of the file is 500 KB
  - `path` string: tagging.js, iframe-forwarder.js or scripts/<id>.js.

## Response `200`

OK

- ProtobufControlpbV1CreateMetaTaggerFileResponse
  - `file` union
    - object, nullable
    - ProtobufControlpbV1MetaTaggerFile
      - `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.

## Changes

- **2026-11-03** `aa3afac506c0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metarouter/apis/control-api/changes/v1.1/metatagger_file/post.md)

---

[API](https://skmtc.dev/metarouter/apis/control-api.md) - [All operations](https://skmtc.dev/metarouter/apis/control-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metarouter/apis/control-api/revisions/aa3afac506c0?raw)
