Secrets

Store a write-only organization secret

Changed on

Stores an organization secret encrypted with a per-secret envelope key and AES-GCM AAD binding its type, exact target, and execution boundary. Refuses agent and API-key callers.

post/v1/org/secrets

Request

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

Request body

CreateOrganizationSecretRequest required
name, string required
description, string nullable
secretType, 'mcp_header' | 'http_header' | 'ssh_key' | 'cli_env' | 'web_login' required
executionBoundary, 'cloud_only' | 'desktop_allowed'
targetHost, string
targetCommand, string
headerName, string
headerPrefix, string
envName, string
loginUsername, string
secretValue, string required
allowBlindUse, OrganizationSecretBlindUseRequest
defaultRule, 'allow' | 'ask' | 'block'

Response

Created secret metadata.

OrganizationSecretDetailResponse required
secret, OrganizationSecretSummary required
blindUse, object required
rules, OrganizationSecretRule[] required

Changes

    • breaking

      removed the required property secret/sshFingerprint from the response with the status

    • breaking

      removed the required property secret/sshPublicKey from the response with the status

    • breaking

      removed the required property secret/targetConnectionId from the response with the status

    2 more changes in this revision