---
title: "Sync Env Secret Refs To Vm"
method: POST
path: "/v1/envs/{env_id}/secrets/sync"
---

# Sync Env Secret Refs To Vm

`POST /v1/envs/{env_id}/secrets/sync`

Write KEY=opaque-ref pairs into the env VM's runtime environment.

The VM never receives secret values: refs are resolved in-flight by the
Central Yamato proxy. Restarting the runtime service lets new keys become
visible to workloads; rotations need no sync because refs are stable.

## Path parameters

- `env_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/tabtabtab/apis/fastapi.md) · [All operations](https://skmtc.dev/tabtabtab/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tabtabtab/fastapi/revisions/73961d1e6152/schema)
