{
    "openapi": "3.0.3",
    "info": {
        "title": "Проверка RSS API",
        "version": "1.0.0",
        "description": "Лента → поля Mailganer, картинки и готовность к импорту в рассылку\n\nСгенерировано из карты методов tools docs. Канон вызова — этот server, не Host документации."
    },
    "servers": [
        {
            "url": "https://mailganer.com",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "rss-check"
        }
    ],
    "paths": {
        "/tools/rss-check/v1/status": {
            "get": {
                "tags": [
                    "rss-check"
                ],
                "summary": "Квоты",
                "operationId": "rss_check_get_tools_rss_check_v1_status",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "service": {
                                            "type": "string"
                                        },
                                        "daily_limit": {
                                            "type": "integer"
                                        },
                                        "remaining": {
                                            "type": "integer"
                                        },
                                        "captcha": {
                                            "type": "object",
                                            "additionalProperties": true,
                                            "description": "required, site_key, mode"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/tools/rss-check/v1/check": {
            "post": {
                "tags": [
                    "rss-check"
                ],
                "summary": "Проверить ленту",
                "operationId": "rss_check_post_tools_rss_check_v1_check",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "token": {
                                            "type": "string",
                                            "description": "только проверка по URL"
                                        },
                                        "ready": {
                                            "type": "boolean",
                                            "description": "пригодна к импорту в Mailganer"
                                        },
                                        "fields": {
                                            "type": "object",
                                            "additionalProperties": true,
                                            "description": "title, link, description, content"
                                        },
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            },
                                            "description": "превью записей"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "description": "Доступ: капча",
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "url": {
                                        "type": "string",
                                        "description": "нужен url или xml"
                                    },
                                    "xml": {
                                        "type": "string",
                                        "description": "вставленный XML; по share-ссылке не отдаётся"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/tools/rss-check/v1/share/{token}": {
            "get": {
                "tags": [
                    "rss-check"
                ],
                "summary": "Отчёт по ссылке",
                "operationId": "rss_check_get_tools_rss_check_v1_share_token_",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "token": {
                                            "type": "string"
                                        },
                                        "ready": {
                                            "type": "boolean"
                                        },
                                        "fields": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "токен результата"
                        },
                        "description": "токен результата"
                    }
                ]
            }
        }
    }
}