latestOpenAPI 3.1.02026-08-20118232229.3 KB

0e42b0fb26d9

Create secret

Creates a new secret and associates it with the current account.

post/secrets

Request body

$schemastring uri

A URL to the JSON Schema for this object.

encrypted_valuestring required
environmentstring required
namestring required
previewstring required

Example request

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateSecretParams.json"
}

Response

Created

$schemastring uri

A URL to the JSON Schema for this object.

Example response

{
  "$schema": "https://api.tower.dev/v1/schemas/CreateSecretResponse.json"
}