{
    "openapi": "3.0.3",
    "info": {
        "title": "Заявка на AMP API",
        "version": "1.0.0",
        "description": "Помощь в оформлении заявки на AMP-письма — форма и подсказки\n\nСгенерировано из карты методов tools docs. Канон вызова — этот server, не Host документации."
    },
    "servers": [
        {
            "url": "https://mailganer.com",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "amp-request"
        }
    ],
    "paths": {
        "/tools/amp-request/v1/status": {
            "get": {
                "tags": [
                    "amp-request"
                ],
                "summary": "Квоты",
                "operationId": "amp_request_get_tools_amp_request_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/amp-request/v1/lint": {
            "post": {
                "tags": [
                    "amp-request"
                ],
                "summary": "Проверить AMP HTML",
                "operationId": "amp_request_post_tools_amp_request_v1_lint",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "status": {
                                            "type": "string"
                                        },
                                        "requestId": {
                                            "type": "string"
                                        },
                                        "valid": {
                                            "type": "boolean"
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "string"
                                            }
                                        },
                                        "quota": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "description": "Доступ: капча",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "html": {
                                        "type": "string"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "html"
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/tools/amp-request/v1/domain": {
            "post": {
                "tags": [
                    "amp-request"
                ],
                "summary": "Проверить домен (DMARC-гейт)",
                "operationId": "amp_request_post_tools_amp_request_v1_domain",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "status": {
                                            "type": "string"
                                        },
                                        "dmarc": {
                                            "type": "object",
                                            "additionalProperties": true
                                        },
                                        "quota": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "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/amp-request/v1/package": {
            "post": {
                "tags": [
                    "amp-request"
                ],
                "summary": "Собрать пакет заявки",
                "operationId": "amp_request_post_tools_amp_request_v1_package",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "status": {
                                            "type": "string"
                                        },
                                        "domain": {
                                            "type": "string"
                                        },
                                        "emlFilename": {
                                            "type": "string"
                                        },
                                        "ampHtml": {
                                            "type": "string"
                                        },
                                        "requestId": {
                                            "type": "string"
                                        },
                                        "quota": {
                                            "type": "object",
                                            "additionalProperties": true
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "description": "Доступ: капча",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "domain": {
                                        "type": "string"
                                    },
                                    "html": {
                                        "type": "string",
                                        "description": "AMP HTML; иначе образец"
                                    },
                                    "from_email": {
                                        "type": "string"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "domain"
                                ]
                            }
                        }
                    }
                }
            }
        }
    }
}