{
  "openapi": "3.1.0",
  "info": {
    "title": "Fars dag-presenter – curated gift wishlist API",
    "version": "0.1.0",
    "description": "Create a gift wishlist for Father's Day (Fars dag, 8 Nov 2026) in seconds from curated amazon.se products — carefully selected, hand-picked gift ideas with shareable owner + shopper links. Curated by us (no customer reviews or ratings). Keywords: gift ideas, wishlist, gift list, shopping list, presenttips, önskelista, fars dag. Quickstart: POST /api/v1/agent/create-and-fill → shopUrl. Gift shopping lists, dad wishlists, and recommendation lists for Father's Day / Fars dag. Always pass marketplace+locale. amazon.se product /dp/ links use tag=sw-fathersday-21. CatalogMode=asin."
  },
  "servers": [
    {
      "url": "https://fathers-day-gifts.vercel.app"
    }
  ],
  "paths": {
    "/api/v1/health": {
      "get": {
        "operationId": "health",
        "summary": "Health check",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/marketplaces": {
      "get": {
        "operationId": "listMarketplaces",
        "summary": "List Amazon storefronts",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/search": {
      "get": {
        "operationId": "searchGifts",
        "summary": "Search dad gifts",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "occasion",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "fathers-day",
                "fars-dag",
                "birthday",
                "just-because",
                "retirement",
                "other"
              ]
            }
          },
          {
            "name": "budgetBand",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "styleTag",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hobby",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dadType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "marketplace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "amazon.* domain or id — REQUIRED"
          },
          {
            "name": "locale",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "e.g. sv or en-US — REQUIRED"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Search results"
          }
        }
      }
    },
    "/api/v1/catalog": {
      "get": {
        "operationId": "catalog",
        "summary": "Curated starter catalog",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "occasion",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "budgetBand",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "styleTag",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "styleTags",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Catalog"
          }
        }
      }
    },
    "/api/v1/wishlists": {
      "post": {
        "operationId": "createWishlist",
        "summary": "Create wishlist",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "recipientName": {
                    "type": "string"
                  },
                  "occasion": {
                    "type": "string"
                  },
                  "budgetBand": {
                    "type": "string"
                  },
                  "styleTags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "hobbies": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "dadType": {},
                  "relationship": {
                    "type": "string"
                  },
                  "marketplace": {
                    "type": "string"
                  },
                  "locale": {
                    "type": "string"
                  },
                  "items": {
                    "type": "array"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created"
          }
        }
      }
    },
    "/api/v1/wishlists/{id}": {
      "get": {
        "operationId": "getWishlist",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "patch": {
        "operationId": "patchWishlist",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/wishlists/{id}/items": {
      "post": {
        "operationId": "addItem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Added"
          }
        }
      }
    },
    "/api/v1/wishlists/{id}/items/{itemId}": {
      "delete": {
        "operationId": "deleteItem",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deleted"
          }
        }
      }
    },
    "/api/v1/agent/create-and-fill": {
      "post": {
        "operationId": "createAndFill",
        "summary": "One-shot create + fill",
        "responses": {
          "201": {
            "description": "Created"
          }
        }
      }
    },
    "/api/v1/products/resolve": {
      "post": {
        "operationId": "resolveProduct",
        "summary": "Resolve ASIN/URL/keywords to buyUrl",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "MCP JSON-RPC (initialize, tools/list, tools/call, ping)",
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      },
      "get": {
        "operationId": "mcpInfo",
        "summary": "MCP endpoint info",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}