Skip to main content
POST
/
org
/
{org}
/
secret
Create a secret
curl --request POST \
  --url https://api.cpln.io/org/{org}/secret \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "tags": {},
  "type": "opaque",
  "data": {
    "payload": "<string>",
    "encoding": "plain"
  }
}
'
{
  "status": 123,
  "message": "<string>",
  "code": "<string>",
  "details": {},
  "id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.controlplane.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Service account key can be used as API keys

Path Parameters

org
string
required

Body

application/json
name
string
Maximum string length: 64
description
string
Maximum string length: 250
tags
object
type
enum<string>
Available options:
opaque,
tls,
gcp,
aws,
ecr,
userpass,
keypair,
azure-sdk,
azure-connector,
docker,
dictionary,
nats-account
data

Response

Secret was created successfully