Secrets
Release a command-line secret or website login to the caller's OpenWork app or CLI
Changed onFor 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 URLhttps://api.openworklabs.com
- Auth
- API key in header x-api-key
- or HTTP bearer
Path parameters
secretId, string required
Request body
Use Organization Secret Request 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.
Use Organization Secret Response required
secret, Usable Organization Secret required
decision, 'allow' | 'ask' required
canChooseAlways, boolean required
release, union required
Changes
- info
added the required property
secret/headerNameto the response with the status
- info
- info
endpoint added
- info