{
  "openapi": "3.1.0",
  "info": {
    "title": "Bystry public API",
    "version": "1.0.0",
    "description": "Read-only public facts about Bystry: plans and prices, integrations, and help answers. No sign-in, no personal or store data.",
    "contact": {
      "url": "https://bystry.io/developers"
    }
  },
  "servers": [
    {
      "url": "https://bystry.io/api/v1"
    }
  ],
  "externalDocs": {
    "url": "https://bystry.io/developers"
  },
  "paths": {
    "/plans": {
      "get": {
        "operationId": "getPlans",
        "summary": "Plans and monthly prices (INR paise, USD cents), staff and warehouse limits, founding offer",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Plans not available right now"
          }
        }
      }
    },
    "/integrations": {
      "get": {
        "operationId": "listIntegrations",
        "summary": "Services a store can connect, and whether each is ready or coming soon",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "payments",
                "shipping",
                "email",
                "sms",
                "migration",
                "analytics"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Unknown category"
          }
        }
      }
    },
    "/help": {
      "get": {
        "operationId": "searchHelp",
        "summary": "Answers to common questions",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Whether the API can answer",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Degraded"
          }
        }
      }
    }
  }
}