Secrets

Release a command-line secret or website login to the caller's OpenWork app or CLI

Changed on

For a secret usable on people's computers: checks that the caller is allowed, that the command or the page matches the secret's locked target, and the Allow, Ask or Block rule, then releases the value to the OpenWork app or CLI that runs the command or fills the page. Refuses agents and API keys. With preflight, answers the decision without releasing anything. Every refusal and every release is recorded for the organization.

post/v1/org/my-secrets/{secretId}/use

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

secretId, string required

Request body

UseOrganizationSecretRequest required
use, union required
client, 'cli' | 'desktop'
agentId, string typeid

Den TypeID with 'pga_' prefix and a 26-character base32 suffix.

approval, 'once' | 'always'
preflight, boolean

Response

The decision, and the released value unless this was a preflight.

UseOrganizationSecretResponse required
secret, UsableOrganizationSecret required
decision, 'allow' | 'ask' required
canChooseAlways, boolean required
release, union required

Changes