cURL
curl --request POST \ --url https://operator.io/api/secrets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "GITHUB_TOKEN", "value": "ghp_...", "isGlobal": false } '
{ "secret": { "id": "<string>", "name": "<string>", "description": "<string>", "isGlobal": true, "createdAt": "2023-11-07T05:31:56Z" } }
Store a secret. The value is only returned in this response and cannot be retrieved later.
API key (ck_live_...). Create one in Settings > API Keys.
ck_live_...
Environment variable name (e.g. GITHUB_TOKEN).
GITHUB_TOKEN
The secret value.
If true, automatically granted to all instances.
Created.
Show child attributes