{
  "openapi": "3.1.0",
  "info": {
    "title": "Digital Bees Enquiry API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://digitalbeesonline.com"
    }
  ],
  "paths": {
    "/api/agent-enquiry": {
      "post": {
        "operationId": "submitBrandBrief",
        "summary": "Store a brand brief for human review",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "./enquiry.schema.json"
              },
              "example": {
                "requester_type": "agent",
                "requester_name": "Brand representative",
                "requester_email": "representative@example.com",
                "brand_name": "Example Brand",
                "category": "Beauty",
                "target_country": "AE",
                "marketplace": "Amazon UAE",
                "required_service": "Marketplace management",
                "objective": "Assess launch readiness and agree an operating scope.",
                "consent_to_contact": true,
                "request_id": "example-brief-001"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Stored; human review required"
          },
          "200": {
            "description": "Duplicate; existing reference returned"
          },
          "400": {
            "description": "Malformed JSON"
          },
          "405": {
            "description": "Method not allowed"
          },
          "409": {
            "description": "Idempotency conflict"
          },
          "413": {
            "description": "Payload exceeds 16 KiB"
          },
          "415": {
            "description": "Expected application/json"
          },
          "422": {
            "description": "Schema or consent error"
          },
          "429": {
            "description": "Rate limited; Retry-After header"
          },
          "503": {
            "description": "Not enabled or storage unavailable"
          }
        }
      }
    }
  }
}
