{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metricool/json-schema/metricool-json-ok-response-agency-smtp-test-result-dto-schema.json",
  "title": "JsonOkResponseAgencySmtpTestResultDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metricool-agency-customization-kit-api-service-api-openapi.yml#/components/schemas/JsonOkResponseAgencySmtpTestResultDto",
  "type": "object",
  "properties": {
    "metadata": {
      "type": "object"
    },
    "page": {
      "$ref": "#/$defs/JsonPaging"
    },
    "data": {
      "$ref": "#/$defs/AgencySmtpTestResultDto"
    }
  },
  "$defs": {
    "AgencySmtpTestResultDto": {
      "type": "object",
      "properties": {
        "sent": {
          "type": "boolean",
          "description": "Whether the SMTP server accepted the email"
        },
        "errorType": {
          "type": "string",
          "description": "Error type when the email was not sent",
          "enum": [
            "HOST_NOT_FOUND",
            "CONNECTION",
            "ENCRYPTION",
            "AUTHENTICATION",
            "SENDER_REJECTED",
            "OTHER"
          ]
        },
        "detail": {
          "type": "string",
          "description": "Technical message returned by the server when the email was not sent"
        }
      },
      "description": "Result of the test email"
    },
    "JsonPaging": {
      "type": "object",
      "properties": {
        "next": {
          "type": "string"
        }
      }
    }
  }
}