---
title: "Creates MeshOpenTelemetryBackend entity"
method: POST
path: "/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshopentelemetrybackends"
tags: ["MeshOpenTelemetryBackend"]
---

# Creates MeshOpenTelemetryBackend entity

`POST /v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshopentelemetrybackends`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshopentelemetrybackends`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Creates a resource using the name in the body. An existing resource is never modified. Requires Kuma 3.0 or later.

## Path parameters

- `cpId` string, uuid, required
- `mesh` string, required

## Request body

- MeshOpenTelemetryBackendItem: MeshOpenTelemetryBackend defines a shared OTel collector endpoint for observability policies. An empty spec is valid and represents the node-local default flow (kuma-dp resolves the address at runtime using HOST_IP or 127.0.0.1).
  - `type` 'MeshOpenTelemetryBackend', required: the type of the resource
  - `mesh` string: Mesh is the name of the Kuma mesh this resource belongs to. It may be omitted for cluster-scoped resources.
  - `kri` string: A unique identifier for this resource instance used by internal tooling and integrations. Typically derived from resource attributes and may be used for cross-references or indexing
  - `name` string, required: Name of the Kuma resource
  - `labels` object: The labels to help identity resources
  - `spec` object, required: Spec is the specification of the Kuma MeshOpenTelemetryBackend resource.
    - `endpoint` object: Endpoint optionally defines the OTel collector address and port. When omitted, the CP defaults port to 4317 and leaves address empty; kuma-dp resolves the address at runtime using HOST_IP or 127.0.0.1.
      - `address` string: Address of the OTel collector (hostname or IP). When omitted, kuma-dp resolves it at runtime using HOST_IP or 127.0.0.1.
      - `path` string: Path is an optional base path prefix for HTTP endpoints. The CP appends signal-specific suffixes (/v1/traces, /v1/metrics, /v1/logs). Non-empty value is rejected by validation when protocol is grpc.
      - `port` integer: Port of the OTel collector. Defaults to 4317 when omitted.
    - `env` object: Env controls whether standard OTEL exporter env vars participate in the final exporter config for this backend. Defaults to mode: Optional, precedence: EnvFirst, allowSignalOverrides: true when omitted.
      - `allowSignalOverrides` boolean: AllowSignalOverrides controls whether per-signal OTEL env vars (OTEL_EXPORTER_OTLP_TRACES_*, OTEL_EXPORTER_OTLP_METRICS_*, OTEL_EXPORTER_OTLP_LOGS_*) may diverge from the shared OTEL_EXPORTER_OTLP_* values. true (default): per-signal vars override the shared values for that signal. false: per-signal vars are ignored; the shared values apply to all signals. When per-signal overrides are dropped this way, SignalOverridesDisallowed appears in blockedReasons (a soft block - export still works via the shared config).
      - `mode` 'Disabled' | 'Optional' | 'Required': Mode controls whether OTEL env vars participate in the merge. Disabled: env vars are skipped entirely; only explicit backend fields and built-in defaults apply. Optional (default): env vars are used when present; absence is fine. Required: env vars must supply the missing fields - if any required field is missing the signal is blocked (state: missing, RequiredEnvMissing in blockedReasons) even when an explicit value or default could fill it.
      - `precedence` 'ExplicitFirst' | 'EnvFirst': Precedence controls which source wins when both an explicit backend field and an env var are present for the same field. EnvFirst (default): env vars win; explicit backend fields fill gaps. ExplicitFirst: explicit backend fields win; env vars fill gaps. In either case, built-in defaults are the last fallback.
    - `protocol` 'grpc' | 'http': Protocol selects gRPC or HTTP transport for the collector connection. Defaults to grpc when omitted.
  - `creationTime` string, date-time: Time at which the resource was created
  - `modificationTime` string, date-time: Time at which the resource was updated
  - `status` object: Status is the current status of the Kuma MeshOpenTelemetryBackend resource.
    - `conditions` object[]
      - `message` string, required: message is a human readable message indicating details about the transition. This may be an empty string.
      - `reason` string, required: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
      - `status` 'True' | 'False' | 'Unknown', required: status of the condition, one of True, False, Unknown.
      - `type` string, required: type of condition in CamelCase or in foo.example.com/CamelCase.

## Response `201`

Successful response

- object
  - `warnings` string[]: warnings is a list of warning messages to return to the requesting Kuma API clients. Warning messages describe a problem the client making the API request should correct or be aware of.

## Other responses

- `400`: Invalid resource
- `404`: Parent mesh not found
- `409`: A resource with this identity already exists

## Changes

- **2026-12-03** `9c8d300657bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v3/mesh/control-planes/:cpId/meshes/:mesh/meshopentelemetrybackends/post.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd?raw)
