Skip to main content
POST
Create a workspace secret

Authorizations

Authorization
string
header
required

A workspace API key, created in Superlog under Settings → API keys.

Body

application/json
name
string
required

The environment variable name, such as METRICS_API_KEY.

Required string length: 1 - 80
Pattern: ^[A-Z_][A-Z0-9_]*$
value
string
required

The secret value, up to 64 KB.

Required string length: 1 - 65536
allowedHosts
string[]
required

1 to 20 hostnames without a scheme, path, or port. A leading *. matches subdomains.

Required array length: 1 - 20 elements
Required string length: 1 - 253
Pattern: ^(?:\*\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$

Response

Created

secret
object
required