{
  "openapi": "3.1.0",
  "info": {
    "title": "Citiwell Serbia Appointment Lead API",
    "version": "2026-07-26",
    "description": "Creates a user-consented appointment request for Citiwell Belgrade. It does not confirm an appointment slot."
  },
  "servers": [
    {
      "url": "https://citiwell.rs"
    }
  ],
  "paths": {
    "/send_lead.php": {
      "post": {
        "operationId": "requestCitiwellSerbiaAppointment",
        "summary": "Request a Citiwell Serbia appointment",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "phone",
                  "messenger",
                  "gender"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "messenger": {
                    "type": "string",
                    "enum": [
                      "WhatsApp",
                      "Viber"
                    ]
                  },
                  "gender": {
                    "type": "string",
                    "enum": [
                      "female",
                      "male"
                    ]
                  },
                  "city": {
                    "type": "string",
                    "default": "Beograd"
                  },
                  "country": {
                    "type": "string",
                    "default": "Serbia"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "sr-Latn-RS",
                      "ru-RS",
                      "en-RS"
                    ]
                  },
                  "page_url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "referrer": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "utm": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "tracking": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Lead request accepted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "ok"
                  ],
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request"
          },
          "502": {
            "description": "Delivery failed"
          }
        }
      }
    }
  },
  "x-citiwell-client-service-languages": [
    {
      "code": "sr-Latn-RS",
      "name": "Serbian (Latin)"
    },
    {
      "code": "ru-RS",
      "name": "Russian"
    },
    {
      "code": "en-RS",
      "name": "English"
    }
  ],
  "x-citiwell-consent-required": true
}
