{
    "openapi": "3.0.3",
    "info": {
        "title": "Репутация API",
        "version": "1.0.0",
        "description": "IP, домен или DNS-пул: DNSBL, рейтинг IP, PTR и FCrDNS в одном инструменте\n\nСгенерировано из карты методов tools docs. Канон вызова — этот server, не Host документации."
    },
    "servers": [
        {
            "url": "https://mailganer.com",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "IP"
        },
        {
            "name": "Домен"
        },
        {
            "name": "Пул"
        }
    ],
    "paths": {
        "/tools/ip-reputation/ip/v1/status": {
            "get": {
                "tags": [
                    "IP"
                ],
                "summary": "Квоты",
                "operationId": "ip_reputation_get_tools_ip_reputation_ip_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/ip-reputation/ip/v1": {
            "post": {
                "tags": [
                    "IP"
                ],
                "summary": "Проверить IPv4 / PTR / DNSBL",
                "operationId": "ip_reputation_post_tools_ip_reputation_ip_v1",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "kind": {
                                            "type": "string",
                                            "description": "ipv4 или domain"
                                        },
                                        "target": {
                                            "type": "string"
                                        },
                                        "ip": {
                                            "type": "string"
                                        },
                                        "ptr": {
                                            "type": "string",
                                            "description": "PTR / FCrDNS"
                                        },
                                        "ip_score": {
                                            "type": "object",
                                            "additionalProperties": true,
                                            "description": "рейтинг IP и DNSBL"
                                        },
                                        "token": {
                                            "type": "string",
                                            "description": "для GET по токену"
                                        },
                                        "from_cache": {
                                            "type": "boolean"
                                        },
                                        "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": {
                                    "target": {
                                        "type": "string",
                                        "description": "IPv4 или hostname; также q"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "target"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/ip-reputation/ip/v1/{token}": {
            "get": {
                "tags": [
                    "IP"
                ],
                "summary": "Результат по токену",
                "operationId": "ip_reputation_get_tools_ip_reputation_ip_v1_token_",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "ip": {
                                            "type": "string"
                                        },
                                        "ip_score": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/ip/v1/share/{token}/badge.svg": {
            "get": {
                "tags": [
                    "IP"
                ],
                "summary": "Бейдж результата",
                "operationId": "ip_reputation_get_tools_ip_reputation_ip_v1_share_token_badge_svg",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary",
                                    "description": "SVG-бейдж"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/ip/v1/share/{token}/card": {
            "get": {
                "tags": [
                    "IP"
                ],
                "summary": "Карточка для шаринга",
                "operationId": "ip_reputation_get_tools_ip_reputation_ip_v1_share_token_card",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "image/png": {
                                            "type": "string",
                                            "description": "1200×630"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/domain/v1/status": {
            "get": {
                "tags": [
                    "Домен"
                ],
                "summary": "Квоты",
                "operationId": "ip_reputation_get_tools_ip_reputation_domain_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/ip-reputation/domain/v1": {
            "post": {
                "tags": [
                    "Домен"
                ],
                "summary": "Репутация отправляющего домена",
                "operationId": "ip_reputation_post_tools_ip_reputation_domain_v1",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "domain": {
                                            "type": "string"
                                        },
                                        "ips": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            },
                                            "description": "найденные IP отправителя"
                                        },
                                        "token": {
                                            "type": "string"
                                        },
                                        "from_cache": {
                                            "type": "boolean"
                                        },
                                        "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": {
                                    "domain": {
                                        "type": "string",
                                        "description": "также target"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "domain"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/ip-reputation/domain/v1/{token}": {
            "get": {
                "tags": [
                    "Домен"
                ],
                "summary": "Результат по токену",
                "operationId": "ip_reputation_get_tools_ip_reputation_domain_v1_token_",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "domain": {
                                            "type": "string"
                                        },
                                        "ips": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/domain/v1/share/{token}/badge.svg": {
            "get": {
                "tags": [
                    "Домен"
                ],
                "summary": "Бейдж результата",
                "operationId": "ip_reputation_get_tools_ip_reputation_domain_v1_share_token_badge_svg",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary",
                                    "description": "SVG-бейдж"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/domain/v1/share/{token}/card": {
            "get": {
                "tags": [
                    "Домен"
                ],
                "summary": "Карточка для шаринга",
                "operationId": "ip_reputation_get_tools_ip_reputation_domain_v1_share_token_card",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "image/png": {
                                            "type": "string",
                                            "description": "1200×630"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/pool/v1/status": {
            "get": {
                "tags": [
                    "Пул"
                ],
                "summary": "Квоты",
                "operationId": "ip_reputation_get_tools_ip_reputation_pool_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/ip-reputation/pool/v1/discover": {
            "post": {
                "tags": [
                    "Пул"
                ],
                "summary": "Найти IP пула",
                "operationId": "ip_reputation_post_tools_ip_reputation_pool_v1_discover",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "pool": {
                                            "type": "string"
                                        },
                                        "ips": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            },
                                            "description": "кандидаты IP"
                                        },
                                        "token": {
                                            "type": "string"
                                        },
                                        "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": {
                                    "pool": {
                                        "type": "string",
                                        "description": "hostname пула; также domain"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "pool"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/ip-reputation/pool/v1/check": {
            "post": {
                "tags": [
                    "Пул"
                ],
                "summary": "Проверить выбранные IP",
                "operationId": "ip_reputation_post_tools_ip_reputation_pool_v1_check",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "pool": {
                                            "type": "string"
                                        },
                                        "results": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            },
                                            "description": "DNSBL по выбранным IP"
                                        },
                                        "token": {
                                            "type": "string"
                                        },
                                        "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": {
                                    "pool": {
                                        "type": "string"
                                    },
                                    "ips": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "description": "IPv4 из discover"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "pool",
                                    "ips"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/ip-reputation/pool/v1/{token}": {
            "get": {
                "tags": [
                    "Пул"
                ],
                "summary": "Результат по токену",
                "operationId": "ip_reputation_get_tools_ip_reputation_pool_v1_token_",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "pool": {
                                            "type": "string"
                                        },
                                        "results": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/pool/v1/share/{token}/badge.svg": {
            "get": {
                "tags": [
                    "Пул"
                ],
                "summary": "Бейдж результата",
                "operationId": "ip_reputation_get_tools_ip_reputation_pool_v1_share_token_badge_svg",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string",
                                    "format": "binary",
                                    "description": "SVG-бейдж"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/ip-reputation/pool/v1/share/{token}/card": {
            "get": {
                "tags": [
                    "Пул"
                ],
                "summary": "Карточка для шаринга",
                "operationId": "ip_reputation_get_tools_ip_reputation_pool_v1_share_token_card",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "image/png": {
                                            "type": "string",
                                            "description": "1200×630"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        }
    }
}