{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sb0 Agent APIKeys Secrets API",
    "version": "0.1.0"
  },
  "items": [
    {
      "info": {
        "name": "Secrets",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Pending Secrets for Environment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/agents/:namespace_slug/:agent_name/environments/:env_name/secrets",
            "params": [
              {
                "name": "namespace_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "agent_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "env_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "include_values",
                "value": "",
                "type": "query",
                "description": "Include values for non-secrets (is_secret=False only)"
              }
            ]
          },
          "docs": "List PENDING secrets for an environment (from EnvVar table).\n\n    This is what will be used on next deploy.\n    For deployed state, use GET /agents/{namespace_slug}/{agent_name}/environments/{env}/secrets/deployed\n\n    Note: is_secret=True values are NEVER returned, only non-secrets when include_values=True."
        },
        {
          "info": {
            "name": "Set Secrets",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/agents/:namespace_slug/:agent_name/environments/:env_name/secrets",
            "params": [
              {
                "name": "namespace_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "agent_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "env_name",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Set one or more secrets/config values.\n\n    If redeploy=True (default) and environment has active deployment,\n    triggers redeploy with same image but new secrets_snapshot."
        },
        {
          "info": {
            "name": "List Deployed Secrets for Environment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/agents/:namespace_slug/:agent_name/environments/:env_name/secrets/deployed",
            "params": [
              {
                "name": "namespace_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "agent_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "env_name",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List DEPLOYED secrets for an environment (from Version.secrets_snapshot).\n\n    This is what's currently running. May differ from pending state after rollback.\n    Only returns keys, never actual values."
        },
        {
          "info": {
            "name": "Delete Secret",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/agents/:namespace_slug/:agent_name/environments/:env_name/secrets/:key",
            "params": [
              {
                "name": "namespace_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "agent_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "env_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "key",
                "value": "",
                "type": "path"
              },
              {
                "name": "redeploy",
                "value": "",
                "type": "query",
                "description": "If true, trigger redeploy after deletion"
              }
            ]
          },
          "docs": "Delete a secret from an environment.\n\n    If redeploy=True (default), triggers redeploy with updated secrets."
        },
        {
          "info": {
            "name": "List Secrets Across Environments",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/agents/:namespace_slug/:agent_name/secrets",
            "params": [
              {
                "name": "namespace_slug",
                "value": "",
                "type": "path"
              },
              {
                "name": "agent_name",
                "value": "",
                "type": "path"
              },
              {
                "name": "include_values",
                "value": "",
                "type": "query",
                "description": "Include values for non-secrets (is_secret=False only)"
              }
            ]
          },
          "docs": "Cross-environment view of all secrets for an agent.\n\n    Shows which keys exist in which environments.\n    Never returns actual secret values (is_secret=True).\n    Values for non-secrets only returned when include_values=True."
        }
      ]
    }
  ],
  "bundled": true
}