{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundmail-dev/json-schema/groundmail-dev-suppression-response-schema.json",
  "title": "SuppressionResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundmail-dev-suppressions-api-openapi.yml#/components/schemas/SuppressionResponse",
  "type": "object",
  "required": [
    "suppression"
  ],
  "properties": {
    "suppression": {
      "$ref": "#/$defs/Suppression"
    }
  },
  "$defs": {
    "Suppression": {
      "type": "object",
      "required": [
        "id",
        "email",
        "reason",
        "source",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "type": "string",
          "enum": [
            "bounce",
            "complaint",
            "manual",
            "api",
            "unsubscribe"
          ]
        },
        "tenant": {
          "type": "string",
          "description": "The tenant's `external_id`. Present only on entries of a tenant's list."
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}