---
title: "CreateEnrichmentVariable creates an enrichment variable that can be used in the enrichment service."
method: POST
path: "/v1.1/enrichment_variable"
tags: ["ControlService"]
---

# CreateEnrichmentVariable creates an enrichment variable that can be used in the enrichment service.

`POST /v1.1/enrichment_variable`

These variables are used to keep them secret in the cluster and not expose them in the browser.
 They will be used in the ingestor enrichment service to enrich events before they are sent to the integrations.

## Request body

- ProtobufControlpbV1CreateEnrichmentVariableRequest
  - `enrichmentVariable` union
    - object, nullable
    - ProtobufControlpbV1EnrichmentVariable
      - `author` string
      - `createdAt` string, date-time, nullable
      - `description` string
      - `name` string
      - `updatedBy` string
      - `value` union
        - object, nullable
        - ProtobufControlpbV1EnrichmentVariableValue
          - `boolValue` boolean
          - `floatValue` number, double
          - `intValue` string
          - `stringValue` string

## Response `200`

OK

- ProtobufControlpbV1CreateEnrichmentVariableResponse
  - `enrichmentVariable` union
    - object, nullable
    - ProtobufControlpbV1EnrichmentVariable
      - `author` string
      - `createdAt` string, date-time, nullable
      - `description` string
      - `name` string
      - `updatedBy` string
      - `value` union
        - object, nullable
        - ProtobufControlpbV1EnrichmentVariableValue
          - `boolValue` boolean
          - `floatValue` number, double
          - `intValue` string
          - `stringValue` string

## 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)
