---
title: "Add agent passphrase"
method: POST
path: "/v1/agent/{agent_id}/passphrase"
tags: ["Agents"]
---

# Add agent passphrase

`POST /v1/agent/{agent_id}/passphrase`

## Path parameters

- `agent_id` string, required — ID of an agent

## Request body

- object
  - `name` string, required
  - `passphrase` string, required

## Response `200`

OK

- AgentPassphrase — User-managed passphrase for the agent
  - `agent_passphrase_id` string — ID of an agent passphrase
  - `name` string, required — Friendly name to help remember which passphrase this is.
  - `passphrase` string — Your secret passphrase that secures the agent's data.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/slide/apis/slide-api.md) · [All operations](https://skmtc.net/slide/apis/slide-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slide/slide-api/versions/c63e4b604dd1/schema)
