---
title: "Create Company Secret"
method: POST
path: "/companies/{company_id}/secrets"
tags: ["secrets"]
---

# Create Company Secret

`POST /companies/{company_id}/secrets`

## Request

- Base URL: `https://api.nanocorp.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nanocorp.so/companies/{company_id}/secrets`
- Auth: HTTP bearer

## Path parameters

- `company_id` string, uuid, required

## Request body

- CreateSecretRequest
  - `key` string, required
  - `value` string, required
  - `description` string, nullable

## Response `201`

Successful Response

- SecretResponse
  - `key` string, required
  - `description` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) - [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nanocorp/apis/nanocorp-api/revisions/291bb76b720b?raw)
