---
title: "Sets a skill secret value."
method: PUT
path: "/agents/skills/secretvalues"
tags: ["agentSkills"]
---

# Sets a skill secret value.

`PUT /agents/skills/secretvalues`

Sets a skill secret value. Workspace-scoped values require admin permissions; user-scoped values are stored for the requesting user only.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Request body

- SetSkillSecretValueRequestModel — Represents the request payload that sets a skill secret value.
  - `envVarName` string, required — The environment variable name the value belongs to.
  - `scope` string, required — The scope of the value ("workspace" or "user").
  - `value` string, required — The secret value. It is stored encrypted and never returned by the API.

## Response `204`

No Content

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

## Changes

- **2026-09-20** `5332322ffca3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/awork-io/apis/api-v1-reference/changes/agents/skills/secretvalues/put.md)

---

[API](https://skmtc.dev/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.dev/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/awork-io/apis/api-v1-reference/revisions/eadefd26df12?raw)
