{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postman/main/json-schema/postman-detected-secret-detail-schema.json",
  "title": "DetectedSecretDetail",
  "description": "Detailed information about a detected secret.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postman-secret-scanner-api-openapi.yml#/components/schemas/DetectedSecretDetail",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/DetectedSecret"
    },
    {
      "type": "object",
      "properties": {
        "secretHash": {
          "type": "string",
          "description": "A hash of the detected secret value (the actual value is not returned)"
        },
        "occurrences": {
          "type": "integer",
          "description": "Number of locations where this secret was found"
        },
        "resolutionHistory": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "resolution": {
                "type": "string"
              },
              "resolvedBy": {
                "type": "integer"
              },
              "resolvedAt": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "DetectedSecret": {
      "type": "object",
      "description": "A secret detected by the Postman secret scanner.",
      "properties": {
        "secretId": {
          "type": "string",
          "description": "The detected secret's unique ID"
        },
        "secretType": {
          "type": "string",
          "description": "The type of secret detected (e.g., AWS Access Key, GitHub Token)"
        },
        "resolution": {
          "type": "string",
          "enum": [
            "UNRESOLVED",
            "RESOLVED_FALSE_POSITIVE",
            "RESOLVED_REVOKED",
            "RESOLVED_ACCEPTED_RISK"
          ],
          "description": "The resolution status of the secret"
        },
        "workspaceId": {
          "type": "string",
          "description": "The workspace where the secret was found"
        },
        "workspaceVisibility": {
          "type": "string",
          "enum": [
            "personal",
            "team",
            "private",
            "public",
            "partner"
          ]
        },
        "detectedAt": {
          "type": "string",
          "format": "date-time"
        },
        "resolvedAt": {
          "type": "string",
          "format": "date-time"
        },
        "resolvedBy": {
          "type": "integer"
        }
      }
    }
  }
}