{
  "openapi": "3.1.0",
  "info": {
    "title": "StunList API",
    "version": "1.0.0",
    "summary": "Browse a hand-curated list of websites and apps, run Stun Check, submit free, or buy a placement with SOL or USDC on Solana.",
    "description": "Public, no-auth API behind https://stunlist.com. Agents can also use the MCP server at https://stunlist.com/mcp (Streamable HTTP, JSON-RPC 2.0); see https://stunlist.com/agents.\n\nPaid placement checkout is two steps:\n1. POST /api/order creates an unpaid quote (no funds move) and returns the USDC and SOL amounts, the payTo wallet (3B9w9iQrCn4LrmdmPqCttjms6DB1psZRPmA1aJre8SZS), a unique `reference` public key, and a signed `token`.\n2. Send the amount on Solana mainnet to payTo with the reference attached (as a read-only non-signer account key on the transfer instruction, Solana Pay style, or inside an SPL Memo), then POST /api/order/verify with the transaction signature and the token. The listing and placements publish immediately after on-chain verification and a second automated screening.\n\nPayments of at least 95% of the quote are accepted. SOL quotes are valid 15 minutes (refresh with /api/order/requote); orders expire after 7 days. Payment never buys acceptance: sites are screened before checkout and again after payment.",
    "contact": {
      "name": "StunList",
      "email": "hello@stunlist.com",
      "url": "https://stunlist.com/agents"
    },
    "x-guidance": "Free: GET /api/listings, POST /api/check. Paid over x402 (USDC on Solana or Base): GET /x402/audit?url=<site> for an agent-readiness audit ($0.05); POST /x402/spotlight with name, url, tagline to publish a Spotlight listing ($9). Unpaid calls return HTTP 402 with a PAYMENT-REQUIRED header. MCP: https://stunlist.com/mcp"
  },
  "servers": [
    {
      "url": "https://stunlist.com"
    }
  ],
  "externalDocs": {
    "description": "Agent guide (MCP + API)",
    "url": "https://stunlist.com/agents"
  },
  "tags": [
    {
      "name": "Browse"
    },
    {
      "name": "Tools"
    },
    {
      "name": "Submit"
    },
    {
      "name": "Checkout"
    },
    {
      "name": "x402",
      "description": "Pay per call in USDC on Solana mainnet or Base mainnet (x402 v2, exact scheme, PayAI facilitator). Unpaid requests get HTTP 402 with a PAYMENT-REQUIRED header."
    }
  ],
  "paths": {
    "/x402/audit": {
      "get": {
        "tags": [
          "x402"
        ],
        "operationId": "x402AuditGet",
        "summary": "Agent-readiness audit of a website ($0.05 USDC via x402)",
        "description": "Audits a public website for AI-agent readiness: HTTP status, latency, title, meta and OpenGraph tags, HTTPS, and presence of /llms.txt, /openapi.json, /.well-known/agent-card.json, /.well-known/x402 and /robots.txt. Returns a 0-100 readiness score and a list of gaps.",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {
                "version": 2,
                "scheme": "exact",
                "amount": "50000",
                "facilitator": "https://facilitator.payai.network",
                "accepts": [
                  {
                    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
                    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                    "payTo": "3B9w9iQrCn4LrmdmPqCttjms6DB1psZRPmA1aJre8SZS"
                  },
                  {
                    "network": "eip155:8453",
                    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "payTo": "0xfa0283a1c3416a0633d33798d7c949305e3e2ae2"
                  }
                ]
              }
            }
          ]
        },
        "security": [],
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri",
              "default": "https://example.com"
            }
          },
          {
            "name": "ref",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "Base64-encoded x402 PaymentPayload (legacy X-PAYMENT also accepted). Omit to receive the 402 challenge.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Audit report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string"
                    },
                    "final_url": {
                      "type": "string"
                    },
                    "http_status": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "latency_ms": {
                      "type": "integer"
                    },
                    "https": {
                      "type": "boolean"
                    },
                    "title": {
                      "type": "string"
                    },
                    "meta_description": {
                      "type": "string"
                    },
                    "og": {
                      "type": "object"
                    },
                    "checks": {
                      "type": "object"
                    },
                    "readiness_score": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "gaps": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tx_signature": {
                      "type": "string"
                    },
                    "stunlist": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required. The PAYMENT-REQUIRED header (base64 JSON, x402 v2) and the JSON body carry the payment requirements.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                },
                "description": "Base64-encoded x402 PaymentRequired JSON"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "x402Version": {
                      "type": "integer"
                    },
                    "resource": {
                      "type": "object"
                    },
                    "accepts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "extensions": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Payment already used",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "x402"
        ],
        "operationId": "x402AuditPost",
        "summary": "Agent-readiness audit of a website ($0.05 USDC via x402)",
        "description": "Audits a public website for AI-agent readiness: HTTP status, latency, title, meta and OpenGraph tags, HTTPS, and presence of /llms.txt, /openapi.json, /.well-known/agent-card.json, /.well-known/x402 and /robots.txt. Returns a 0-100 readiness score and a list of gaps.",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {
                "version": 2,
                "scheme": "exact",
                "amount": "50000",
                "facilitator": "https://facilitator.payai.network",
                "accepts": [
                  {
                    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
                    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                    "payTo": "3B9w9iQrCn4LrmdmPqCttjms6DB1psZRPmA1aJre8SZS"
                  },
                  {
                    "network": "eip155:8453",
                    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "payTo": "0xfa0283a1c3416a0633d33798d7c949305e3e2ae2"
                  }
                ]
              }
            }
          ]
        },
        "security": [],
        "parameters": [
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "Base64-encoded x402 PaymentPayload (legacy X-PAYMENT also accepted). Omit to receive the 402 challenge.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "ref": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Audit report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string"
                    },
                    "final_url": {
                      "type": "string"
                    },
                    "http_status": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "latency_ms": {
                      "type": "integer"
                    },
                    "https": {
                      "type": "boolean"
                    },
                    "title": {
                      "type": "string"
                    },
                    "meta_description": {
                      "type": "string"
                    },
                    "og": {
                      "type": "object"
                    },
                    "checks": {
                      "type": "object"
                    },
                    "readiness_score": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "gaps": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tx_signature": {
                      "type": "string"
                    },
                    "stunlist": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required. The PAYMENT-REQUIRED header (base64 JSON, x402 v2) and the JSON body carry the payment requirements.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                },
                "description": "Base64-encoded x402 PaymentRequired JSON"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "x402Version": {
                      "type": "integer"
                    },
                    "resource": {
                      "type": "object"
                    },
                    "accepts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "extensions": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Payment already used",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/x402/spotlight": {
      "post": {
        "tags": [
          "x402"
        ],
        "operationId": "x402Spotlight",
        "summary": "Publish a Spotlight listing ($9.00 USDC via x402)",
        "description": "Publishes a website on StunList (stunlist.com), a hand-curated directory, with a 7-day Spotlight boost. Body: name, url, tagline; optional description, category, email, x_handle, ref. The site is screened before payment; invalid or blocked sites get a 4xx and are not charged.",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "9.00"
          },
          "protocols": [
            {
              "x402": {
                "version": 2,
                "scheme": "exact",
                "amount": "9000000",
                "facilitator": "https://facilitator.payai.network",
                "accepts": [
                  {
                    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
                    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
                    "payTo": "3B9w9iQrCn4LrmdmPqCttjms6DB1psZRPmA1aJre8SZS"
                  },
                  {
                    "network": "eip155:8453",
                    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                    "payTo": "0xfa0283a1c3416a0633d33798d7c949305e3e2ae2"
                  }
                ]
              }
            }
          ]
        },
        "security": [],
        "parameters": [
          {
            "name": "PAYMENT-SIGNATURE",
            "in": "header",
            "required": false,
            "description": "Base64-encoded x402 PaymentPayload (legacy X-PAYMENT also accepted). Omit to receive the 402 challenge.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "url",
                  "tagline"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 60
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public https URL"
                  },
                  "tagline": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 120
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 600,
                    "description": "Optional; defaults to the site's meta description"
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "cosmos",
                      "planet",
                      "science",
                      "learning",
                      "create",
                      "human",
                      "data",
                      "wonder"
                    ]
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Optional, not published"
                  },
                  "x_handle": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string",
                    "description": "Optional referral id"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Listing published",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "order_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "slug": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "listing_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "tx_signature": {
                      "type": "string"
                    },
                    "llms_txt_badge_snippet": {
                      "type": "string"
                    },
                    "discovery": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment required. The PAYMENT-REQUIRED header (base64 JSON, x402 v2) and the JSON body carry the payment requirements.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                },
                "description": "Base64-encoded x402 PaymentRequired JSON"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "x402Version": {
                      "type": "integer"
                    },
                    "resource": {
                      "type": "object"
                    },
                    "accepts": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "extensions": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Payment already used",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Screening or verification failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/listings": {
      "get": {
        "tags": [
          "Browse"
        ],
        "operationId": "listListings",
        "summary": "All live listings",
        "responses": {
          "200": {
            "description": "Live listings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "listings": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Listing"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/placements": {
      "get": {
        "tags": [
          "Browse"
        ],
        "operationId": "getPlacements",
        "summary": "Headliner slots, Stun of the Week calendar and founding-rate counter",
        "description": "Tier list prices (USD): launch = Spotlight $12, supernova = Headliner $59, takeover = Stun of the Week $99, mission = Showstopper $149. While founding spots remain, the charged price is the founding rate (see founding.discountPct).",
        "responses": {
          "200": {
            "description": "Placement availability",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "sponsorSlots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "slot": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "open",
                              "booked"
                            ]
                          },
                          "listingId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "until": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "nextOpen": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "scheduled": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "motw": {
                      "type": "object",
                      "properties": {
                        "currentListingId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "weeks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "week": {
                                "type": "string",
                                "format": "date"
                              },
                              "booked": {
                                "type": "boolean"
                              },
                              "bookable": {
                                "type": "boolean"
                              }
                            }
                          }
                        }
                      }
                    },
                    "founding": {
                      "type": "object",
                      "properties": {
                        "claimed": {
                          "type": "integer"
                        },
                        "totalSpots": {
                          "type": "integer"
                        },
                        "discountPct": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/dispatch": {
      "get": {
        "tags": [
          "Browse"
        ],
        "operationId": "listDispatch",
        "summary": "Published issues of The StunList Dispatch",
        "responses": {
          "200": {
            "description": "Issue index",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": "string"
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/dispatch/{n}": {
      "get": {
        "tags": [
          "Browse"
        ],
        "operationId": "getDispatchIssue",
        "summary": "One Dispatch issue with write-ups",
        "parameters": [
          {
            "name": "n",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Issue",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "No such issue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/health": {
      "get": {
        "tags": [
          "Browse"
        ],
        "operationId": "health",
        "summary": "Health check and payment wallet",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "payTo": {
                      "type": "string",
                      "const": "3B9w9iQrCn4LrmdmPqCttjms6DB1psZRPmA1aJre8SZS"
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/check": {
      "post": {
        "tags": [
          "Tools"
        ],
        "operationId": "stunCheck",
        "summary": "Stun Check: automated screening + link-preview check for a URL",
        "description": "Rate limited per client (5/minute, 30/day) and globally.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 300,
                    "examples": [
                      "https://example.com"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Check result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "url": {
                      "type": "string"
                    },
                    "finalUrl": {
                      "type": "string"
                    },
                    "reachable": {
                      "type": "boolean"
                    },
                    "ready": {
                      "type": "boolean"
                    },
                    "blocked": {
                      "type": "boolean"
                    },
                    "badge": {
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pass",
                              "warn",
                              "fail",
                              "info"
                            ]
                          },
                          "detail": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "preview": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "listed": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/submit": {
      "post": {
        "tags": [
          "Submit"
        ],
        "operationId": "submitFree",
        "summary": "Free Spotted submission",
        "description": "Screens the site automatically. The listing goes live while the site links to stunlist.com (the StunList badge); without it, it waits until the badge appears (rechecked hourly). Rate limited.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ListingInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Submitted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "listingId": {
                      "type": "string"
                    },
                    "listingUrl": {
                      "type": "string"
                    },
                    "badge": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Already listed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Screening or verification failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/order": {
      "post": {
        "tags": [
          "Checkout"
        ],
        "operationId": "createOrder",
        "summary": "Step 1: create a placement order (unpaid quote; moves no funds)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ListingInput"
                  },
                  {
                    "type": "object",
                    "required": [
                      "tier"
                    ],
                    "properties": {
                      "tier": {
                        "type": "string",
                        "enum": [
                          "launch",
                          "supernova",
                          "takeover",
                          "mission"
                        ],
                        "description": "launch = Spotlight, supernova = Headliner, takeover = Stun of the Week, mission = Showstopper"
                      },
                      "slot": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3,
                        "description": "Headliner: preferred slot"
                      },
                      "start": {
                        "type": "string",
                        "format": "date",
                        "description": "Headliner: preferred start"
                      },
                      "week": {
                        "type": "string",
                        "format": "date",
                        "description": "Stun of the Week: preferred week (Monday)"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Fully booked",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Screening or verification failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/order/verify": {
      "post": {
        "tags": [
          "Checkout"
        ],
        "operationId": "verifyOrder",
        "summary": "Step 2: verify the Solana payment and publish",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "signature"
                ],
                "properties": {
                  "signature": {
                    "type": "string",
                    "description": "Solana transaction signature (base58)"
                  },
                  "token": {
                    "type": "string",
                    "description": "Order token from /api/order"
                  },
                  "reference": {
                    "type": "string",
                    "description": "Alternative to token"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verified",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "paid",
                        "live",
                        "needs_review"
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "signature": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Screening or verification failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Solana RPC unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/order/status": {
      "get": {
        "tags": [
          "Checkout"
        ],
        "operationId": "orderStatus",
        "summary": "Order status by token",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "404": {
            "description": "Unknown order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/order/find": {
      "get": {
        "tags": [
          "Checkout"
        ],
        "operationId": "findPayment",
        "summary": "Look on-chain for a payment carrying the order reference and settle it",
        "parameters": [
          {
            "name": "reference",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lookup result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "found": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "signature": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unknown reference",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/order/requote": {
      "post": {
        "tags": [
          "Checkout"
        ],
        "operationId": "requoteOrder",
        "summary": "Refresh the SOL amount of a pending order at the live SOL price",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "token"
                ],
                "properties": {
                  "token": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": false
          },
          "error": {
            "type": "string"
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Listing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "tagline": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "cosmos",
              "planet",
              "science",
              "learning",
              "create",
              "human",
              "data",
              "wonder"
            ]
          },
          "hubs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "featured": {
            "type": "boolean"
          },
          "changemaker": {
            "type": "boolean"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "logo": {
            "type": [
              "string",
              "null"
            ]
          },
          "ogImage": {
            "type": [
              "string",
              "null"
            ]
          },
          "added": {
            "type": "string"
          }
        }
      },
      "ListingInput": {
        "type": "object",
        "required": [
          "name",
          "site",
          "tagline",
          "description",
          "category",
          "email"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60
          },
          "site": {
            "type": "string",
            "format": "uri",
            "description": "Public https URL (alias: url)"
          },
          "tagline": {
            "type": "string",
            "minLength": 10,
            "maxLength": 120
          },
          "description": {
            "type": "string",
            "minLength": 30,
            "maxLength": 600
          },
          "category": {
            "type": "string",
            "enum": [
              "cosmos",
              "planet",
              "science",
              "learning",
              "create",
              "human",
              "data",
              "wonder"
            ]
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "Not published"
          }
        }
      },
      "Order": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "token": {
            "type": "string",
            "description": "Signed order token; keep it to verify and check status"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paid",
              "live",
              "needs_review",
              "expired"
            ]
          },
          "tier": {
            "type": "string"
          },
          "tierName": {
            "type": "string"
          },
          "usd": {
            "type": "number",
            "description": "Amount in USDC"
          },
          "listUsd": {
            "type": "number"
          },
          "sol": {
            "type": "number",
            "description": "Amount in SOL at quotedAt"
          },
          "solUsd": {
            "type": "number"
          },
          "quotedAt": {
            "type": "integer"
          },
          "quoteMinutes": {
            "type": "integer"
          },
          "reference": {
            "type": "string",
            "description": "Unique public key to attach to the payment transaction"
          },
          "payTo": {
            "type": "string",
            "const": "3B9w9iQrCn4LrmdmPqCttjms6DB1psZRPmA1aJre8SZS"
          },
          "usdcMint": {
            "type": "string",
            "const": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
          },
          "solUrl": {
            "type": "string",
            "description": "Solana Pay URL (SOL)"
          },
          "usdcUrl": {
            "type": "string",
            "description": "Solana Pay URL (USDC)"
          },
          "signature": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires": {
            "type": "string",
            "format": "date-time"
          },
          "plan": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "foundingRate": {
            "type": "boolean"
          },
          "listingId": {
            "type": [
              "string",
              "null"
            ]
          },
          "listingUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "placements": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  },
  "x-mcp": {
    "url": "https://stunlist.com/mcp",
    "transport": "streamable-http"
  }
}