---
title: "Create a new secret."
method: POST
path: "/system/secrets"
---

# Create a new secret.

`POST /system/secrets`

## Request body

- Secret
  - `name` string, required — Name of secret
  - `value` string — Value of secret in plain-text

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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