{"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."},"servers":[{"url":"https://storag.ai"}],"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"}}}}}}