{
    "openapi": "3.0.3",
    "info": {
        "title": "Email-валидатор API",
        "version": "1.0.0",
        "description": "Экспресс-проверка одного адреса: синтаксис, MX и статус\n\nСгенерировано из карты методов tools docs. Канон вызова — этот server, не Host документации."
    },
    "servers": [
        {
            "url": "https://mailganer.com",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "validation"
        }
    ],
    "paths": {
        "/tools/validation/v1/status": {
            "get": {
                "tags": [
                    "validation"
                ],
                "summary": "Квоты",
                "operationId": "validation_get_tools_validation_v1_status",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "configured": {
                                            "type": "boolean",
                                            "description": "сервис готов"
                                        },
                                        "dailyLimit": {
                                            "type": "integer",
                                            "description": "лимит с IP за сутки"
                                        },
                                        "dailyRemaining": {
                                            "type": "integer"
                                        },
                                        "captchaRequired": {
                                            "type": "boolean"
                                        },
                                        "siteKey": {
                                            "type": "string",
                                            "description": "ключ SmartCaptcha, если капча нужна"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/tools/validation/v1": {
            "post": {
                "tags": [
                    "validation"
                ],
                "summary": "Проверить адрес",
                "operationId": "validation_post_tools_validation_v1",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "email": {
                                            "type": "string",
                                            "description": "маска адреса"
                                        },
                                        "express.is_valid": {
                                            "type": "boolean"
                                        },
                                        "express.email_status": {
                                            "type": "string"
                                        },
                                        "express.corrected_email": {
                                            "type": "string",
                                            "description": "маска, если есть исправление"
                                        },
                                        "configured": {
                                            "type": "boolean",
                                            "description": "сервис готов"
                                        },
                                        "dailyLimit": {
                                            "type": "integer",
                                            "description": "лимит с IP за сутки"
                                        },
                                        "dailyRemaining": {
                                            "type": "integer"
                                        },
                                        "captchaRequired": {
                                            "type": "boolean"
                                        },
                                        "siteKey": {
                                            "type": "string",
                                            "description": "ключ SmartCaptcha, если капча нужна"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "description": "Доступ: капча",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "email"
                                ]
                            }
                        }
                    }
                }
            }
        }
    }
}