{
 "openapi": "3.1.0",
 "info": {
  "title": "GiftSniper API — Telegram gifts data",
  "version": "1.3.0",
  "description": "Telegram NFT gifts data from Portals, MRKT, the Telegram official market, Fragment, Getgems and Tonnel (sales history; Tonnel closed on 25 Nov 2026): floors by market, model, backdrop and symbol, listings, offers, sales history since January 2025, trading helpers (search, deals, cross-market spread, portfolio floors), analytics (traits with rarity, statistics, floor movers), webhooks and a WebSocket event stream. Plans from $3 (trial) to $200 a month. Plans and prices: https://giftsniper.com/api?lang=en. Docs: https://giftsniper.com/api/docs?lang=en. Scraping giftsniper.com pages is not allowed; use this API.",
  "contact": {
   "name": "GiftSniper support",
   "url": "https://t.me/giftsniper_contact"
  }
 },
 "servers": [
  {
   "url": "https://giftsniper.com/api/v1"
  }
 ],
 "security": [
  {
   "key": []
  }
 ],
 "components": {
  "securitySchemes": {
   "key": {
    "type": "apiKey",
    "in": "header",
    "name": "x-api-key"
   }
  }
 },
 "paths": {
  "/me": {
   "get": {
    "summary": "Plan, units left and expiry",
    "description": "Units per request: 0. Available on all plans.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/collections": {
   "get": {
    "summary": "All collections: supply, listed, floors, sales and volume",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/floors": {
   "get": {
    "summary": "Floors by market, model, backdrop and symbol",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/floors/history": {
   "get": {
    "summary": "Hourly floor history of one trait",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "trait",
      "in": "query",
      "required": true,
      "description": "model, backdrop or symbol",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "name",
      "in": "query",
      "required": true,
      "description": "Trait name",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "range",
      "in": "query",
      "required": false,
      "description": "1d, 7d or 30d",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/floors/resolve": {
   "get": {
    "summary": "Floors for up to 500 gifts in one request (portfolio)",
    "description": "Units per request: 1 per collection. Available on all plans.",
    "parameters": [
     {
      "name": "items",
      "in": "query",
      "required": true,
      "description": "coll:model:backdrop|coll:model|coll, up to 500 items and 5 collections",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/sales": {
   "get": {
    "summary": "Sales history, newest first, up to 500 per page",
    "description": "Units per request: 10 (last 24 h), 100 (1-30 days), 700 (older). Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "before",
      "in": "query",
      "required": false,
      "description": "Unix time; use next_before from the previous page",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/gift": {
   "get": {
    "summary": "One gift: traits, owner, latest sales (full=1 for the full history)",
    "description": "Units per request: 1, or 20 with full=1 or after 3,000 gifts per UTC day. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "n",
      "in": "query",
      "required": true,
      "description": "Gift number",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "full",
      "in": "query",
      "required": false,
      "description": "1 = full sales history",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/lots": {
   "get": {
    "summary": "All listings of a collection on every market",
    "description": "Units per request: 10. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/offers": {
   "get": {
    "summary": "Collection and trait offers: Portals, MRKT, Getgems",
    "description": "Units per request: 1. Available on Trial, Pro, Max and Stream.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/search": {
   "get": {
    "summary": "Listing search across markets with the cheapest on each market",
    "description": "Units per request: 10. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "models",
      "in": "query",
      "required": false,
      "description": "Comma-separated",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "backdrops",
      "in": "query",
      "required": false,
      "description": "Comma-separated",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "symbols",
      "in": "query",
      "required": false,
      "description": "Comma-separated",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "markets",
      "in": "query",
      "required": false,
      "description": "portals,mrkt,telegram,fragment,getgems",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "price_min",
      "in": "query",
      "required": false,
      "description": "TON",
      "schema": {
       "type": "number"
      }
     },
     {
      "name": "price_max",
      "in": "query",
      "required": false,
      "description": "TON",
      "schema": {
       "type": "number"
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "price, price_desc or newest",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Up to 500",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/deals": {
   "get": {
    "summary": "Listings priced below the next listing of the same model",
    "description": "Units per request: 10. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "min_discount",
      "in": "query",
      "required": false,
      "description": "Percent, 1-90, default 10",
      "schema": {
       "type": "number"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/profile": {
   "get": {
    "summary": "A person's Telegram gifts by @username or ID with their value (up to 200 a day per key)",
    "description": "Units per request: 20. Available on Trial, Pro, Max and Stream.",
    "parameters": [
     {
      "name": "u",
      "in": "query",
      "required": true,
      "description": "@username or Telegram ID",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/spread": {
   "get": {
    "summary": "Cross-market floor spread per model",
    "description": "Units per request: 10. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/traits": {
   "get": {
    "summary": "Models, backdrops and symbols with rarity, floor and listed count",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/stats": {
   "get": {
    "summary": "Collection statistics: supply, owners, daily sales by market, top holders, top sales",
    "description": "Units per request: 2. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/holders": {
   "get": {
    "summary": "Collection holders: distribution by gifts held, top-10 and top-100 share, owners by day, top holders",
    "description": "Units per request: 2. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/crafts": {
   "get": {
    "summary": "Crafts and burns of a collection by UTC day with 7-day, 30-day and all-time totals",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/market/top": {
   "get": {
    "summary": "The market's most expensive sales over the last 24 hours (top sale of each collection on each market, up to 20)",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/market": {
   "get": {
    "summary": "The whole market: market cap and its lines, supply, listings and 24h sales by market, top sale, crafts and burns",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/market/daily": {
   "get": {
    "summary": "Market-wide sales and volume by day (30 days) and by month (since Jan 2025), per market",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/rankings": {
   "get": {
    "summary": "All collections ranked, with liquidity metrics (listed share, 30-day turnover, days of supply)",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "market_cap, volume_24h, volume_7d, volume_30d, sales_7d, floor_change_7d, floor_change_30d, listed_share, turnover_30d, days_of_supply, owners",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "order",
      "in": "query",
      "required": false,
      "description": "desc or asc",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/index": {
   "get": {
    "summary": "GiftSniper market index (market cap, 100 at the start), breadth and activity ratio",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/candles": {
   "get": {
    "summary": "Price candles from sales: sales, volume, median, low, high, open, close per step",
    "description": "Units per request: 5. Available on Trial, Pro, Max and Stream.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "range",
      "in": "query",
      "required": false,
      "description": "1d, 7d, 30d, 1y or all",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/floors/markets": {
   "get": {
    "summary": "Floor of every market over time with listed counts",
    "description": "Units per request: 2. Available on Trial, Pro, Max and Stream.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "period",
      "in": "query",
      "required": false,
      "description": "24h, 7d, 30d or all",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/volume/traits": {
   "get": {
    "summary": "Sales volume by model or backdrop for 7 or 30 days",
    "description": "Units per request: 20. Available on Trial, Pro, Max and Stream.",
    "parameters": [
     {
      "name": "coll",
      "in": "query",
      "required": true,
      "description": "Collection key from /collections, e.g. pepe",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "by",
      "in": "query",
      "required": false,
      "description": "model or backdrop",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "period",
      "in": "query",
      "required": false,
      "description": "7d or 30d",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/movers": {
   "get": {
    "summary": "Collections with the biggest floor gains and losses",
    "description": "Units per request: 1. Available on all plans.",
    "parameters": [
     {
      "name": "period",
      "in": "query",
      "required": false,
      "description": "7d or 30d",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  },
  "/webhooks": {
   "get": {
    "summary": "List webhooks",
    "description": "Units per request: 0. Available on Max and Stream.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   },
   "post": {
    "summary": "Create or change a webhook",
    "description": "Body: {url, types, colls, markets, models, backdrops, symbols, price_min, price_max}. Max: up to 50,000 events per UTC day.",
    "responses": {
     "200": {
      "description": "OK"
     },
     "201": {
      "description": "Created"
     }
    }
   },
   "delete": {
    "summary": "Delete a webhook",
    "parameters": [
     {
      "name": "id",
      "in": "query",
      "required": true,
      "description": "Webhook id",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK"
     }
    }
   }
  },
  "/stream": {
   "get": {
    "summary": "WebSocket event stream (wss://giftsniper.com/api/v1/stream): list, price_down, price_up, sale, unlist",
    "description": "Units per request: 0. Available on Stream.",
    "parameters": [],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid key"
     },
     "402": {
      "description": "Paid period ended"
     },
     "403": {
      "description": "Not in plan or key switched off"
     },
     "429": {
      "description": "Rate limit or no units left"
     },
     "503": {
      "description": "Busy, retry"
     }
    }
   }
  }
 }
}