{
    "openapi": "3.0.3",
    "info": {
        "title": "Проверка DNS-авторизации API",
        "version": "1.0.0",
        "description": "SPF, DKIM, DMARC, BIMI/VMC разом — полный отчёт и подсказки\n\nСгенерировано из карты методов tools docs. Канон вызова — этот server, не Host документации."
    },
    "servers": [
        {
            "url": "https://mailganer.com",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "dns-auth"
        }
    ],
    "paths": {
        "/tools/dns-auth/v1/status": {
            "get": {
                "tags": [
                    "dns-auth"
                ],
                "summary": "Квоты и капча",
                "operationId": "dns_auth_get_tools_dns_auth_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/dns-auth/v1": {
            "post": {
                "tags": [
                    "dns-auth"
                ],
                "summary": "Проверить SPF / DKIM / DMARC / BIMI",
                "operationId": "dns_auth_post_tools_dns_auth_v1",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "domain": {
                                            "type": "string"
                                        },
                                        "spf": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "dkim": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "dmarc": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "bimi": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "mx": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "score": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "token": {
                                            "type": "string"
                                        },
                                        "focus": {
                                            "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": {
                                    "domain": {
                                        "type": "string",
                                        "description": "также q"
                                    },
                                    "selectors": {
                                        "type": "string",
                                        "description": "DKIM-селекторы через запятую"
                                    },
                                    "focus": {
                                        "type": "string",
                                        "description": "spf / dkim / dmarc / bimi — частичный отчёт"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "domain"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/dns-auth/v1/spf-flatten": {
            "post": {
                "tags": [
                    "dns-auth"
                ],
                "summary": "Сплющить SPF",
                "operationId": "dns_auth_post_tools_dns_auth_v1_spf_flatten",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "domain": {
                                            "type": "string"
                                        },
                                        "flattened": {
                                            "type": "string",
                                            "description": "готовая TXT"
                                        },
                                        "lookups": {
                                            "type": "integer"
                                        },
                                        "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": {
                                    "domain": {
                                        "type": "string"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "domain"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/dns-auth/v1/{token}": {
            "get": {
                "tags": [
                    "dns-auth"
                ],
                "summary": "Результат по токену",
                "operationId": "dns_auth_get_tools_dns_auth_v1_token_",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "domain": {
                                            "type": "string"
                                        },
                                        "spf": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "token": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        },
        "/tools/dns-auth/v1/share/{token}/badge.svg": {
            "get": {
                "tags": [
                    "dns-auth"
                ],
                "summary": "Бейдж результата",
                "operationId": "dns_auth_get_tools_dns_auth_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/dns-auth/v1/share/{token}/card": {
            "get": {
                "tags": [
                    "dns-auth"
                ],
                "summary": "Карточка для шаринга",
                "operationId": "dns_auth_get_tools_dns_auth_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": "токен результата"
                    }
                ]
            }
        }
    }
}