{
    "openapi": "3.0.3",
    "info": {
        "title": "Добавить в календарь API",
        "version": "1.0.0",
        "description": "HTML-кнопка и ссылки Google / Яндекс / Outlook + .ics для iCloud и Mail.ru\n\nСгенерировано из карты методов tools docs. Канон вызова — этот server, не Host документации."
    },
    "servers": [
        {
            "url": "https://mailganer.com",
            "description": "Production"
        }
    ],
    "tags": [
        {
            "name": "add-to-calendar-email"
        }
    ],
    "paths": {
        "/tools/add-to-calendar-email/v1": {
            "post": {
                "tags": [
                    "add-to-calendar-email"
                ],
                "summary": "HTML-кнопка и файл .ics",
                "operationId": "add_to_calendar_email_post_tools_add_to_calendar_email_v1",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "success": {
                                            "type": "boolean"
                                        },
                                        "html": {
                                            "type": "string",
                                            "description": "кнопка для письма"
                                        },
                                        "icsUrl": {
                                            "type": "string"
                                        },
                                        "id": {
                                            "type": "string"
                                        },
                                        "expiresInDays": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "description": "Доступ: капча",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "start": {
                                        "type": "string",
                                        "description": "локальное дата-время; также start_datetime"
                                    },
                                    "end": {
                                        "type": "string",
                                        "description": "также end_datetime"
                                    },
                                    "timezone": {
                                        "type": "string",
                                        "description": "IANA, по умолчанию Europe/Moscow"
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "location": {
                                        "type": "string"
                                    },
                                    "button_color": {
                                        "type": "string",
                                        "description": "#0062AD"
                                    },
                                    "layout": {
                                        "type": "string",
                                        "description": "button_and_links или button_only"
                                    },
                                    "services": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "description": "google, yandex, outlook, icloud, mailru"
                                    },
                                    "smart-token": {
                                        "type": "string",
                                        "description": "капча без ключа API; также captchaToken / smart_token / X-Captcha-Token"
                                    }
                                },
                                "required": [
                                    "title",
                                    "start",
                                    "end"
                                ]
                            }
                        }
                    }
                }
            }
        }
    }
}