{
  "opencollection": "1.0.0",
  "info": {
    "name": "OneCLI Agent Setup Secrets API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Secrets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List secrets",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.onecli.sh/v1/secrets"
          },
          "docs": "Returns all secrets in the current project. Secret values are never returned."
        },
        {
          "info": {
            "name": "Create a secret",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.onecli.sh/v1/secrets",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new secret. The gateway uses secrets to inject credentials into outbound requests matching the host and path patterns.\n\n- **anthropic** and **openai** types are auto-configured.\n- **generic** type requires an `injectionConfig`.\n- Instead of an inline `value`, a project secret can reference a 1Password field: set `valueSource` to `onepassword` and provide `opRef`. The gateway resolves the value at request time via the project's 1Password vault connection.\n"
        },
        {
          "info": {
            "name": "Update a secret",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.onecli.sh/v1/secrets/:secretId",
            "params": [
              {
                "name": "secretId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates one or more fields on a secret. At least one field must be provided.\n\nSet `valueSource` to `onepassword` (with `opRef`) to switch the secret to a 1Password-resolved value, or provide `value` to store an inline value.\n"
        },
        {
          "info": {
            "name": "Delete a secret",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.onecli.sh/v1/secrets/:secretId",
            "params": [
              {
                "name": "secretId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a secret"
        }
      ]
    }
  ],
  "bundled": true
}