Skip to main content
POST
/
v0
/
networks
/
secrets
Create network secret
curl --request POST \
  --url https://controller.platform.simplecloud.app/v0/networks/secrets \
  --header 'Content-Type: application/json' \
  --header 'X-Network-ID: <x-network-id>' \
  --header 'X-Network-Secret: <x-network-secret>' \
  --data '{}'
{
  "name": "api-key-1",
  "secret": "secretpassword",
  "secret_id": "123e4567-e89b-12d3-a456-426614174000"
}

Headers

X-Network-ID
string
required

Network ID

X-Network-Secret
string
required

Network Secret

Body

application/json

Network secret details

The body is of type object.

Response

Created

Response for creating a network secret

name
string
Example:

"api-key-1"

secret
string
Example:

"secretpassword"

secret_id
string
Example:

"123e4567-e89b-12d3-a456-426614174000"