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, the product id and the links to open or change the build |
| /agent/v1/products/{id}/map * | locale, market, from, colors, page | What can be chosen on a product: sizes, colours, add-ons — on its default build, or on the build named by from |
| /agent/v1/products/{id}/build * | locale, market, from, choices | One exact build: your choices applied to the default build, or to the build named by from |
| /agent/v1/builds/{hash} * | locale, market | One build in full: title, options, sizes, price, stock, link, image, its current choices |
| /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
- One build in full: open a build's links.self. What can be changed on it: its links.map. Change it: its links.change plus your choices, for example &color_{id}=<colour id>.
- 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
From a search result to a custom build in three steps: open the build's links.map, pick values, open its links.change with your choices added.
- A map lists the choices by key: size_{id}=<mm>, color_{id}=<colour id>, addon_{id}=1|0. Each option's now is what the build has today.
- Send only the choices you want to change. Everything else stays as in the build you started from (from=<hash>), or as in the product's default build when you send no from.
- 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). Make that build first, then open its own links.map to see them.
- A colour list shows up to 60 values. When there are more, the option has a more link to the rest.
- The answer's snapped lists what could not be built exactly as asked, and what the build has instead. exact is true when nothing was adjusted.
- A build you just made opens at once. If its link answers 404 with Retry-After, wait that long and try again.
- A colour the build does not offer answers 400 naming its key: use a value from that build's map.
- New builds are limited per caller per day, search results included. A build that already exists is always free to read. Past the limit a search still answers but leaves out builds that would be new, and says new_builds_held.
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 |
| 308 | The build moved: follow Location (the answer names the new hash) |
| 410 | Build retired: product_off (the product is not available right now) or product_changed (this exact build is gone) |
| 429 | Rate limit — wait Retry-After seconds |
| 503 | Temporarily unavailable — 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. A build answer also says until when its stock answer holds (stock.valid_until). A price of null means no price in that market.
- 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).