REST API
More than 130 operations, described in an OpenAPI 3.1 document. Lists page with a cursor, and errors come as problem+json.
Talstok’s REST API reads and changes a business’s products, stock, orders, customers and settings: more than 130 operations, described in one OpenAPI 3.1 document. AI assistants and agents use the same operations through its MCP server, with the same key.
The REST API and the MCP server take a key, and the key’s role decides what they may do. The catalogue is public, for a business’s own website.
More than 130 operations, described in an OpenAPI 3.1 document. Lists page with a cursor, and errors come as problem+json.
More than 130 tools for AI assistants and agents, with the key’s permissions. Tools only, one request a message, no session. It speaks protocol 2026-07-28, and 2025-11-25, 2025-06-18 and 2025-03-26 for older clients.
Products, collections, menus, prices, whether each can be ordered (yes or no, not a stock count), services, buy prices and the shop’s details, read with no key. A product sold as single items lists each one on sale.
Any MCP client that can send a key in a request header connects to one address.
The shop’s owner makes one in Settings, under Apps and API keys, and gives it a role: manager, packer or viewer. It is shown once.
Point the client at https://api.talstok.com, as in the settings at the top of this page, and send the key as a Bearer token.
Every tool that changes something accepts dry_run, which checks the key’s role, the record and the publish checklist without making the change. The database still has the final word when the change is made.
The assistant reads products and orders, records counts and the rest, within the key’s role.
Each key belongs to one shop and holds one role. The owner makes it, and no key can act as the owner.
| Role | What it can do | What it cannot do |
|---|---|---|
| Manager | Changes products, prices, stock, orders and the shop’s settings, reads the customer list, and asks for refunds | Make API keys, manage staff, erase a customer or change payment settings |
| Packer | Reads products, stock and orders; dispatches orders and adds tracking, records stock counts, receives and withdraws batches, and prints packing slips and label files | Change prices, read the customer list, or see takings and sales reports |
| Viewer | Reads products, stock, orders, takings and the shop’s settings | Change anything, read the customer list, or download the order and customer spreadsheets |
Keys are made in Settings, under Apps and API keys, and each is shown once. The keys screen shows when each key was last used, to the hour, and a revoked key stops working from its very next request. Opening and closing the shop window takes a further permission, given to a manager key.
Every POST must carry an Idempotency-Key. A retry of the same request with the same key is told what the first one did (its status and the id it made) instead of acting twice.
An error comes as problem+json, naming a stable code and the shop’s rule that refused the request, so your code can change the plan instead of retrying.
A field the API does not know is refused, never ignored, so a typo cannot quietly do nothing.
Lists page with a cursor, up to 200 rows at a time.
About 600 reads and 120 changes a minute for each key. Over a limit, a 429 says how long to wait.
Every path, field and role in one OpenAPI 3.1 document, at /api/v1/openapi.json, which any of the shop’s API keys can read.
How a website turns a shop into menus and pages, signs customers in and takes payment, for every website, assistant or script that builds on a shop. Version 34, in markdown, readable with no key.
An API for a point-of-sale system: a way for other software to read and change what the till sells from. Talstok’s covers products, stock, orders, customers and settings, and a sale made at the till reads as an order. Ringing up a sale through the API is not built.
Yes, at https://api.talstok.com/mcp. It lets an AI assistant or agent work on a shop with the same permissions as an API key, through more than 130 tools: one for each operation the API offers, and three that each do a whole job in one call. It offers tools only, and keeps no session between calls.
No. Everything the API does can also be done in the dashboard. The API is there for businesses and agencies who want their own website, their own tools or an AI assistant on top. An owner who wants an assistant starts on the AI page.
Selling at the till, suppliers and purchase orders, staff, and payment settings. A sale made at the till reads as an order through the API, but a sale cannot be rung up through it. API keys are made in the dashboard too: the API cannot make one.
Yes. Build against a test shop at https://api-test.talstok.com with that shop’s key, where no money moves. Then point the same code at https://api.talstok.com with a key from the live shop. A test key does not work on the live host, and a live key does not work on the test one.
Yes, counted by the minute. Each key may make about 600 reads and 120 changes a minute, and a shop’s keys about 1,200 reads and 240 changes between them. The counts are approximate, kept for each Cloudflare location: a guard against a runaway script, not a quota. Over a limit, the answer is 429 with Retry-After set to 60 seconds, and the refusal names the limit it met.
Not today. Your code asks the API for what it needs, when it needs it.
Each shop’s records live in a database of their own, and every row is checked against the shop it belongs to. A key names one shop, so a request has no way to reach another.
Only when Stripe sends a signed message for that shop. A request from a browser, or from an API key, cannot mark one paid. A sale at the till is marked paid by the signed-in person who takes the money.
No. Orders are never deleted and prices are kept as a history, so the API can always say what an order cost on the day. Products are archived, sizes and jobs retired, and keys revoked, rather than deleted.
A test shop is free, and no money moves in it. Build your tools against its API at https://api-test.talstok.com, then point the same code at https://api.talstok.com with a key from the live shop. A website built on the public catalogue reads the test shop’s own address, then the live shop’s.