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

# Creates MeshTrust entity

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

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshtrusts`
- 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

- MeshTrustItem: MeshTrust defines trusted Certificate Authority (CA) bundles for a trust domain in the mesh. It establishes trust relationships for service-to-service mTLS authentication by specifying which CA certificates are trusted to verify service identities, supporting PEM-encoded CA bundles and enabling secure cross-service communication within the trust domain.
  - `type` 'MeshTrust', 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 MeshTrust resource.
    - `caBundles` object[], required: CABundles contains a list of CA bundles supported by this TrustDomain. At least one CA bundle must be specified.
      - `pem` object: Pem contains the PEM-encoded CA bundle if the Type is set to a PEM-based format.
        - `value` string, required: Value holds the PEM-encoded CA bundle as a string.
      - `type` 'Pem', required: Type specifies the format or source type of the CA bundle.
    - `trustDomain` string, required: TrustDomain is the trust domain associated with this resource.
  - `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 MeshTrust resource.
    - `origin` object: Origin specifies whether the resource was created from a MeshIdentity.
      - `kri` string: Resource identifier

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