Skip to main content
POST
/
api
/
app
/
{app_id}
/
secrets
Create a new secret for an app
curl --request POST \
  --url https://api.example.com/api/app/{app_id}/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "secret_name": "<string>",
  "data": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}
'
{
  "secret_name": "<string>",
  "k8s_name": "<string>",
  "data": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "created_at": "<string>"
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

app_id
string<uuid>
required

Body

application/json

Request model for creating a new K8s secret.

secret_name
string
required

User-facing name of the secret.

data
SecretKeyValue · object[]
required

Key-value pairs to store.

Response

Secret created successfully

Detail view of a secret with masked values.

secret_name
string
required

User-facing name of the secret.

k8s_name
string
required

K8s resource name.

data
SecretKeyValue · object[]

Key-value pairs (values masked as '****').

created_at
string | null

ISO timestamp when the secret was created.