{
  "openapi": "3.1.0",
  "info": {
    "title": "Banner & Booth Agent API",
    "version": "2.0.0",
    "summary": "Zero-auth API for U.S.-printed trade show displays.",
    "description": "Search 602 live-priced product options, plan booths, check venue fire codes and order cutoffs, preflight artwork and create Shopify checkout links. Same logic as the MCP server at https://mcp.bannerandbooth.com/mcp and the CLI at https://mcp.bannerandbooth.com/cli. No auth, CORS *, JSON in/out.",
    "contact": {
      "email": "support@bannerandbooth.com",
      "url": "https://bannerandbooth.com"
    },
    "termsOfService": "https://bannerandbooth.com/policies/terms-of-service"
  },
  "servers": [
    {
      "url": "https://mcp.bannerandbooth.com"
    }
  ],
  "externalDocs": {
    "url": "https://mcp.bannerandbooth.com/llms.txt",
    "description": "Markdown guide for agents"
  },
  "paths": {
    "/v1/products": {
      "get": {
        "operationId": "searchProducts",
        "summary": "Search products",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Free-text query, e.g. '10x10 booth kit', 'table throw 6 ft'"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Category slug from /v1/categories"
          },
          {
            "name": "max_price",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Max unit price USD"
          },
          {
            "name": "min_price",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Min unit price USD"
          },
          {
            "name": "fire_cert",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "e.g. 'NFPA 701'"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "1-25, default 8"
          },
          {
            "name": "group_variants",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "One row per product (default true)"
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated fields to keep, e.g. sku,price,url"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResult"
                }
              }
            }
          },
          "4XX": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/products/{sku}": {
      "get": {
        "operationId": "getProduct",
        "summary": "Product detail with options, artwork template and cart link",
        "parameters": [
          {
            "name": "sku",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "BB-KIT-1010A"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetail"
                }
              }
            }
          },
          "4XX": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "Categories with counts and price ranges",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/venues": {
      "get": {
        "operationId": "listVenues",
        "summary": "Convention center fire codes, height caps, print hubs",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Venue or city filter"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/venues/{slug}": {
      "get": {
        "operationId": "getVenue",
        "summary": "One venue",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "las-vegas-convention-center-las-vegas"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/v1/kits/plan": {
      "post": {
        "operationId": "planBoothKit",
        "summary": "Priced booth plans with checkout links",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KitPlanRequest"
              },
              "example": {
                "booth_size": "10x10",
                "budget": 1500,
                "venue_or_city": "Javits",
                "show_date": "2027-03-10"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "operationId": "planBoothKitGet",
        "summary": "Same as POST, via query string",
        "parameters": [
          {
            "name": "booth_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "budget",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "venue_or_city",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "show_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outdoor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/delivery-check": {
      "post": {
        "operationId": "checkVenueAndCutoff",
        "summary": "Venue rules + order/proof cutoff for a show date",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeliveryCheckRequest"
              },
              "example": {
                "venue_or_city": "LVCC",
                "show_date": "2027-01-06",
                "sku": "BB-KIT-1010A"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "operationId": "checkVenueAndCutoffGet",
        "summary": "Same as POST, via query string",
        "parameters": [
          {
            "name": "venue_or_city",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "show_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sku",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/artwork/preflight": {
      "post": {
        "operationId": "preflightArtwork",
        "summary": "Check artwork pixels/format/color against a product template",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreflightRequest"
              },
              "example": {
                "sku": "BB-RB-33STD",
                "width_px": 5025,
                "height_px": 13050,
                "file_format": "png",
                "color_mode": "rgb"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PASS / WARN / FAIL with fixes"
          }
        }
      }
    },
    "/v1/cart-link": {
      "post": {
        "operationId": "createCartLink",
        "summary": "Checkout link with best volume code",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartLinkRequest"
              },
              "example": {
                "items": [
                  {
                    "sku": "BB-KIT-1010A",
                    "quantity": 1
                  }
                ],
                "source": "my-agent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartLinkResult"
                }
              }
            }
          },
          "4XX": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "createCartLinkGet",
        "summary": "Same as POST; items=SKU:qty,SKU:qty",
        "parameters": [
          {
            "name": "items",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "SKU:qty,SKU:qty"
          },
          {
            "name": "discount_code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartLinkResult"
                }
              }
            }
          },
          "4XX": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quotes": {
      "post": {
        "operationId": "requestQuote",
        "summary": "Send a B2B quote / PO request to the sales desk (needs the buyer's consent to share email)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteRequest"
              },
              "example": {
                "contact_email": "buyer@example.com",
                "company": "Acme",
                "details": "Two 10x20 booths for HIMSS, need PO and W-9",
                "needed_by": "2027-02-20",
                "needs": [
                  "purchase_order",
                  "w9"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reference number"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    },
    "/v1/competitors": {
      "get": {
        "operationId": "matchCompetitor",
        "summary": "Competitor item to Banner & Booth sku",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tco": {
      "get": {
        "operationId": "rentVsBuy",
        "summary": "Rent vs. buy booth cost",
        "parameters": [
          {
            "name": "shows",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "rental_per_show_usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "drayage_per_show_usd",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sku",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/size-charts": {
      "get": {
        "operationId": "sizeCharts",
        "summary": "Size charts",
        "parameters": [
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/policies": {
      "get": {
        "operationId": "policies",
        "summary": "Shipping, artwork, promo, returns and B2B policies",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/c/{items}": {
      "get": {
        "operationId": "checkoutRedirect",
        "summary": "302 to Shopify checkout with items (variant_id:qty or SKU:qty, comma-separated)",
        "parameters": [
          {
            "name": "items",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "BB-KIT-1010A:1"
          },
          {
            "name": "d",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Discount code"
          },
          {
            "name": "s",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Source/assistant name"
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect to checkout"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "MCP Streamable HTTP endpoint (JSON-RPC 2.0)",
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          },
          "202": {
            "description": "Notification accepted"
          }
        }
      }
    },
    "/catalog.json": {
      "get": {
        "operationId": "listCatalog",
        "summary": "Full catalog dump (all options)",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/venues.json": {
      "get": {
        "operationId": "listConventionFireCodes",
        "summary": "Legacy venue list",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "operationId": "searchDisplays",
        "summary": "Legacy search (use /v1/products)",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_price",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "hint": {
                "type": "string"
              }
            }
          }
        }
      },
      "Product": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "url": {
            "type": "string"
          },
          "fire_cert": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "turnaround": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "matching_options": {
            "type": "integer"
          },
          "price_range": {
            "type": "string"
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "total_matches": {
            "type": "integer"
          },
          "returned": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Product"
            }
          },
          "shipping": {
            "type": "string"
          },
          "promo_codes": {
            "type": "object"
          }
        }
      },
      "ProductDetail": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "currency": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "variant_id": {
            "type": "string"
          },
          "fire_cert": {
            "type": "string"
          },
          "size": {
            "type": "string"
          },
          "turnaround": {
            "type": "object"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sku": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "price": {
                  "type": "number"
                },
                "variant_id": {
                  "type": "string"
                }
              }
            }
          },
          "artwork": {
            "type": "object"
          },
          "cart_url": {
            "type": "string"
          }
        }
      },
      "KitPlanRequest": {
        "type": "object",
        "properties": {
          "booth_size": {
            "type": "string",
            "enum": [
              "10x10",
              "10x20",
              "tabletop"
            ]
          },
          "budget": {
            "type": "number"
          },
          "outdoor": {
            "type": "boolean"
          },
          "venue_or_city": {
            "type": "string"
          },
          "show_date": {
            "type": "string",
            "format": "date"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "DeliveryCheckRequest": {
        "type": "object",
        "properties": {
          "venue_or_city": {
            "type": "string"
          },
          "show_date": {
            "type": "string",
            "format": "date"
          },
          "sku": {
            "type": "string"
          }
        }
      },
      "PreflightRequest": {
        "type": "object",
        "properties": {
          "sku": {
            "type": "string"
          },
          "width_px": {
            "type": "integer"
          },
          "height_px": {
            "type": "integer"
          },
          "file_format": {
            "type": "string"
          },
          "color_mode": {
            "type": "string",
            "enum": [
              "cmyk",
              "rgb",
              "grayscale"
            ]
          },
          "is_vector": {
            "type": "boolean"
          },
          "fonts_outlined": {
            "type": "boolean"
          },
          "includes_bleed": {
            "type": "boolean"
          },
          "embedded_raster_min_dpi": {
            "type": "number"
          },
          "target_width_in": {
            "type": "number"
          },
          "target_height_in": {
            "type": "number"
          }
        }
      },
      "CartLinkRequest": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sku": {
                  "type": "string"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 500
                }
              },
              "required": [
                "sku"
              ]
            }
          },
          "discount_code": {
            "type": "string"
          },
          "show_date": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "items"
        ]
      },
      "CartLinkResult": {
        "type": "object",
        "properties": {
          "checkout_url": {
            "type": "string"
          },
          "direct_shopify_url": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "subtotal": {
            "type": "number"
          },
          "discount_code": {
            "type": "string"
          },
          "discount": {
            "type": "number"
          },
          "estimated_total_before_tax": {
            "type": "number"
          },
          "artwork_next_step": {
            "type": "string"
          }
        }
      },
      "QuoteRequest": {
        "type": "object",
        "properties": {
          "contact_email": {
            "type": "string",
            "format": "email"
          },
          "contact_name": {
            "type": "string"
          },
          "company": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "details": {
            "type": "string"
          },
          "skus": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "quantity": {
            "type": "string"
          },
          "needed_by": {
            "type": "string"
          },
          "ship_to_zip": {
            "type": "string"
          },
          "needs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "contact_email",
          "details"
        ]
      }
    }
  }
}