---
title: "Submit Secret"
method: POST
path: "/v1/secrets"
tags: ["secrets"]
---

# Submit Secret

`POST /v1/secrets`

## Request

- Base URL: `https://api.cybret.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cybret.ai/v1/secrets`
- Auth: HTTP bearer

## Request body

- SubmitSecretRequest: One-time secret submission; response never echoes the value.
  - `purpose` 'header' | 'cookie' | 'query' | 'browser_login' | 'oauth' | 'oidc_pkce' | 'mtls' | 'csrf' | 'hmac' | 'plugin', required
  - `slot_name` string, required
  - `secret` string, password, required
  - `target_id` string, nullable
  - `metadata` object

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cybret/apis/api-scanner-control-plane.md) · [All operations](https://skmtc.dev/cybret/apis/api-scanner-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/cybret/apis/api-scanner-control-plane/revisions/4c9b522246af?raw)
