For AI agents
Officestock API v1
Read-only HTTP API. JSON over HTTPS, GET (and HEAD) only. Base URL: https://www.officestock.com. Every link in an answer is a full URL you can open as is.
Site guide for AI tools: https://www.officestock.com/llms.txt.
What the API can do
| Endpoint | Params | Returns |
|---|---|---|
| /agent/v1/catalog * | locale, market | Markets, languages, categories, every filter with its values |
| /agent/v1/catalog/colors * | locale, market | Every colour value for the col filter (kept out of the catalog to keep it small) |
| /agent/v1/find * | locale, market, filters, sort, page (1–2), gen | Search: up to 5 builds per page — title, price and currency, stock, link, image |
| /agent/v1/products/{id}/map * | locale | Coming soon (answers 503 for now): what can be chosen on a product |
| /agent/v1/products/{id}/build * | locale, market, choices | Coming soon (answers 503 for now): one exact build for the given choices |
| /agent/v1/builds/{hash} * | locale, market | Coming soon (answers 503 for now): one build in full |
| /agent/v1/pages/{key} | locale | Store pages by key: about-us, services, ai-assistant, custom, for-ai-agents, terms, returns-and-warranty, privacy, product-safety, recalls, accessibility, legal |
* Needs access (see Access). Add .md to builds/{hash} or pages/{key} for Markdown.
Start here
Full links you can open as they are (with access):
- The catalog — categories and every filter value: https://www.officestock.com/agent/v1/catalog
- A search — add filters from the catalog, for example &c=<category id>: https://www.officestock.com/agent/v1/find?sort=relevance
- More results: open the next link inside a search answer.
- Colour values for the col filter: https://www.officestock.com/agent/v1/catalog/colors
- A store page (open to everyone): https://www.officestock.com/agent/v1/pages/returns-and-warranty
Every answer carries full links for the next step (links, next, each build's url and image).
Choosing a build (coming soon)
For the product map and build endpoints, once they are live.
- A product's map lists its choices by key: size_{id}=<mm>, color_{id}=<colour id>, addon_{id}=1|0.
- Where only one of several can be on, the map lists them together in one_of: send addon_{id}=1 for the one you want, and the others switch off.
- Some choices exist only after another one is on (for example more seats unlock more pedestals). The map marks them with only_when: each entry is one way to reach them, so send those choices too.
- A few large products have more choices than their map lists. Their map says "complete": false; the build page has them all.
- Anything you do not choose stays as in the default build. The answer's snapped lists what could not be built exactly as asked.
Access
- Approved search engines and AI assistants are verified by their published IP ranges or DNS. A user-agent alone is never enough.
- Without access, endpoints marked * return 403. This page, the store pages and /llms.txt are open to everyone.
Status codes
| Code | Meaning |
|---|---|
| 200 | OK |
| 400 | Unknown parameter or value — use only values from the catalog or the product's map |
| 403 | No access — see Access |
| 404 | Unknown product, build or page |
| 405 | Not GET |
| 410 | Build retired |
| 429 | Rate limit — wait Retry-After seconds |
| 503 | Temporarily unavailable, or not available yet — wait Retry-After seconds |
Rules
- Rate limits apply per caller. Search is metered.
- Same request, same answer until the catalog changes. Every answer carries the catalog version gen.
- Prices and stock depend on market. Default: the store's default market.
- Read stock from stock.availability: in_stock, out_of_stock, made_to_order (then lead_days = days to make) or unknown.
- Send users to the build url; it works immediately. A new build's image may take up to a minute: use it when image_ready is true (until then the image URL answers 403).