{
  "openapi": "3.1.0",
  "info": {
    "title": "Szülni Jó public appointment search",
    "version": "1.0.0",
    "description": "Read-only services and live appointment availability, with shareable user URLs. No MCP connection required."
  },
  "servers": [
    {
      "url": "https://szulnijo.hu/wp-json/szulnijo-public/v1"
    }
  ],
  "security": [],
  "paths": {
    "/services": {
      "get": {
        "operationId": "listPublicBookingServices",
        "summary": "Nyilvános szolgáltatások és foglalási módok",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success; services or appointments list. Empty appointments means no matching availability.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "service_id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "booking_mode": {
                            "type": "string",
                            "enum": [
                              "online",
                              "phone"
                            ]
                          },
                          "booking_label": {
                            "type": "string"
                          },
                          "search_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "appointments_api_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "booking_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phone": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "service_id",
                          "name",
                          "booking_mode"
                        ]
                      }
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "checked_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid arguments; error string.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit; retry after 60 seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; error string.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "description": "Public read-only HTTP GET, no key or login. Europe/Budapest timezone. Requests do not reserve appointments. Use share_url for the user; online booking and Barion payment happen on the webshop, phone services are telephone only."
      }
    },
    "/appointments": {
      "get": {
        "operationId": "getPublicAvailableAppointments",
        "summary": "Aktuális szabad időpontok és továbbadható share_url linkek",
        "parameters": [
          {
            "name": "service_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^(wc|phone):[1-9][0-9]*$"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0
            }
          },
          {
            "name": "time",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success; services or appointments list. Empty appointments means no matching availability.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "service": {
                      "type": "object",
                      "properties": {
                        "service_id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "booking_mode": {
                          "type": "string",
                          "enum": [
                            "online",
                            "phone"
                          ]
                        },
                        "booking_label": {
                          "type": "string"
                        },
                        "search_url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "appointments_api_url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "booking_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "service_id",
                        "name",
                        "booking_mode"
                      ]
                    },
                    "appointments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "starts_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "ends_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "date": {
                            "type": "string",
                            "description": "YYYY.MM.DD."
                          },
                          "time": {
                            "type": "string"
                          },
                          "professional": {
                            "type": "string"
                          },
                          "location": {
                            "type": "string"
                          },
                          "booking_mode": {
                            "type": "string",
                            "enum": [
                              "online",
                              "phone"
                            ]
                          },
                          "share_url": {
                            "type": "string",
                            "format": "uri",
                            "description": "Give this URL to the user. Opening it rechecks availability; it does not reserve a slot."
                          },
                          "action_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "booking_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phone": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "starts_at",
                          "date",
                          "time",
                          "booking_mode",
                          "share_url",
                          "action_url"
                        ]
                      }
                    },
                    "checked_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "total_available": {
                      "type": "integer"
                    },
                    "next_api_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "next_page_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requested_time_available": {
                      "type": "boolean"
                    },
                    "link_instructions": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid arguments; error string.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit; retry after 60 seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable; error string.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "description": "Public read-only HTTP GET, no key or login. Europe/Budapest timezone. Requests do not reserve appointments. Use share_url for the user; online booking and Barion payment happen on the webshop, phone services are telephone only."
      }
    }
  }
}
