{
  "openapi": "3.1.0",
  "info": {
    "title": "Sellico public information API",
    "version": "1.0.0",
    "description": "Публичные сведения без авторизации. Не описывает приватный API CRM или платёжный API."
  },
  "servers": [
    {
      "url": "https://sellico.ru"
    }
  ],
  "security": [],
  "paths": {
    "/api/public/billing-plans": {
      "get": {
        "operationId": "getPublicBillingPlans",
        "summary": "Базовые месячные цены тарифов в RUB",
        "description": "Актуальные базовые цены; итоговая стоимость подтверждается в кабинете до оплаты.",
        "responses": {
          "200": {
            "description": "Тарифы по идентификатору",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "object",
                    "required": [
                      "title",
                      "monthly_price"
                    ],
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "monthly_price": {
                        "type": "number",
                        "minimum": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "API временно недоступен"
          }
        }
      }
    },
    "/agent-pages.json": {
      "get": {
        "operationId": "listPublicPages",
        "summary": "Индекс публичных страниц и их Markdown-версий",
        "responses": {
          "200": {
            "description": "Публичные страницы",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "pages"
                  ],
                  "properties": {
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "path",
                          "url",
                          "markdown",
                          "title",
                          "description"
                        ],
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string"
                          },
                          "markdown": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
