{
  "openapi": "3.1.0",
  "info": {
    "title": "Arabia Co agent API",
    "version": "1.0.0",
    "description": "Read company/sector data and send uniform quote requests to Arabia Co (Egyptian uniform manufacturer). Submit quote requests only with the user's consent.",
    "contact": {
      "email": "sales@arabiaco-eg.com",
      "url": "https://arabiaco-eg.com/contact-us/"
    }
  },
  "servers": [
    {
      "url": "https://arabiaco-eg.com"
    }
  ],
  "paths": {
    "/api/company.json": {
      "get": {
        "operationId": "getCompany",
        "summary": "Company facts and contact details",
        "responses": {
          "200": {
            "description": "Company JSON"
          }
        }
      }
    },
    "/api/sectors.json": {
      "get": {
        "operationId": "listSectors",
        "summary": "Uniform sectors with products, MOQ, lead time and specs (EN + AR)",
        "responses": {
          "200": {
            "description": "Sectors JSON"
          }
        }
      }
    },
    "/api/articles.json": {
      "get": {
        "operationId": "listArticles",
        "summary": "News and guide articles",
        "responses": {
          "200": {
            "description": "Articles JSON"
          }
        }
      }
    },
    "/search-index.json": {
      "get": {
        "operationId": "getSearchIndex",
        "summary": "Full-text search index of all pages",
        "responses": {
          "200": {
            "description": "Array of pages"
          }
        }
      }
    },
    "/api/contact.php": {
      "post": {
        "operationId": "requestQuote",
        "summary": "Send a quote / contact request to the Arabia Co sales team (reply within 24h)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email",
                  "message"
                ],
                "properties": {
                  "first": {
                    "type": "string",
                    "description": "First name"
                  },
                  "last": {
                    "type": "string",
                    "description": "Last name"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "company": {
                    "type": "string"
                  },
                  "industry": {
                    "type": "string",
                    "examples": [
                      "Corporate",
                      "Healthcare",
                      "Restaurants & Hotels",
                      "Education",
                      "Security",
                      "Other"
                    ]
                  },
                  "quantity": {
                    "type": "string",
                    "description": "Approximate pieces or staff count"
                  },
                  "message": {
                    "type": "string",
                    "description": "Uniforms needed, styles, colours, logo, deadline"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "ar"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Result"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Result": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              },
              "errors": {
                "type": "object"
              }
            }
          }
        }
      }
    }
  }
}