{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/postman/main/json-schema/postman-detected-secret-schema.json",
  "title": "DetectedSecret",
  "description": "A secret detected by the Postman secret scanner.",
  "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/DetectedSecret",
  "type": "object",
  "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"
    }
  }
}