{"openapi":"3.1.0","info":{"title":"Storag API","version":"1.0.0","description":"Product search over your own catalog. Send your API key as `Authorization: Bearer <key>` (or `X-API-Key`). Every key searches only its own project. Each key has a per-minute rate limit; over it the API answers 429. The limit is kept by each API instance on its own (two at most today), so a burst can pass up to twice it before the 429; plan for the stated limit. Each plan includes a number of queries a month, counted per project from the 1st (UTC); every search answer shows the count in the X-Storag-Quota-Limit, -Used and -Reset headers. Search never stops at your quota on a paid plan. Free and Trial searches over the quota skip the LLM judge until the 1st (meta.fallback \"quota\"); Starter and Scale searches past 2 times their quota skip it the same way. Trial is a plan we assign; it is not on the pricing page and has 2,000 queries a month.\n\nHow /search answers: a full-text search finds up to 120 candidates inside the query's price, stock and word limits, products that match by meaning are added, and an LLM judge keeps the ones that fit the query, best match first (meta.judged true). Price, stock and sort phrases in the query (\"under 150 EUR\", \"in stock\", \"cheapest\") are applied as filters and taken out of the text the judge reads; every limit of the query holds on judged and unjudged answers alike. If the judge is down, slow or over a limit, the search still answers and meta.fallback says why. /search/text is never judged. /api/v1/storag/health checks.judge says whether the judge is up.\n\nTry it without a key: the /api/v1/storag/demo/* routes search a fictional demo catalog with the same response shapes, and /api/v1/storag/demo/mcp (public URL https://mcp.storag.ai/demo/mcp) is the same as an MCP server. 30 requests a minute and 500 a day per IP.\n\nProduct search API for e-commerce, over your own catalog.\n\nConnect your Google Shopping feed (XML, CSV or TSV) by URL and search it through the REST API or the MCP server.\n\n**What search does:** `/search` takes full-text candidates from your catalog, adds products that match by\nmeaning, and an LLM judge keeps the ones that fit, best match first (`meta.judged: true`). Price, stock and sort\nphrases in the query (\"under 150 EUR\", \"in stock\", \"cheapest\") are applied as filters. `/search/text` is plain\nfull-text, never judged. What `total`, paging and `meta.fallback` mean on a judged answer:\n[How /search answers](/docs/api#description/how-search-answers).\n\n**Try it without a key:** the `/api/v1/storag/demo/*` routes search a fictional demo catalog with the same\nresponse shapes, and `https://mcp.storag.ai/demo/mcp` is the same as an MCP server.\n\n```bash\ncurl 'https://storag.ai/api/v1/storag/demo/search?q=waterproof+hiking+boots+under+150+in+stock&page_size=2&src=docs'\n```\n\n**Have a project key?** Your own catalog's MCP server is `https://mcp.storag.ai/mcp`, with your `pk_` key as a Bearer\ntoken: see **4. Connect your AI agent (MCP)** under Getting Started. The recipes below use the demo catalog.\n\n## Try it in your tool (no key)\n\nThe demo searches a fictional product catalog. You need no sign-up and no key. Each recipe ends with the first\nresult you should see. Prefer a browser? [Search the demo catalog on storag.ai](https://storag.ai/demo?src=docs).\n\n- Demo MCP server (Streamable HTTP): `https://mcp.storag.ai/demo/mcp`\n- Demo REST search: `https://storag.ai/api/v1/storag/demo/search`\n\n### curl\n\nSearch the demo catalog over REST:\n\n```bash\ncurl 'https://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs'\n```\n\nWith `jq`, print only rank, ID, title and price:\n\n```bash\ncurl -s 'https://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs' \\\n  | jq '.results[] | {rank, id: .product.id, title: .product.title, price: .product.price.amount}'\n```\n\nThe same search as one MCP tool call. The server is stateless, so you need no session first:\n\n```bash\ncurl -s -X POST 'https://mcp.storag.ai/demo/mcp' \\\n  -H 'Content-Type: application/json' \\\n  -H 'Accept: application/json, text/event-stream' \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"search_products\",\"arguments\":{\"q\":\"running shoes\",\"page_size\":3}}}'\n```\n\n**First result:** rank 1 is `DEMO-1986`, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, 65 EUR.\nThe MCP call returns the same JSON as text in `result.content[0].text`.\n\n### Claude Code\n\nAdd the server from the command line:\n\n```bash\nclaude mcp add --transport http storag-demo https://mcp.storag.ai/demo/mcp\nclaude mcp list\n```\n\n`claude mcp list` should show `storag-demo: https://mcp.storag.ai/demo/mcp (HTTP) - ✔ Connected`.\n\nOr put it in `.mcp.json` in your project folder, to share it with your team:\n\n```json\n{\n  \"mcpServers\": {\n    \"storag-demo\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.storag.ai/demo/mcp\"\n    }\n  }\n}\n```\n\nKeep `\"type\": \"http\"`. Without it, Claude Code skips the server. The first time you run `claude` in that\nfolder, it asks you to approve the server. Until you do, `claude mcp get storag-demo` shows `Pending approval`.\n\nThen ask Claude:\n\n```text\nUse the storag-demo search_products tool to find \"running shoes\". Reply with only the first result: id, title, price.\n```\n\n**First result:** `DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, €65`. The wording of\nthe reply can vary.\n\n### Claude Desktop and claude.ai\n\nIn Claude Desktop or on claude.ai, open Connectors (Claude Desktop: Settings > Connectors; claude.ai: https://claude.ai/customize/connectors), then Add, then Add custom connector. Name it `Storag demo`, set the URL to\n`https://mcp.storag.ai/demo/mcp`, click **Continue** and choose **No sign-in**. On the Free plan, Claude allows one custom\nconnector. Claude connects from Anthropic's cloud, so this works from any network.\n\nThen ask Claude:\n\n```text\nUse the Storag demo connector to find \"running shoes\". Reply with only the first result: id, title, price.\n```\n\n**First result:** `DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, €65`. The wording of\nthe reply can vary.\n\n### Cursor\n\nCreate `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` to use the server in every project:\n\n```json\n{\n  \"mcpServers\": {\n    \"storag-demo\": {\n      \"url\": \"https://mcp.storag.ai/demo/mcp\"\n    }\n  }\n}\n```\n\nOpen **Customize** in the sidebar and check that `storag-demo` is enabled and lists its tools. Then ask the\nAgent the same question as in the Claude Code recipe. By default, Cursor asks you to approve each tool call.\n\n**First result:** `DEMO-1986`, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, 65 EUR.\n\n### n8n\n\n**For an AI Agent:** add an **MCP Client Tool** node to the agent's Tool input, and set:\n\n- Endpoint: `https://mcp.storag.ai/demo/mcp`\n- Server Transport: **HTTP Streamable**\n- Authentication: **None**\n- Tools to Include: **All**\n\nThe demo has no SSE endpoint, so pick HTTP Streamable. An older MCP Client Tool node that has only an\n**SSE Endpoint** field cannot connect.\n\n**As a plain workflow step:** add an **MCP Client** node, and set:\n\n- Server Transport: **HTTP Streamable**\n- MCP Endpoint URL: `https://mcp.storag.ai/demo/mcp`\n- Authentication: **None**\n- Tool: `search_products`\n- Input Mode: **JSON**, with `{\"q\": \"running shoes\", \"page_size\": 3}`\n\n**Without MCP:** add an **HTTP Request** node with Method **GET** and this URL:\n\n```text\nhttps://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs\n```\n\n**First result:** `results[0].product.id` is `DEMO-1986`, Granite Owl Alder Waterproof Women's Trail Running Shoes,\nOlive, 65 EUR.\n\n## Getting Started\n\nGet up and running with Storag.ai in four steps. Want to try it first? Run the keyless demo curl above,\nno sign-up needed.\n\n### 1. Create a project and get your API key\n\n[Sign up for a free account](https://storag.ai/signup?src=docs) and create your first project in the [Storag.ai Dashboard](https://storag.ai/dashboard?src=docs).\nEach project has its own product catalog and API keys. Your API key (it starts with `pk_`) is made in the [API Keys](https://storag.ai/dashboard/api?src=docs) section. It is shown in full only once, when you create or regenerate it: copy it then. Storag keeps only a hash of it.\n\n### 2. Upload your products\n\nConnect your product catalog via a Google Shopping feed URL (XML, CSV or TSV) in the [Product Feed](https://storag.ai/dashboard/feed?src=docs) settings.\nWe import and index your products automatically, and keep them in sync with the feed.\n\n### 3. Make your first search\n\nSearch your own catalog with words that appear in your product titles or descriptions:\n\n```bash\ncurl 'https://storag.ai/api/v1/storag/search?q=trail+running+shoes' \\\n  --header 'Authorization: Bearer pk_your_api_key'\n```\n\nAn empty `results` list with `total: 0` means nothing in your catalog fits the query.\n\n### 4. Connect your AI agent (MCP)\n\nPoint Claude Code, Cursor or any MCP client at your own catalog with the same `pk_` key. Put this in\n`.mcp.json` in your project folder:\n\n```json\n{\n  \"mcpServers\": {\n    \"storag\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.storag.ai/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer ${STORAG_API_KEY}\"\n      }\n    }\n  }\n}\n```\n\nSet `STORAG_API_KEY` to your key in your environment, so the key is not committed. Or add it from the terminal:\n\n```bash\nclaude mcp add --transport http storag https://mcp.storag.ai/mcp \\\n  --header \"Authorization: Bearer pk_your_api_key\"\n```\n\nThe [API Keys](https://storag.ai/dashboard/api?src=docs) page shows both with your key filled in. Tools and\nclients: [MCP Server](/docs/mcp#description/mcp-server).\n\n### Empty answer or no catalogue\n\nAn empty `results` list means one thing only: your catalogue has no match for the query. A keyed search answer\nthat did not search your own products says so in the `catalogue` field and the `X-Storag-Catalogue` header.\nWithout them, your own imported products answered. The keyless demo never sends them.\n\n- `sample`: the 2,000-product sample catalogue a new project starts on, until your own import is live. These are\n  demo products, not your shop's, so never show them to shoppers as your stock.\n- `none`: the project has nothing to search yet (sample products off, no import live). The answer is `200` with\n  an empty page and a `notice` saying what to do next: add a feed, or turn on sample products. Check this field\n  before you tell a user \"no products found\".\n\nOver MCP a `none` answer is a tool error with the same next step, so an agent never reads it as \"nothing matched\".\n\n## Your first week\n\nYour dashboard's Overview has a card with three steps: import your catalogue, search it, connect your app or agent. This page covers the same three steps with the exact commands, what \"done\" looks like for each one, and what to do when a step fails.\n\nYour first week counts as live when your API key makes **100 searches on your own products, on at least 2 different days, within 7 days of sign-up**. Searches from the dashboard search box and the Playground do not count. Searches from your key on the sample catalogue do not count either.\n\nAll commands below use `$STORAG_API_KEY`. Set it once in your shell:\n\n```bash\nexport STORAG_API_KEY=\"<your key from Dashboard → API keys>\"\n```\n\n### Step 1: Import your catalogue\n\nThe import runs from the dashboard. There is no API route for it.\n\n1. Open **Overview**.\n2. Paste your feed URL in **Google Shopping feed URL**. It must be the full URL, starting with `https://` or `http://`.\n3. Click **Import feed**.\n\nOn the **Feed** page the same field is called **Feed URL** and the button **Save feed URL**. Saving starts the import,\nand **Sync now** imports again.\n\nNo feed at hand? Click **No feed at hand? Import our 2,000-product demo feed**. It imports `https://storag.ai/api/v1/storag/demo/feed.xml`, a fictional outdoor-gear catalogue.\n\n#### Before you import: check the feed from your terminal\n\nStorag fetches the feed from the public internet, so it has to work without a login or VPN:\n\n```bash\ncurl -sI \"https://your-store.com/feed.xml\"          # expect HTTP 200\ncurl -s \"https://your-store.com/feed.xml\" | head -c 400\n```\n\nThe first lines should be one of the formats Storag reads:\n\n- Google Merchant RSS or Atom (`<rss ... xmlns:g=\"http://base.google.com/ns/1.0\">` or `<feed>`)\n- Google Merchant CSV/TSV, with a header row that includes `id` and `title`\n- SHOP XML (SAIMON, Heureka, Zboží.cz), with a `<SHOP>` root element\n\nLimits: 200 MB per feed and 120 seconds to download it.\n\n#### While it runs\n\nThe card shows four stages, **Queued → Downloading the feed → Reading products → Searchable**, plus a count of the products read so far. The page checks the import every 3 seconds while the tab is open. You can leave the page and connect your agent (step 3) while you wait.\n\n#### Done looks like\n\nThe step turns green and shows **Catalogue imported**, e.g. `2,000 products from storag.ai/…/feed.xml · imported in 14 s`.\n\nTo confirm from your terminal, count your products:\n\n```bash\ncurl -s \"https://storag.ai/api/v1/storag/products?page_size=1\" \\\n  -H \"Authorization: Bearer $STORAG_API_KEY\" | jq .total\n```\n\n```\n2000\n```\n\nIf the answer has `\"catalogue\": \"sample\"`, your key is still searching the sample catalogue and your own import is not live yet.\n\n#### When the import fails\n\nThe card shows **Import failed.** with one of these reasons. Fix the cause, then click **Import again** (on the\n**Feed** page: **Sync now**).\n\n| Message on the card | What to do |\n|---|---|\n| Enter the full feed URL, starting with https:// or http:// | Paste the whole URL, including `https://` or `http://`. |\n| The feed URL was not found (HTTP 404 or 410). | The URL is wrong or the file moved. Open it in a private browser window and copy the URL from the address bar. |\n| The feed URL refused access (HTTP 401 or 403). | The feed is behind a login, an IP allowlist or a token that expired. Make it publicly readable. |\n| The feed host name could not be resolved. | There is a typo in the domain, or the domain only exists on your internal network. |\n| The feed URL points to a private network address, which is not allowed. | `localhost`, `10.x`, `192.168.x` and other internal addresses are refused. Publish the feed on a public host. |\n| The file is not a Google Merchant (RSS or Atom) product feed. | The URL returns an HTML page, a ZIP file or another XML format. Check the first lines with the `curl` above. A compressed feed has to be served plain or with `Content-Encoding: gzip`. |\n| The feed holds no products. | The file is valid but has no items. Check your shop's feed export settings. |\n| The feed is larger than the allowed size. | The feed is over 200 MB or 5,000,000 items. Export only the products you sell. |\n| The feed server was unavailable or rate limited. The import is retried. | Nothing to do. Storag retries after 5 minutes and again after 30 minutes. It marks the import failed after the third attempt. |\n| Imports were paused after repeated failures. Fix the feed and sync again. | Fix the cause shown by the earlier failures, then click **Import again**. |\n\n**Import again does nothing, or says to try later?** A manual import can be started once every 15 minutes and 24 times a day. While an import is queued or running, a second click returns that same import.\n\n### Step 2: Search your catalogue\n\nOnce your products are searchable, the card opens a search box filled with a first query. Type a query the way a shopper would, e.g. `waterproof hiking boots under 150`, and click **Search**.\n\nThis box searches with your dashboard login, not your key, so it does not count toward the 100. It shows the same results your agent will get.\n\n#### Done looks like\n\nThree product cards with titles and prices, and a line such as `23 matches · 16 ms · your catalogue`. **Open in Playground →** opens the same query with more results.\n\n#### When there are no results\n\n| What you see | What to do |\n|---|---|\n| No products match \"…\". Try words from your product titles: | Click one of the suggested chips. Those words come from your own catalogue, so they should return results. Query in the language your product titles are written in. |\n| Opens when your products are searchable. | The import has not finished. Go back to step 1. |\n| The search did not answer. Try again in a moment. | Try again. If it keeps failing, ask us in chat. |\n\n### Step 3: Connect your app or agent\n\nPick one way to connect. Searches from your key count toward the 100 from here on. The card has a tab for each option with your key already filled in; **Copy** puts the full key on your clipboard.\n\n#### Claude Code\n\n```bash\nclaude mcp add --transport http storag https://mcp.storag.ai/mcp \\\n  --header \"Authorization: Bearer $STORAG_API_KEY\"\n```\n\nThe dashboard names the server after your project (`storag-<project-name>`), so two projects can be connected side by side.\n\n#### .mcp.json (Claude Code, Cursor or any MCP client)\n\n```json\n{\n  \"mcpServers\": {\n    \"storag\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.storag.ai/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer <your key>\"\n      }\n    }\n  }\n}\n```\n\nThe server offers four tools: `search_products`, `text_search_products`, `list_products` and `get_product`. Ask your agent a shopping question, e.g. \"find waterproof hiking boots under 150\".\n\n#### curl\n\n```bash\ncurl \"https://storag.ai/api/v1/storag/search?q=waterproof+hiking+boots+under+150&page_size=3\" \\\n  -H \"Authorization: Bearer $STORAG_API_KEY\"\n```\n\n#### Done looks like\n\nThe REST answer is HTTP 200 with your products under `results[].product`:\n\n```json\n{\n  \"query\": \"waterproof hiking boots under 150\",\n  \"results\": [\n    { \"product\": { \"id\": \"DEMO-1937\", \"title\": \"Larchline Waterproof Men's Hiking Boots, Black\",\n                   \"price\": { \"amount\": 108.49, \"currency\": \"EUR\" }, \"...\": \"...\" }, \"rank\": \"...\" }\n  ],\n  \"total\": 23, \"page\": 1, \"pageSize\": 3, \"processingTime\": 16\n}\n```\n\nOver MCP, `search_products` returns the same JSON as text.\n\nBack on the dashboard, step 3 turns green: **App or agent connected** and `Your key has answered N searches.` The page updates itself; you do not need to reload.\n\nTo see the count yourself:\n\n```bash\ncurl -s \"https://storag.ai/api/v1/storag/usage\" \\\n  -H \"Authorization: Bearer $STORAG_API_KEY\" | jq .total.search\n```\n\n```json\n{ \"calls\": 136, \"ok\": 135, \"errors\": 1, \"noCatalogue\": 0 }\n```\n\n#### When it fails\n\n| What you get | What to do |\n|---|---|\n| `401` `Missing API key: send Authorization: Bearer <key>` | Add the header exactly as `Authorization: Bearer <key>`. |\n| `401` `Invalid API key` | The key was mistyped, cut short or revoked. Copy it again from the card or Dashboard → API keys. |\n| MCP tool error `Invalid Storag API key: storag-api refused the key sent as 'Authorization: Bearer <key>'` on the first search | Same cause, in the `Authorization` header of your MCP config. The client still connects and lists the tools; the key is checked at the first tool call. Fix it and restart your MCP client. |\n| `403` `This API key is not allowed from this origin` | The key has allowed domains and the request came from another origin. Add that domain to the key, or call from your server or terminal. |\n| `429` `Rate limit of N requests per minute exceeded` | Slow down. The `X-RateLimit-Limit` and `X-RateLimit-Remaining` headers show your limit. |\n| `429` `quota_exceeded` | The project used its plan's monthly searches several times over. The message gives the reset date and the upgrade link. |\n| `200` with `\"catalogue\": \"none\"` and `notice.code` `no_catalogue` | Your project has no catalogue yet, so nothing was searched. Finish step 1. |\n| `200` with `\"catalogue\": \"sample\"` | Your key searches the 2,000-product sample catalogue until your own import is live. These searches do not count toward the 100. |\n| `200` with `\"total\": 0` | Nothing matched. Try words from your product titles, as in step 2. |\n\n### After the first week\n\nWhen your key reaches 100 searches on 2 days, the card switches to **You're live** and links to **Usage**. If the 7 days pass first, the card offers a chat with us and the Claude Code command again.\n\n## Authentication\n\nAll API requests need your project's API key (it starts with `pk_`). Send it in the `Authorization` header:\n\n```\nAuthorization: Bearer pk_your_api_key\n```\n\n`X-API-Key: pk_your_api_key` also works. The same key works for the REST API and the MCP server.\nGet your API key from the [Storag.ai Dashboard](https://storag.ai/dashboard?src=docs).\n\n> **Important:** Keep your API key secure and never expose it in client-side code.\n\n## Rate limits and quotas\n\nEach key has a per-minute rate limit, shown in the `X-RateLimit-*` headers; over it the API answers `429`.\n\nEach plan includes a number of queries a month, counted per project from the 1st (UTC). Every `/search` and\n`/search/text` answer shows the count in the `X-Storag-Quota-Limit`, `X-Storag-Quota-Used` and\n`X-Storag-Quota-Reset` headers; other routes do not send them. Search never stops at your quota on a paid plan.\nFree searches over the quota, and Starter and Scale searches past 2 times it, skip the LLM judge until\nthe 1st (`meta.fallback: \"quota\"`): full results, unjudged.\n\n## Search parameters\n\n`GET /search`, `GET /search/text` and the demo search routes take the same query parameters, and so do the\nMCP tools `search_products` and `text_search_products`:\n\n- `q` (required, 1 to 200 characters): the query in shopper language. Phrases such as \"under 150\", \"in stock\" and \"cheapest\" become filters and sort.\n- `page` (from 1, default 1) and `page_size` (1 to 100, default 20). Aliases: `pageSize`, `limit`. A number above the cap (100 for both with a key, page 10 and page size 20 on the demo) is capped, never rejected: the answer's `page` and `pageSize` say what was used. Below 1 or not a whole number is 400.\n- `min_price`, `max_price` (numbers). Aliases: `minPrice`, `maxPrice`.\n- `availability`: `in stock` returns only products in stock; `any` applies no stock filter, even when `q` says \"in stock\". Leave it out to let `q` decide. Any other value (for example `out of stock`) is 400.\n- `sort`: `relevance` (default), `price_asc` (cheapest first), `price_desc` (dearest first).\n\n## How /search answers\n\n`/search`, `/demo/search` and the MCP tool `search_products` answer in two steps. A full-text search finds\nup to 120 candidates inside the query's price, stock and word limits; the search route adds products that match by\nmeaning, and an LLM judge keeps the ones that fit the query, best match first. `meta.judged: true` says the judge\nranked the answer. If the judge is down, slow or over a limit, the search still answers and `meta.fallback` says\nwhy. `/search/text` is never judged.\n\n### What the judge reads\n\nPrice, stock and sort phrases in `q` (\"under 50 EUR\", \"in stock\", \"cheapest\") are taken out of the text the judge\nreads and applied as filters instead: the product facts the judge sees carry no price or stock, so it cannot check\nthem. Every price, stock and size limit of the query holds on judged and unjudged answers alike. A size (\"size 42\")\nstays in the judge's text, as product facts name it. A query that names one product exactly (its ID or EAN) is\nanswered from full-text at once, never judged.\n\n### What `total` means\n\nThe judge answers at most page × page_size products (at least 20 when `q` names a size, or a price in a currency),\nand never more than 100.\n\n| Answer | `total` |\n|---|---|\n| Judged, and the judge kept fewer products than it was asked for | Exactly the products kept, inside every limit of the query. A `total` under `page_size` is exactly the results shown. |\n| Judged, and the judge kept as many as it was asked for | The full-text match count (more may fit), at most 100. |\n| Not judged (`meta.judged: false`) | The full-text match count; a lower bound when `meta.timedOut` is true. |\n\n### Paging judged results\n\nA judged answer holds at most 100 products: a `/search` page past the 100th product comes back empty. Each page is\njudged again for the larger window, so `total` can change from page to page, for example from the full-text count\non page 1 to the exact kept count on page 3. Page until a page returns fewer results than `page_size`, not by\n`total` alone. To walk every keyword match, use `/search/text`.\n\n### Price sorts\n\n`sort=price_asc` or `price_desc` (or \"cheapest\" / \"most expensive\" in `q`) is judged like any search, so a\nloose match does not lead a cheapest-first list. The judge keeps the products that fit, and those come back in price\norder: cheapest or dearest first, in stock or not (filter stock with `availability`), products without a price last.\nA judged price sort covers at most the 100 products the judge kept, and `total` is as in the table above. When the\njudge is skipped (`judge=false`, a ceiling, or the judge could not answer), you get every full-text match in price\norder with `meta.judged: false`, and `meta.fallback` says why (`null` for `judge=false`).\n\n### `meta.fallback`: why an answer is not judged\n\n| `fallback` | Why | What you get |\n|---|---|---|\n| `null` | Judged, or you sent `judge=false` or a query naming one product | The judged results, or unjudged ones when `meta.judged` is false |\n| `text` | The search route was unreachable, failed or took over 2 s | Full-text results |\n| `busy` | The search route was at its capacity | Full-text results |\n| `timeout` | The judge's 1.5 s deadline passed | What it had not judged comes back unjudged, `complete: false` |\n| `budget` | A judge spend ceiling was reached | Unjudged candidates (full-text results on the demo) |\n| `quota` | A Free project at or over its monthly quota, or a Starter or Scale project past 2 times it | Unjudged candidates until the 1st (UTC) |\n| `no-language` | The search had no language, so nothing was judged | Unjudged candidates |\n| `error` | The judge could not run | Unjudged candidates |\n| `relaxed`, `partial` | Few or no products matched every word: most of the words, or only the most specific one | Full-text's relaxed match, `complete: false` |\n\n`meta.complete: false` also means not every candidate was judged in time. `meta.alternatives: true` means\nnothing fitted and these are the closest products.\n\n### Time and cost\n\n- Judging adds time; past the 1.5 s deadline you get what was judged so far (`fallback: \"timeout\"`), not a slower answer.\n- Each project has a daily number of judged searches set by its plan; past it, searches answer unjudged with\n  `fallback: \"budget\"` until the next UTC day. Unpaid projects also share a free daily ceiling.\n- A judged price sort judges the whole first batch of candidates, not only the first page, so it takes longer and\n  uses more judge work than a relevance page of 20 results or fewer.\n- `judge=false` skips the judge: no judge time, and the search does not count towards the judge ceilings.\n- Every search counts as one query on your plan, judged or not.\n\n## Errors\n\n- 400 bad parameter, 401 no or wrong key, 403 no access, 404 not found, 429 over the key's per-minute rate limit (or the demo's 30 a minute / 500 a day per IP), 502 search backend unavailable. Error bodies are JSON.\n\nOver the rate limit, wait for the `Retry-After` header before you call again.\n\n## Plans\n\nPricing (USD per month; yearly billing price, monthly billing price in brackets):\n\n- Free: $0, 5,000 queries a month, up to 5,000 products, no credit card\n- Starter: $39 ($49), 10,000 queries a month, up to 10,000 products\n- Grow: $99 ($149), 20,000 queries a month, up to 20,000 products\n- Pro: $219 ($299), 50,000 queries a month, up to 30,000 products\n- Scale: $359 ($499), 100,000 queries a month, up to 50,000 products\n- Enterprise: custom price, unlimited queries and products, dedicated support & SLA; contact us\n- Prices exclude VAT. CZ: +21 % VAT. EU businesses: reverse charge with a valid VAT ID. Outside the EU: no VAT.\n- One search is one query. If a feed has more products than the plan allows, the first ones in feed order are indexed.\n- Paid plans are bought in the dashboard after sign-up (Stripe checkout). Full table: https://storag.ai/pricing\n\n## MCP Server\n\nConnect any AI agent to your product catalog using the [Model Context Protocol](https://modelcontextprotocol.io).\n\n### Connect your client\n\nYour key works in the hosts that send it as an `Authorization: Bearer` header: Claude Code, Cursor, Windsurf,\nVS Code and n8n. Copy the config for yours. Each config file adds two servers: `storag` searches your catalog with\nyour `pk_` key, and `storag-demo` searches the demo catalog without a key. The key is read from `STORAG_API_KEY` in\nyour environment (VS Code asks for it), so it is never written into the file.\n\n**Claude Code**: Terminal; `export STORAG_API_KEY=pk_...` first.\n\n```bash\nclaude mcp add --transport http storag https://mcp.storag.ai/mcp --header \"Authorization: Bearer $STORAG_API_KEY\"\nclaude mcp add --transport http storag-demo https://mcp.storag.ai/demo/mcp\n```\n\n**Cursor**: `~/.cursor/mcp.json` or `.cursor/mcp.json`; reads `STORAG_API_KEY` from your env.\n\n```json\n{\n  \"mcpServers\": {\n    \"storag\": {\n      \"url\": \"https://mcp.storag.ai/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer ${env:STORAG_API_KEY}\"\n      }\n    },\n    \"storag-demo\": {\n      \"url\": \"https://mcp.storag.ai/demo/mcp\"\n    }\n  }\n}\n```\n\n**Windsurf**: `~/.codeium/windsurf/mcp_config.json`; reads `STORAG_API_KEY` from your env.\n\n```json\n{\n  \"mcpServers\": {\n    \"storag\": {\n      \"serverUrl\": \"https://mcp.storag.ai/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer ${env:STORAG_API_KEY}\"\n      }\n    },\n    \"storag-demo\": {\n      \"serverUrl\": \"https://mcp.storag.ai/demo/mcp\"\n    }\n  }\n}\n```\n\n**VS Code**: `.vscode/mcp.json`; asks for the key once and stores it as a secret.\n\n```json\n{\n  \"inputs\": [\n    {\n      \"type\": \"promptString\",\n      \"id\": \"storag-api-key\",\n      \"description\": \"Storag API key (pk_...)\",\n      \"password\": true\n    }\n  ],\n  \"servers\": {\n    \"storag\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.storag.ai/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer ${input:storag-api-key}\"\n      }\n    },\n    \"storag-demo\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.storag.ai/demo/mcp\"\n    }\n  }\n}\n```\n\n**n8n**: MCP Client Tool node (for an AI Agent) or MCP Client node; there is no SSE endpoint.\n\n```text\nEndpoint: https://mcp.storag.ai/mcp\nServer Transport: HTTP Streamable\nAuthentication: Bearer Auth\nBearer Token: your pk_ API key\n```\n\n`claude mcp list` shows `✔ Connected` even with a wrong key: connecting and listing the tools do not check it.\nYour first tool call does. With a wrong key it fails with the tool error\n`Invalid Storag API key: storag-api refused the key sent as 'Authorization: Bearer <key>'`\nand tells you to copy your key from the dashboard. With no key it answers `No Storag API key: send it as 'Authorization: Bearer <key>'`.\n\n`https://mcp.storag.ai/mcp` keeps a session. Claude Code, Cursor and other MCP clients handle it for you. With plain `curl`,\nsend `initialize` first, then the `Mcp-Session-Id` header it answers with on every later call. A `tools/call`\nwithout it gets `400 Bad Request: Missing session ID`.\n\nPrefer a project file in Claude Code? Put this in `.mcp.json`; Claude Code fills `${STORAG_API_KEY}` from your\nenvironment and asks you to approve the server the first time you run `claude` in that folder:\n\n```json\n{\n  \"mcpServers\": {\n    \"storag\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.storag.ai/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer ${STORAG_API_KEY}\"\n      }\n    }\n  }\n}\n```\n\nNo key yet? `https://mcp.storag.ai/demo/mcp` (the `storag-demo` entry above) has the same tools over the demo catalog, without a key and without a session.\n\n### claude.ai, Claude Desktop and ChatGPT\n\nTheir connectors sign in with OAuth, which the Storag MCP server does not offer yet, so they cannot use your key.\nTo try the four tools on the demo catalog there, add `https://mcp.storag.ai/demo/mcp` as a custom connector with no sign-in\n([steps for Claude](/docs/quickstart#description/claude-desktop-and-claudeai)). For your own catalog, use one of the\nhosts above.\n\n### Available tools\n\n| Tool | Description | Arguments |\n|------|-------------|-----------|\n| `search_products` | Product search, best match first: full-text candidates judged for fit by an LLM, the same `total`, paging and `meta` as `/search` ([How /search answers](/docs/api#description/how-search-answers)). Price, stock and sort phrases in the query work as filters. | `q` (required), `page`, `page_size`, `min_price`, `max_price`, `availability` (\"in stock\" or \"any\"; any other value is an error), `sort` (`relevance`, `price_asc`, `price_desc`) |\n| `text_search_products` | Keyword search for exact terms such as a brand, product type or ID. Never judged. | Same as `search_products` |\n| `list_products` | List indexed products with pagination. | `page`, `page_size`, `search` (title, ID or brand) |\n| `get_product` | Get a single product by ID with full details. | `product_id` (required) |\n\nThe search query argument is `q`, not `query`. Example call: `{\"q\": \"trail running shoes\", \"max_price\": 80}`.\n\n### Compatible clients\n\nThe MCP server uses Streamable HTTP transport and works with:\n\n- **Claude Code**: `claude mcp add --transport http` or a `.mcp.json` project config with `\"type\": \"http\"`\n- **claude.ai, Claude Desktop and ChatGPT**: the keyless demo only, as a custom connector (they sign in with OAuth); Claude Desktop reaches your catalog only through the `mcp-remote` bridge below\n- **Cursor**: `.cursor/mcp.json` (or `~/.cursor/mcp.json`) with the server's `url`\n- **Windsurf**: `~/.codeium/windsurf/mcp_config.json` with the server's `serverUrl`\n- **VS Code**: `.vscode/mcp.json` with `\"type\": \"http\"` under `servers`\n- **n8n**: MCP Client Tool node (for an AI Agent) or MCP Client node, transport HTTP Streamable; there is no SSE endpoint\n- **Custom agents**: Any client supporting the [MCP specification](https://modelcontextprotocol.io)\n\nAuthentication uses the same API key as the REST API. Rate limits and quotas match your plan.\nThe keyless recipes for each client are in [Try it in your tool (no key)](/docs/quickstart#description/try-it-in-your-tool-no-key).\n\n### Claude Desktop with your key, through a bridge\n\nClaude Desktop can run your keyed server as a local command through the `mcp-remote` bridge (needs Node.js 18 or\nnewer). Put this in `claude_desktop_config.json` (Settings > Developer > Edit Config) and restart Claude Desktop:\n\n```json\n{\n  \"mcpServers\": {\n    \"storag\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.storag.ai/mcp\",\n        \"--header\",\n        \"Authorization:${AUTH_HEADER}\"\n      ],\n      \"env\": {\n        \"AUTH_HEADER\": \"Bearer pk_your_api_key\"\n      }\n    }\n  }\n}\n```\n\n### Setting it up from an agent\n\nAn AI agent can run the demo alone, but sign-up, the key and the feed are dashboard steps. [/docs/agents](https://storag.ai/docs/agents?src=docs) gives the agent the words to hand those steps to its user, and how to check each one."},"servers":[{"url":"https://storag.ai","description":"Production"}],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"paths":{"/api/v1/storag/search":{"get":{"operationId":"search_products","summary":"Search, judged by an LLM (see meta.judged)","description":"The top full-text candidates (up to 120, inside every price, stock and word limit of the query), with the products that match by meaning, are judged against the query by an LLM; the ones it keeps come back best match first, with meta.judged true. A judged answer holds at most 100 products: a page past the 100th comes back empty, and total can change from page to page, so page until a page returns fewer results than page_size. A price sort (sort price_asc or price_desc, or \"cheapest\" in q) is judged too: the kept products come back in price order, products without a price last. judge=false skips the judge: every full-text match (in price order on a price sort), meta.judged false and meta.fallback null. When the judge cannot answer (search route down or busy, the 1.5 s judge deadline, a spend ceiling, the quota, no language, an error) the search still answers and meta.fallback says why; \"relaxed\" or \"partial\" when few or no products matched every word. A query that names one product exactly (its ID or EAN) is answered from full-text, never judged.","parameters":[{"name":"q","in":"query","required":true,"description":"Search query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 100; a larger number is capped to 100, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 100; a larger number is capped to 100, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"min_price","in":"query","required":false,"description":"Minimum price filter","schema":{"type":"number","minimum":0}},{"name":"minPrice","in":"query","required":false,"description":"Alias of min_price","schema":{"type":"number","minimum":0}},{"name":"max_price","in":"query","required":false,"description":"Maximum price filter","schema":{"type":"number","minimum":0}},{"name":"maxPrice","in":"query","required":false,"description":"Alias of max_price","schema":{"type":"number","minimum":0}},{"name":"availability","in":"query","required":false,"description":"Availability filter: \"in stock\" (also in_stock) returns only products in stock; \"any\" (also all) filters nothing, even when q says \"in stock\". Left out, words in q decide. Any other value (e.g. \"out of stock\") is 400","schema":{"type":"string","enum":["in stock","any"]}},{"name":"sort","in":"query","required":false,"description":"relevance, or every match by price (price_asc cheapest first, price_desc dearest first). Without it, a query that says \"cheapest\" or \"most expensive\" sorts by price; price and stock phrases in q (\"under 150 EUR\", \"in stock\") fill min_price, max_price and availability when those are not sent","schema":{"type":"string","enum":["relevance","price_asc","price_desc"],"default":"relevance"}},{"name":"judge","in":"query","required":false,"description":"false skips the LLM judge: the full-text results, meta.judged false and meta.fallback null (unless relaxed or partial); no judge time, and the search does not count towards the judge ceilings","schema":{"type":"boolean","default":true}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): stored with the call's usage and counted in /usage bySrc, never changes the answer or what is billed; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["console-first-call"]}}],"responses":{"200":{"description":"Matching products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"headers":{"X-Storag-Quota-Limit":{"description":"Your plan's queries a month; absent on Enterprise (no monthly quota)","schema":{"type":"integer"}},"X-Storag-Quota-Used":{"description":"Your project's answered searches this calendar month (UTC) before this one, all keys together. It never goes down within the month; a search answered a moment earlier may not be counted yet","schema":{"type":"integer"}},"X-Storag-Quota-Reset":{"description":"When the count starts again: 00:00 UTC on the 1st of next month","schema":{"type":"string","format":"date-time"}},"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}},"X-Storag-Catalogue":{"description":"\"sample\" while your project searches the 2,000-product sample catalogue; \"none\" when it has no catalogue yet (sample products off and no import of your feed live): the results are then empty because nothing was searched, not because nothing matched (the body says the same in catalogue and notice). Absent on your own catalogue.","schema":{"type":"string","enum":["sample","none"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/SearchLimited"},"502":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/search/text":{"get":{"operationId":"text_search_products","summary":"Full-text search","description":"Keyword (full-text) search, never judged; use it to walk every keyword match. A query of two or more words that matches nothing strictly is run again relaxed (most of its words, then its most specific word); one that matches fewer than 5 products strictly is topped up with products that have most of its words and every word with a digit, the strict matches first. Only then the answer carries meta, with fallback \"relaxed\" or \"partial\" and complete false, or when the search stopped at its time cap: meta.timedOut true and the X-Storag-Timed-Out header.","parameters":[{"name":"q","in":"query","required":true,"description":"Search query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 100; a larger number is capped to 100, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 100; a larger number is capped to 100, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"min_price","in":"query","required":false,"description":"Minimum price filter","schema":{"type":"number","minimum":0}},{"name":"minPrice","in":"query","required":false,"description":"Alias of min_price","schema":{"type":"number","minimum":0}},{"name":"max_price","in":"query","required":false,"description":"Maximum price filter","schema":{"type":"number","minimum":0}},{"name":"maxPrice","in":"query","required":false,"description":"Alias of max_price","schema":{"type":"number","minimum":0}},{"name":"availability","in":"query","required":false,"description":"Availability filter: \"in stock\" (also in_stock) returns only products in stock; \"any\" (also all) filters nothing, even when q says \"in stock\". Left out, words in q decide. Any other value (e.g. \"out of stock\") is 400","schema":{"type":"string","enum":["in stock","any"]}},{"name":"sort","in":"query","required":false,"description":"relevance, or every match by price (price_asc cheapest first, price_desc dearest first). Without it, a query that says \"cheapest\" or \"most expensive\" sorts by price; price and stock phrases in q (\"under 150 EUR\", \"in stock\") fill min_price, max_price and availability when those are not sent","schema":{"type":"string","enum":["relevance","price_asc","price_desc"],"default":"relevance"}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): stored with the call's usage and counted in /usage bySrc, never changes the answer or what is billed; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["console-first-call"]}}],"responses":{"200":{"description":"Matching products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"headers":{"X-Storag-Quota-Limit":{"description":"Your plan's queries a month; absent on Enterprise (no monthly quota)","schema":{"type":"integer"}},"X-Storag-Quota-Used":{"description":"Your project's answered searches this calendar month (UTC) before this one, all keys together. It never goes down within the month; a search answered a moment earlier may not be counted yet","schema":{"type":"integer"}},"X-Storag-Quota-Reset":{"description":"When the count starts again: 00:00 UTC on the 1st of next month","schema":{"type":"string","format":"date-time"}},"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}},"X-Storag-Catalogue":{"description":"\"sample\" while your project searches the 2,000-product sample catalogue; \"none\" when it has no catalogue yet (sample products off and no import of your feed live): the results are then empty because nothing was searched, not because nothing matched (the body says the same in catalogue and notice). Absent on your own catalogue.","schema":{"type":"string","enum":["sample","none"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/SearchLimited"},"502":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/products":{"get":{"operationId":"list_products","summary":"List products","description":"All indexed products, page by page, optionally filtered by title, ID or brand. A project with no catalogue yet (sample products off, no import of its feed live) answers 200 with total 0, no products, catalogue \"none\", a notice and X-Storag-Catalogue: none; an empty list without them means nothing matched.","parameters":[{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 100; a larger number is capped to 100, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 100; a larger number is capped to 100, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"search","in":"query","required":false,"description":"Filter by title, ID, or brand","schema":{"type":"string","maxLength":200}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): stored with the call's usage and counted in /usage bySrc, never changes the answer or what is billed; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["console-first-call"]}}],"responses":{"200":{"description":"One page of products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}},"headers":{"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}},"X-Storag-Catalogue":{"description":"\"sample\" while your project searches the 2,000-product sample catalogue; \"none\" when it has no catalogue yet (sample products off and no import of your feed live): the results are then empty because nothing was searched, not because nothing matched (the body says the same in catalogue and notice). Absent on your own catalogue.","schema":{"type":"string","enum":["sample","none"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/products/{product_id}":{"get":{"operationId":"get_product","summary":"Get a product","description":"One product of your catalogue by its ID; an unknown ID is 404. A project with no catalogue yet is 404 too, with the notice's message, catalogue \"none\", the notice and X-Storag-Catalogue: none.","parameters":[{"name":"product_id","in":"path","required":true,"description":"Product ID","schema":{"type":"string"}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): stored with the call's usage and counted in /usage bySrc, never changes the answer or what is billed; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["console-first-call"]}}],"responses":{"200":{"description":"The product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"description":"No such product, or (catalogue \"none\") no catalogue yet","headers":{"X-Storag-Catalogue":{"description":"\"sample\" while your project searches the 2,000-product sample catalogue; \"none\" when it has no catalogue yet (sample products off and no import of your feed live): the results are then empty because nothing was searched, not because nothing matched (the body says the same in catalogue and notice). Absent on your own catalogue.","schema":{"type":"string","enum":["sample","none"]}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"catalogue":{"type":"string","enum":["none"]},"notice":{"type":"object","description":"Present only with catalogue \"none\": the next step.","required":["code","message","docs"],"properties":{"code":{"type":"string","enum":["no_catalogue"]},"message":{"type":"string"},"docs":{"type":"string","format":"uri"}}}}}]}}}},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/usage":{"get":{"operationId":"usage","summary":"Your key's usage","description":"Calls made with the calling key over the last 30 UTC days, today included, per day and per route, each split into ok (below 400) and errors (400 or above), and per src tag the calls carried (bySrc). Only the calling key's own calls; reading it is not counted as a call. Refreshed at most once a minute. `products` is your plan's product limit against the products in your live catalog.","responses":{"200":{"description":"Calls per day and route, and the product limit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}}},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/feeds/status":{"get":{"operationId":"feed_status","summary":"Your project's feed status","description":"Your project's feed URL, its newest import job and whether a sync is queued or running. feedUrl is left out until a feed URL is saved in the dashboard, latestJob until the first import job; the job list is feeds/jobs. Not counted as a call. Signed in with the storag.ai session token (Authorization: Bearer <session token>, plus X-Storag-Project when you have several projects); an API key still works here for one release, acting on the key's project.","security":[{"sessionAuth":[]},{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}}],"responses":{"200":{"description":"Feed status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedStatus"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/feeds/jobs":{"get":{"operationId":"feed_jobs","summary":"Your project's import jobs","description":"Your project's feed import jobs, newest first. Not counted as a call. Signed in with the storag.ai session token (Authorization: Bearer <session token>, plus X-Storag-Project when you have several projects); an API key still works here for one release, acting on the key's project.","security":[{"sessionAuth":[]},{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"Page number, from 1","schema":{"type":"integer","minimum":1,"maximum":1000,"default":1}},{"name":"pageSize","in":"query","required":false,"description":"Jobs per page (max 100)","schema":{"type":"integer","minimum":1,"maximum":100,"default":10}},{"name":"page_size","in":"query","required":false,"description":"Alias of pageSize","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"One page of jobs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedJobsResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/feeds/jobs/{job_id}":{"get":{"operationId":"feed_job","summary":"Get an import job","description":"One of your project's import jobs; any other id is 404. Not counted as a call. Signed in with the storag.ai session token (Authorization: Bearer <session token>, plus X-Storag-Project when you have several projects); an API key still works here for one release, acting on the key's project.","security":[{"sessionAuth":[]},{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"description":"Job ID","schema":{"type":"string"}},{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}}],"responses":{"200":{"description":"The job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedJob"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/feeds/trigger":{"post":{"operationId":"feed_trigger","summary":"Sync your feed now","description":"Queues an import of your project's feed. A project has at most one queued or running import: while one is waiting or running, the call answers that job with status already_queued or running. 409 when the project has no feed URL, is not set up for imports yet, or its imports are paused. 429 with Retry-After when a sync was started in the last 15 minutes or 24 times in the last 24 hours (or over the rate limit). Body {\"reason\":\"feed_saved\"}, sent right after the feed URL is saved, queues a project's first import without that limit (trigger feed_added); with jobs already, or with no body, it is a manual sync. Not counted as a call. Signed in with the storag.ai session token (Authorization: Bearer <session token>, plus X-Storag-Project when you have several projects); an API key still works here for one release, acting on the key's project.","security":[{"sessionAuth":[]},{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","enum":["feed_saved"],"description":"feed_saved: the feed URL was just saved; any other value or none is a manual sync"}}}}}},"responses":{"200":{"description":"The queued, waiting or running job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedTriggerResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"409":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/products":{"get":{"operationId":"dashboard_list_products","summary":"List products, signed in","description":"The storag.ai console's /products: the same page of products, without the console reading an API key. Not counted as a call. Signed in with the storag.ai session token (Authorization: Bearer <session token>, plus X-Storag-Project when you have several projects); an API key still works here for one release, acting on the key's project.","security":[{"sessionAuth":[]},{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 100; a larger number is capped to 100, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 100; a larger number is capped to 100, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"search","in":"query","required":false,"description":"Filter by title, ID, or brand","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"One page of products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/search/suggestions":{"get":{"operationId":"search_suggestions","summary":"Sample queries for your catalog","description":"Up to count sample queries from your project's own catalog: its most frequent categories, then its top brands. Empty while no catalog is indexed. Not counted as a call. Signed in with the storag.ai session token (Authorization: Bearer <session token>, plus X-Storag-Project when you have several projects); an API key still works here for one release, acting on the key's project.","security":[{"sessionAuth":[]},{"bearerAuth":[]},{"apiKeyHeader":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}},{"name":"count","in":"query","required":false,"description":"How many (max 10)","schema":{"type":"integer","minimum":1,"maximum":10,"default":5}}],"responses":{"200":{"description":"Sample queries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionsResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/usage":{"get":{"operationId":"dashboard_usage","summary":"Your project's queries, signed in","description":"Your project's answered searches this calendar month (UTC) and the time of its first answered search ever, every key of the project together: one query is a /search or /search/text call answered 2xx, the rule plan usage counts by; playground searches are not included. Signed in with the storag.ai session token (Authorization: Bearer <session token>), so no API key is needed. X-Storag-Project names one of your projects (needed when you have several); another user's project is 404. API keys are not accepted here: use /usage. Not counted as a call.","security":[{"sessionAuth":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}}],"responses":{"200":{"description":"This month's queries","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardUsageResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/activation":{"get":{"operationId":"dashboard_activation","summary":"Your first week, signed in","description":"Your first 7 days (7 x 24 h from sign-up) toward the first-week goal: 100 searches on 2 UTC days. A search counts when your key (any of your projects) called /search or /search/text, it was answered 2xx, and it searched your own catalogue (not the sample products). Playground searches, the console's first-call button and Storag's own test calls do not count. daily lists every UTC date the 7 days touch. Also says whether a feed is saved and live, how your first import went, and whether your key is in use (connected). Signed in with the storag.ai session token (Authorization: Bearer <session token>), so no API key is needed; X-Storag-Project as on /dashboard/usage. Answers 503 while the stats are unavailable. Not counted as a call.","security":[{"sessionAuth":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}}],"responses":{"200":{"description":"Your first week","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivationResponse"}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/dashboard/search":{"get":{"operationId":"dashboard_search_products","summary":"Playground search, signed in","description":"The storag.ai playground's /search: the same search and answer as /search, signed in with the storag.ai session token (Authorization: Bearer <session token>) instead of an API key, so no allowed_domains apply. X-Storag-Project names one of your projects (needed when you have several); another user's project is 404. Counted in your project's usage as endpoint dashboard-search, under the same plan limits. Rate limited per user. API keys are not accepted here: use /search.","security":[{"sessionAuth":[]}],"parameters":[{"name":"X-Storag-Project","in":"header","required":false,"description":"With a session token: the project ID to act on, needed when you have several; another user's project is 404. Ignored with an API key (the key's project).","schema":{"type":"string"}},{"name":"q","in":"query","required":true,"description":"Search query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 100; a larger number is capped to 100, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 100; a larger number is capped to 100, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"min_price","in":"query","required":false,"description":"Minimum price filter","schema":{"type":"number","minimum":0}},{"name":"minPrice","in":"query","required":false,"description":"Alias of min_price","schema":{"type":"number","minimum":0}},{"name":"max_price","in":"query","required":false,"description":"Maximum price filter","schema":{"type":"number","minimum":0}},{"name":"maxPrice","in":"query","required":false,"description":"Alias of max_price","schema":{"type":"number","minimum":0}},{"name":"availability","in":"query","required":false,"description":"Availability filter: \"in stock\" (also in_stock) returns only products in stock; \"any\" (also all) filters nothing, even when q says \"in stock\". Left out, words in q decide. Any other value (e.g. \"out of stock\") is 400","schema":{"type":"string","enum":["in stock","any"]}},{"name":"sort","in":"query","required":false,"description":"relevance, or every match by price (price_asc cheapest first, price_desc dearest first). Without it, a query that says \"cheapest\" or \"most expensive\" sorts by price; price and stock phrases in q (\"under 150 EUR\", \"in stock\") fill min_price, max_price and availability when those are not sent","schema":{"type":"string","enum":["relevance","price_asc","price_desc"],"default":"relevance"}},{"name":"judge","in":"query","required":false,"description":"false skips the LLM judge, as on /search","schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Matching products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"headers":{"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}},"X-Storag-Catalogue":{"description":"\"sample\" while your project searches the 2,000-product sample catalogue; \"none\" when it has no catalogue yet (sample products off and no import of your feed live): the results are then empty because nothing was searched, not because nothing matched (the body says the same in catalogue and notice). Absent on your own catalogue.","schema":{"type":"string","enum":["sample","none"]}}}},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/demo/search":{"get":{"operationId":"demo_search_products","summary":"Demo search, no key","description":"/search over a fictional demo catalog, without a key, judged like /search up to a daily demo cap; over it the full-text results with meta.fallback \"budget\". No key. 30 requests a minute and 500 a UTC day per IP, plus a shared daily cap; over a limit the answer is 429 demo_busy with Retry-After. At most 20 results a page and 10 pages. 404 while the demo is switched off.","security":[],"parameters":[{"name":"q","in":"query","required":true,"description":"Search query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 10 on the demo; a larger number is capped to 10, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":10,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 20 on the demo; a larger number is capped to 20, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":20,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"min_price","in":"query","required":false,"description":"Minimum price filter","schema":{"type":"number","minimum":0}},{"name":"minPrice","in":"query","required":false,"description":"Alias of min_price","schema":{"type":"number","minimum":0}},{"name":"max_price","in":"query","required":false,"description":"Maximum price filter","schema":{"type":"number","minimum":0}},{"name":"maxPrice","in":"query","required":false,"description":"Alias of max_price","schema":{"type":"number","minimum":0}},{"name":"availability","in":"query","required":false,"description":"Availability filter: \"in stock\" (also in_stock) returns only products in stock; \"any\" (also all) filters nothing, even when q says \"in stock\". Left out, words in q decide. Any other value (e.g. \"out of stock\") is 400","schema":{"type":"string","enum":["in stock","any"]}},{"name":"sort","in":"query","required":false,"description":"relevance, or every match by price (price_asc cheapest first, price_desc dearest first). Without it, a query that says \"cheapest\" or \"most expensive\" sorts by price; price and stock phrases in q (\"under 150 EUR\", \"in stock\") fill min_price, max_price and availability when those are not sent","schema":{"type":"string","enum":["relevance","price_asc","price_desc"],"default":"relevance"}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): counted in demo usage, never changes the answer; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["linkedin"]}},{"name":"judge","in":"query","required":false,"description":"false skips the LLM judge: the full-text results, meta.judged false and meta.fallback null (unless relaxed or partial); no judge time, and the search does not count towards the judge ceilings","schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Matching demo products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"headers":{"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/DemoBusy"},"502":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/demo/search/text":{"get":{"operationId":"demo_text_search_products","summary":"Demo full-text search, no key","description":"/search/text over the fictional demo catalog. No key. 30 requests a minute and 500 a UTC day per IP, plus a shared daily cap; over a limit the answer is 429 demo_busy with Retry-After. At most 20 results a page and 10 pages. 404 while the demo is switched off.","security":[],"parameters":[{"name":"q","in":"query","required":true,"description":"Search query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 10 on the demo; a larger number is capped to 10, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":10,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 20 on the demo; a larger number is capped to 20, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":20,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"min_price","in":"query","required":false,"description":"Minimum price filter","schema":{"type":"number","minimum":0}},{"name":"minPrice","in":"query","required":false,"description":"Alias of min_price","schema":{"type":"number","minimum":0}},{"name":"max_price","in":"query","required":false,"description":"Maximum price filter","schema":{"type":"number","minimum":0}},{"name":"maxPrice","in":"query","required":false,"description":"Alias of max_price","schema":{"type":"number","minimum":0}},{"name":"availability","in":"query","required":false,"description":"Availability filter: \"in stock\" (also in_stock) returns only products in stock; \"any\" (also all) filters nothing, even when q says \"in stock\". Left out, words in q decide. Any other value (e.g. \"out of stock\") is 400","schema":{"type":"string","enum":["in stock","any"]}},{"name":"sort","in":"query","required":false,"description":"relevance, or every match by price (price_asc cheapest first, price_desc dearest first). Without it, a query that says \"cheapest\" or \"most expensive\" sorts by price; price and stock phrases in q (\"under 150 EUR\", \"in stock\") fill min_price, max_price and availability when those are not sent","schema":{"type":"string","enum":["relevance","price_asc","price_desc"],"default":"relevance"}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): counted in demo usage, never changes the answer; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["linkedin"]}}],"responses":{"200":{"description":"Matching demo products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}},"headers":{"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/DemoBusy"},"502":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/demo/products":{"get":{"operationId":"demo_list_products","summary":"Demo product list, no key","description":"/products over the fictional demo catalog. No key. 30 requests a minute and 500 a UTC day per IP, plus a shared daily cap; over a limit the answer is 429 demo_busy with Retry-After. At most 20 results a page and 10 pages. 404 while the demo is switched off.","security":[],"parameters":[{"name":"page","in":"query","required":false,"description":"Page number, from 1 to 10 on the demo; a larger number is capped to 10, never rejected (the answer's page says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":10,"default":1}},{"name":"page_size","in":"query","required":false,"description":"Results per page, 1 to 20 on the demo; a larger number is capped to 20, never rejected (the answer's pageSize says what was used). Below 1 or not a whole number is 400","schema":{"type":"integer","minimum":1,"maximum":20,"default":20}},{"name":"pageSize","in":"query","required":false,"description":"Alias of page_size","schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"search","in":"query","required":false,"description":"Filter by title, ID, or brand","schema":{"type":"string","maxLength":200}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): counted in demo usage, never changes the answer; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["linkedin"]}}],"responses":{"200":{"description":"One page of demo products","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductListResponse"}}},"headers":{"X-Storag-Timed-Out":{"description":"Present, \"true\", only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. Absent on a full answer. Search bodies say the same in meta.timedOut.","schema":{"type":"string","enum":["true"]}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/DemoBusy"},"502":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/demo/products/{product_id}":{"get":{"operationId":"demo_get_product","summary":"Get a demo product, no key","description":"One product of the fictional demo catalog; an unknown id is 404. No key. 30 requests a minute and 500 a UTC day per IP, plus a shared daily cap; over a limit the answer is 429 demo_busy with Retry-After. At most 20 results a page and 10 pages. 404 while the demo is switched off.","security":[],"parameters":[{"name":"product_id","in":"path","required":true,"description":"Product ID","schema":{"type":"string"}},{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): counted in demo usage, never changes the answer; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["linkedin"]}}],"responses":{"200":{"description":"The demo product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/DemoBusy"},"502":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}}}},"/api/v1/storag/demo/mcp":{"post":{"operationId":"demo_mcp","summary":"Demo MCP server, no key","description":"MCP over Streamable HTTP, stateless (no Mcp-Session-Id), JSON answers; public URL https://mcp.storag.ai/demo/mcp. POST one JSON-RPC message per request (initialize, tools/list, tools/call); batches are 400, GET and DELETE 405. Tools search_products, text_search_products, list_products and get_product, read-only, over the fictional demo catalog, same tools and arguments as the keyed MCP. Each POST counts once against the demo limits. No key. 30 requests a minute and 500 a UTC day per IP, plus a shared daily cap; over a limit the answer is 429 demo_busy with Retry-After. At most 20 results a page and 10 pages. 404 while the demo is switched off.","security":[],"parameters":[{"name":"src","in":"query","required":false,"description":"Optional source tag (lowercase letters, digits, hyphens, at most 32): counted in demo usage, never changes the answer; any other value is ignored","schema":{"type":"string","pattern":"^[a-z0-9-]{1,32}$","examples":["linkedin"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcRequest"},"examples":{"toolsList":{"value":{"jsonrpc":"2.0","id":1,"method":"tools/list"}}}}}},"responses":{"200":{"description":"The JSON-RPC answer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"202":{"description":"A notification or a client response: accepted, nothing to answer"},"400":{"description":"Not a single valid JSON-RPC message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/DemoBusy"}}}},"/api/v1/storag/health":{"get":{"operationId":"health","summary":"Service health","security":[],"responses":{"200":{"description":"Healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Degraded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/api/v1/storag/health/ping":{"get":{"operationId":"ping","summary":"Liveness ping","security":[],"responses":{"200":{"description":"Alive","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Ping"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key: Authorization: Bearer <key>"},"sessionAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"The storag.ai session token of a signed-in user (what the storag.ai dashboard sends), for /dashboard/* only"},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"Rate limit exceeded","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SearchLimited":{"description":"Over the rate limit (Error). quota_exceeded (QuotaExceeded) is reserved for a Free or Trial project far past its monthly quota; it is switched off today, so no plan gets it now. Paid plans never get quota_exceeded.","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}},"X-Storag-Quota-Limit":{"description":"Your plan's queries a month; absent on Enterprise (no monthly quota)","schema":{"type":"integer"}},"X-Storag-Quota-Used":{"description":"Your project's answered searches this calendar month (UTC) before this one, all keys together. It never goes down within the month; a search answered a moment earlier may not be counted yet","schema":{"type":"integer"}},"X-Storag-Quota-Reset":{"description":"When the count starts again: 00:00 UTC on the 1st of next month","schema":{"type":"string","format":"date-time"}}},"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/QuotaExceeded"}]}}}},"DemoBusy":{"description":"Over a demo limit (per-IP minute or day, or the shared demo capacity)","headers":{"Retry-After":{"description":"Seconds to wait","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoBusy"}}}}},"schemas":{"Money":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"type":"string","examples":["EUR"]}}},"Product":{"type":"object","required":["id","title","availability"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"brand":{"type":["string","null"]},"category":{"type":["string","null"]},"link":{"type":["string","null"]},"image_link":{"type":["string","null"]},"price":{"type":["object","null"],"required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"type":"string","examples":["EUR"]}}},"sale_price":{"type":["object","null"],"required":["amount","currency"],"properties":{"amount":{"type":"number"},"currency":{"type":"string","examples":["EUR"]}}},"availability":{"type":"string","enum":["in stock","out of stock"]},"group_id":{"type":["string","null"]},"color":{"type":"string","description":"The feed's g:color; values the feed separates with / are joined with ' / '. Absent when the feed has none.","examples":["Black / Red"]},"size":{"type":"string","description":"The feed's g:size. Absent when the feed has none.","examples":["42"]},"material":{"type":"string","description":"The feed's g:material. Absent when the feed has none.","examples":["Mesh"]}}},"SearchResponse":{"type":"object","required":["query","results","total","page","pageSize"],"properties":{"query":{"type":"string"},"results":{"type":"array","items":{"type":"object","required":["product","rank"],"properties":{"product":{"$ref":"#/components/schemas/Product"},"rank":{"type":"integer"}}}},"total":{"type":"integer","description":"How many products match. On a judged answer (meta.judged true) where the LLM judge kept fewer products than it was asked for: exactly the products kept inside every limit of the query, never the keyword hit count before the judge, so a total under pageSize is exactly the results shown. On a judged answer that kept a full set: the keyword match count (more may fit), at most 100. Otherwise the keyword match count; a lower bound when meta.timedOut."},"page":{"type":"integer"},"pageSize":{"type":"integer"},"processingTime":{"type":"integer","description":"Milliseconds"},"message":{"type":"string"},"catalogue":{"type":"string","enum":["sample","none"],"description":"sample: this key's project searches the 2,000-product sample catalogue (the project chose \"Start with sample products\" and its own first import has not gone live yet). none: the project has no catalogue yet (sample products off, no import of its feed live), so nothing was searched: results is empty and notice says what to do; an empty list without it always means nothing matched. The X-Storag-Catalogue header says the same. Absent on the project's own catalogue. The keyless demo never sets none."},"nextStep":{"type":"object","description":"The keyless demo routes only (never a keyed route): the next step after trying the demo, with the storag.ai sign-up link.","required":["message","signup"],"properties":{"message":{"type":"string"},"signup":{"type":"string","format":"uri"}}},"notice":{"type":"object","description":"Present only with catalogue \"none\": why the answer is empty and the next step.","required":["code","message","docs"],"properties":{"code":{"type":"string","enum":["no_catalogue"]},"message":{"type":"string"},"docs":{"type":"string","format":"uri"}}},"meta":{"type":"object","description":"/search and /demo/search always; /search/text and /demo/search/text only when the results are a relaxed match (fallback relaxed or partial) or the search timed out (timedOut).","properties":{"judged":{"type":"boolean","description":"The LLM judge ranked these results. false with judge=false, a query naming one product, or when meta.fallback says why the judge was skipped"},"complete":{"type":"boolean","description":"Every candidate was judged in time, and the results match the whole query (not relaxed); false when timedOut"},"timedOut":{"type":"boolean","enum":[true],"description":"Present (true) only when the search stopped at its time cap (or a search shard failed): these are the products found so far, total is a lower bound and the order may differ from a full answer; retry later. complete is then false, and the X-Storag-Timed-Out: true header is set. Absent on a full answer."},"alternatives":{"type":"boolean","description":"Nothing fitted; these are the closest products"},"fallback":{"type":["string","null"],"enum":["text","busy","budget","quota","timeout","no-language","error","relaxed","partial",null],"description":"Why the results are not the judged ones; null when they are. quota: a Free or Trial project over its queries this month, or Starter and Scale searches past 2 times their quota: results skip the LLM judge until the 1st (UTC); other paid plans never get it. relaxed: no product matched every word, these match most of them; partial: these match only the most specific word"}}}}},"ProductListResponse":{"type":"object","required":["products","total","page","pageSize"],"properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"total":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"},"nextStep":{"type":"object","description":"The keyless demo routes only (never a keyed route): the next step after trying the demo, with the storag.ai sign-up link.","required":["message","signup"],"properties":{"message":{"type":"string"},"signup":{"type":"string","format":"uri"}}},"catalogue":{"type":"string","enum":["sample","none"],"description":"sample: this key's project lists the 2,000-product sample catalogue (the project chose \"Start with sample products\" and its own first import has not gone live yet). none: the project has no catalogue yet, so the page is empty and notice says what to do. The X-Storag-Catalogue header says the same on the keyed route. Absent on the project's own catalogue. The keyless demo never sets it."},"notice":{"type":"object","description":"Present only with catalogue \"none\": why the page is empty and the next step.","required":["code","message","docs"],"properties":{"code":{"type":"string","enum":["no_catalogue"]},"message":{"type":"string"},"docs":{"type":"string","format":"uri"}}}}},"Health":{"type":"object","example":{"status":"ok","checks":{"search":"ok","semantic":"ok","keys":"ok","judge":"ok"},"imports":{"queued":0,"retry_wait":0,"running":0,"oldest_queued_s":0,"oldest_heartbeat_s":0,"failed_1h":0,"finished_1h":0},"demo":{"enabled":true,"today":42,"refusedToday":{"ip":0,"ip_daily":0,"busy":0,"daily_cap":0}},"timestamp":"2026-11-22T09:26:49.861Z"},"properties":{"status":{"type":"string","enum":["ok","degraded"]},"checks":{"type":"object","properties":{"search":{"type":"string","enum":["ok","down"]},"semantic":{"type":"string","enum":["ok","down","disabled"],"description":"disabled: semantic search is not enabled on this deployment; never makes the API down"},"keys":{"type":"string","enum":["ok","down"],"description":"The API key store"},"judge":{"type":"string","enum":["ok","degraded","disabled"]}}},"imports":{"type":["object","null"],"description":"The import queue: counts and ages over all tenants; null when it could not be read","properties":{"queued":{"type":"integer"},"retry_wait":{"type":"integer"},"running":{"type":"integer"},"oldest_queued_s":{"type":"integer"},"oldest_heartbeat_s":{"type":"integer"},"failed_1h":{"type":"integer"},"finished_1h":{"type":"integer"}}},"demo":{"type":"object","description":"The keyless demo in the answering instance: whether it is on, and this UTC day's calls let through and refused by limit. Never makes the API degraded","required":["enabled","today","refusedToday"],"properties":{"enabled":{"type":"boolean","description":"false: the /demo/* routes answer 404"},"today":{"type":"integer","description":"Demo calls let through this UTC day"},"refusedToday":{"type":"object","description":"Demo calls refused this UTC day, by limit: ip (one IP a minute), ip_daily (one IP a day), busy (everyone a minute), daily_cap (everyone a day)","required":["ip","ip_daily","busy","daily_cap"],"properties":{"ip":{"type":"integer"},"ip_daily":{"type":"integer"},"busy":{"type":"integer"},"daily_cap":{"type":"integer"}}}}},"timestamp":{"type":"string"}}},"OutcomeCounts":{"type":"object","required":["calls","ok","errors"],"properties":{"calls":{"type":"integer"},"ok":{"type":"integer","description":"Calls answered with status below 400"},"errors":{"type":"integer","description":"Calls answered with status 400 or above"}}},"UsageCounts":{"type":"object","required":["calls","errors","routes","ok","byRoute","search","bySrc"],"properties":{"calls":{"type":"integer"},"errors":{"type":"integer","description":"Calls answered with status 400 or above"},"routes":{"type":"object","description":"Calls per route, e.g. {\"/search\": 12}; routes without calls are left out","additionalProperties":{"type":"integer"}},"ok":{"type":"integer","description":"Calls answered with status below 400; calls = ok + errors"},"byRoute":{"type":"object","description":"Per route, its calls split into ok and errors, e.g. {\"/search\": {\"calls\": 3, \"ok\": 2, \"errors\": 1}}; routes without calls are left out","additionalProperties":{"$ref":"#/components/schemas/OutcomeCounts"}},"search":{"type":"object","required":["calls","ok","errors","noCatalogue"],"description":"/search and /search/text together; search.ok above 0 means a search answered from a catalogue. calls = ok + errors + noCatalogue","properties":{"calls":{"type":"integer"},"ok":{"type":"integer","description":"Searches answered below 400 from your own or the sample catalogue"},"errors":{"type":"integer","description":"Searches answered with status 400 or above"},"noCatalogue":{"type":"integer","description":"Searches answered 200 with catalogue \"none\": the project had no catalogue yet"}}},"bySrc":{"type":"object","description":"Per src tag sent on the call (?src=, e.g. \"console-first-call\"), its calls split into ok and errors, e.g. {\"console-first-call\": {\"calls\": 1, \"ok\": 1, \"errors\": 0}}; calls without a valid src are left out","additionalProperties":{"$ref":"#/components/schemas/OutcomeCounts"}}}},"ProductLimit":{"type":"object","required":["plan","limit","count","limitReached"],"properties":{"plan":{"type":["string","null"],"examples":["free"]},"limit":{"type":"integer","description":"Products your plan allows; 2147483647 means no limit (Enterprise)","examples":[5000]},"count":{"type":["integer","null"],"description":"Products in your live catalog; null before the first import"},"limitReached":{"type":["boolean","null"],"description":"True when the last import kept the first `limit` products of the feed and left the rest out"}}},"UsageResponse":{"type":"object","required":["from","to","days","timezone","total","daily","truncated","products"],"properties":{"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"days":{"type":"integer","examples":[30]},"timezone":{"type":"string","enum":["UTC"]},"total":{"$ref":"#/components/schemas/UsageCounts"},"daily":{"type":"array","description":"One entry per day from `from` to `to`, days without calls included","items":{"allOf":[{"$ref":"#/components/schemas/UsageCounts"},{"type":"object","required":["date"],"properties":{"date":{"type":"string","format":"date"}}}]}},"truncated":{"type":"boolean","description":"True when not every call could be read; counts are a minimum"},"products":{"$ref":"#/components/schemas/ProductLimit"}}},"FeedJob":{"type":"object","required":["id","projectId","feedUrl","trigger","status","createdAt"],"properties":{"id":{"type":"string"},"projectId":{"type":"string"},"feedUrl":{"type":"string","description":"The project's current feed URL; empty when none is set"},"trigger":{"type":"string","enum":["daily_cron","manual_admin","feed_added"],"description":"daily_cron: the daily sync; manual_admin: a manual sync; feed_added: the first import"},"status":{"type":"string","enum":["pending","downloading","parsing","publishing","completed","failed"],"description":"pending: queued (or waiting to retry); downloading: started; parsing: reading and indexing the feed; publishing: the products are searchable, semantic data is being written"},"productsParsed":{"type":"integer","description":"Products read from the feed, rejected ones included"},"productsPublished":{"type":"integer","description":"Products made searchable"},"error":{"type":"string","description":"Why the job failed, or why its last attempt failed before a retry"},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"}}},"FeedStatus":{"type":"object","required":["projectId","syncInProgress","catalogue"],"properties":{"projectId":{"type":"string"},"feedUrl":{"type":"string","description":"The saved feed URL; left out while the project has none"},"latestJob":{"$ref":"#/components/schemas/FeedJob","description":"The newest import job (id, status, createdAt, completedAt); left out before the first one"},"syncInProgress":{"type":"boolean","description":"An import is queued or running"},"catalogue":{"type":"string","enum":["own","sample","none"],"description":"What the project's searches read now: sample while it searches the sample products, own once its own first import went live, none until then (no catalogue yet: keyed searches answer catalogue none)."}}},"FeedJobsResponse":{"type":"object","required":["jobs","total","page","pageSize"],"properties":{"jobs":{"type":"array","items":{"$ref":"#/components/schemas/FeedJob"}},"total":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}}},"FeedTriggerResponse":{"type":"object","required":["jobId","status","products"],"properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","already_queued","running"]},"products":{"$ref":"#/components/schemas/ProductLimit"}}},"ActivationResponse":{"type":"object","required":["signedUpAt","deadline","day","weekOver","timezone","target","searches","days","daily","activated","activatedAt","feed","firstImport","connected","keyCalls","lastKeyCallAt"],"properties":{"signedUpAt":{"type":"string","format":"date-time","description":"When you signed up"},"deadline":{"type":"string","format":"date-time","description":"signedUpAt + 7 x 24 h; later searches do not count"},"day":{"type":"integer","minimum":1,"maximum":7,"description":"Day N of 7 since sign-up; 7 once the week is over"},"weekOver":{"type":"boolean"},"timezone":{"type":"string","enum":["UTC"]},"target":{"type":"object","required":["searches","days"],"properties":{"searches":{"type":"integer","enum":[100]},"days":{"type":"integer","enum":[2]}}},"searches":{"type":"integer","minimum":0,"description":"Counted searches in the 7 days"},"days":{"type":"integer","minimum":0,"description":"UTC dates with at least one counted search"},"daily":{"type":"array","description":"Every UTC date the 7 days touch (7, or 8 when you did not sign up at 00:00 UTC), oldest first","items":{"type":"object","required":["date","searches"],"properties":{"date":{"type":"string","format":"date"},"searches":{"type":"integer","minimum":0}}}},"activated":{"type":"boolean","description":"100 counted searches on 2 dates within the 7 days"},"activatedAt":{"type":["string","null"],"format":"date-time","description":"When the goal was reached"},"feed":{"type":"object","required":["saved","live"],"properties":{"saved":{"type":"boolean","description":"A feed URL was saved"},"live":{"type":"boolean","description":"Your own catalogue (not the sample) has gone live"}}},"firstImport":{"type":["object","null"],"description":"Your first import; null before it","required":["id","status","createdAt"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","downloading","parsing","publishing","completed","failed"]},"createdAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"error":{"type":"string","description":"Why it failed, one fixed sentence per cause"},"products":{"type":"integer","minimum":0,"description":"Products it wrote"}}},"connected":{"type":"boolean","description":"Your key answered a call (directly or through MCP)"},"keyCalls":{"type":"integer","minimum":0,"description":"Calls by your keys since sign-up answered below 400"},"lastKeyCallAt":{"type":["string","null"],"format":"date-time"}}},"DashboardUsageResponse":{"type":"object","required":["projectId","month","from","timezone","queries","firstQueryAt"],"properties":{"projectId":{"type":"string","description":"The project read"},"month":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}$","description":"The calendar month counted, UTC"},"from":{"type":"string","format":"date-time","description":"Start of that month"},"timezone":{"type":"string","enum":["UTC"]},"queries":{"type":"integer","minimum":0,"description":"Searches answered 2xx this month, all keys"},"firstQueryAt":{"type":["string","null"],"format":"date-time","description":"The project's first answered search ever; null when there is none yet"}}},"SuggestionsResponse":{"type":"object","required":["suggestions"],"properties":{"suggestions":{"type":"array","items":{"type":"string"}}}},"QuotaExceeded":{"type":"object","required":["statusCode","error","message","used","limit","resetsAt","upgradeUrl"],"properties":{"statusCode":{"type":"integer","enum":[429]},"error":{"type":"string","enum":["quota_exceeded"]},"message":{"type":"string"},"used":{"type":"integer","description":"Answered searches this month"},"limit":{"type":"integer","description":"The plan's queries a month"},"resetsAt":{"type":"string","format":"date-time","description":"00:00 UTC on the 1st of next month"},"upgradeUrl":{"type":"string","format":"uri"}}},"DemoBusy":{"type":"object","required":["statusCode","error","reason","message"],"properties":{"statusCode":{"type":"integer","enum":[429]},"error":{"type":"string","enum":["demo_busy"]},"reason":{"type":"string","enum":["ip","ip_daily","busy","daily_cap"],"description":"ip: your IP's minute; ip_daily: your IP's UTC day; busy: the demo's shared minute; daily_cap: the demo's shared UTC day"},"message":{"type":"string"},"signup":{"type":"string","description":"Where to get your own key"}}},"JsonRpcRequest":{"type":"object","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","integer"],"description":"Absent for a notification"},"method":{"type":"string","examples":["initialize","tools/list","tools/call"]},"params":{"type":"object"}}},"JsonRpcResponse":{"type":"object","required":["jsonrpc"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","integer","null"]},"result":{"type":"object"},"error":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}},"Ping":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]}}},"Error":{"type":"object","required":["statusCode","message"],"properties":{"statusCode":{"type":"integer"},"message":{"type":"string"},"error":{"type":"string"}}}}}}