{
  "openapi": "3.1.0",
  "info": {
    "title": "MGM Coins & Pins Public Agent API",
    "version": "1.0.0",
    "description": "Read-only access to public MGM product, guide, price and quote preparation information."
  },
  "servers": [
    {
      "url": "https://mgmcoinsandpins.com"
    }
  ],
  "paths": {
    "/agent-api/products": {
      "get": {
        "summary": "List MGM product families and official next steps",
        "operationId": "listProducts",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": false,
            "description": "Filter to a supported MGM product family.",
            "schema": {
              "type": "string",
              "enum": [
                "lapel-pins",
                "challenge-coins",
                "trading-pins",
                "patches",
                "medals"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public catalog response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListProductsResponse"
                }
              }
            }
          },
          "400": {
            "description": "The supplied filter is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidFilter"
                }
              }
            }
          }
        }
      }
    },
    "/agent-api/quote-requirements": {
      "get": {
        "summary": "Read the inputs for an MGM quote brief",
        "operationId": "getQuoteRequirements",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": false,
            "description": "Filter to a supported MGM product family.",
            "schema": {
              "type": "string",
              "enum": [
                "lapel-pins",
                "challenge-coins",
                "trading-pins",
                "patches",
                "medals"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public catalog response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetQuoteRequirementsResponse"
                }
              }
            }
          },
          "400": {
            "description": "The supplied filter is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidFilter"
                }
              }
            }
          }
        }
      }
    },
    "/prices.json": {
      "get": {
        "summary": "Check price guidance, estimates and quote conditions",
        "operationId": "getPricing",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": false,
            "description": "Filter to a supported MGM product family.",
            "schema": {
              "type": "string",
              "enum": [
                "lapel-pins",
                "challenge-coins",
                "trading-pins",
                "patches",
                "medals"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public catalog response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetPricingResponse"
                }
              }
            }
          },
          "400": {
            "description": "The supplied filter is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidFilter"
                }
              }
            }
          }
        }
      }
    },
    "/agent-api/guides": {
      "get": {
        "summary": "Find answers and production workflows",
        "operationId": "listGuides",
        "parameters": [
          {
            "name": "topic",
            "in": "query",
            "required": false,
            "description": "Filter production and buying guides by primary task.",
            "schema": {
              "type": "string",
              "enum": [
                "pins",
                "coins",
                "artwork",
                "buying"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public catalog response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListGuidesResponse"
                }
              }
            }
          },
          "400": {
            "description": "The supplied filter is invalid",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidFilter"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ListProductsResponse": {
        "type": "object",
        "required": [
          "products"
        ],
        "additionalProperties": false,
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "name",
                "product_url",
                "processes",
                "action_url",
                "quote_url",
                "estimator_url"
              ],
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "product_url": {
                  "type": "string"
                },
                "processes": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "action_url": {
                  "type": "string"
                },
                "quote_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "estimator_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "GetQuoteRequirementsResponse": {
        "type": "object",
        "required": [
          "requirements",
          "notes"
        ],
        "additionalProperties": false,
        "properties": {
          "requirements": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "product",
                "inputs",
                "next_step_url",
                "product_source_url",
                "quote_faq_url"
              ],
              "additionalProperties": false,
              "properties": {
                "product": {
                  "type": "string"
                },
                "inputs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "next_step_url": {
                  "type": "string"
                },
                "product_source_url": {
                  "type": "string"
                },
                "quote_faq_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "GetPricingResponse": {
        "type": "object",
        "required": [
          "currency_selection",
          "fixed_price_catalog",
          "estimated_rates",
          "quote_required_when",
          "pricing_updates_url",
          "sources",
          "quote_effect"
        ],
        "additionalProperties": false,
        "properties": {
          "currency_selection": {
            "type": "string"
          },
          "fixed_price_catalog": {
            "type": "boolean"
          },
          "estimated_rates": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "product",
                "model",
                "published_fixed_unit_price",
                "estimator_url",
                "next_step_url"
              ],
              "additionalProperties": false,
              "properties": {
                "product": {
                  "type": "string"
                },
                "model": {
                  "type": "string"
                },
                "published_fixed_unit_price": {
                  "type": "null"
                },
                "estimator_url": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "next_step_url": {
                  "type": "string"
                }
              }
            }
          },
          "quote_required_when": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pricing_updates_url": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "url"
              ],
              "additionalProperties": false,
              "properties": {
                "label": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          },
          "quote_effect": {
            "type": "string"
          }
        }
      },
      "ListGuidesResponse": {
        "type": "object",
        "required": [
          "guides"
        ],
        "additionalProperties": false,
        "properties": {
          "guides": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "type",
                "topic",
                "url",
                "markdown_url",
                "steps_url"
              ],
              "additionalProperties": false,
              "properties": {
                "title": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "topic": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "url": {
                  "type": "string"
                },
                "markdown_url": {
                  "type": "string"
                },
                "steps_url": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "InvalidFilter": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://mgmcoinsandpins.com/agents/",
    "description": "Agent integration and MCP guide"
  }
}
