Talstok
Try it free

Build on the records a business runs on.

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.

Running a business, and want an assistant to help? Start on the AI page.

{"mcpServers": {"my-shop": { "type": "http", "url": "https://api.talstok.com/mcp", "headers": {"Authorization": "Bearer your API key"}}}}
An MCP client’s settings for one shop: the address and the shop’s key.

Three ways in

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.

REST API

More than 130 operations, described in an OpenAPI 3.1 document. Lists page with a cursor, and errors come as problem+json.

GET https://api.talstok.com/api/v1/products?limit=50 Authorization: Bearer your API key 200 OK {"data": [ {"id": "prd_…", "handle": "clothbound-notebook", "name": "Clothbound Notebook", "status": "active", …}], "next": "…"}

MCP server

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.

POST https://api.talstok.com/mcp

Public catalogue

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.

GET your shop's address/_talstok/v1/products

Connect an AI assistant

Any MCP client that can send a key in a request header connects to one address.

  1. Make a key

    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.

  2. Add the server

    Point the client at https://api.talstok.com/mcp, as in the settings at the top of this page, and send the key as a Bearer token.

  3. Try a change first

    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.

  4. Let it work

    The assistant reads products and orders, records counts and the rest, within the key’s role.

Keys by role

Each key belongs to one shop and holds one role. The owner makes it, and no key can act as the owner.

What each role may do through the API and the MCP server
RoleWhat it can doWhat it cannot do
ManagerChanges products, prices, stock, orders and the shop’s settings, reads the customer list, and asks for refundsMake API keys, manage staff, erase a customer or change payment settings
PackerReads products, stock and orders; dispatches orders and adds tracking, records stock counts, receives and withdraws batches, and prints packing slips and label filesChange prices, read the customer list, or see takings and sales reports
ViewerReads products, stock, orders, takings and the shop’s settingsChange 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.

What to know before you build

  • Safe retries

    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.

  • Refusals you can act on

    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.

  • Unknown fields refused

    A field the API does not know is refused, never ignored, so a typo cannot quietly do nothing.

  • Paging

    Lists page with a cursor, up to 200 rows at a time.

  • Request limits

    About 600 reads and 120 changes a minute for each key. Over a limit, a 429 says how long to wait.

  • The contract

    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.

The site guide

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.

  1. Connect
  2. Read the structure first: one call
  3. Draw the navigation exactly
  4. One page per address
  5. Breadcrumbs
  6. Listings and filters
  7. Product pages: draw only what is there
  8. What Talstok never publishes, so do not look for it
  9. Arranging a shop (a key with manager rights)
  10. Signing customers in
  11. The basket and checkout
  12. Services: the jobs a shop does and what it charges
  13. The shop’s own facts
  14. A site Talstok hosts for the shop
  15. Themes, files, pages, custom data and sections (a key with manager rights)

Questions from developers

What is a POS API?

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.

Does Talstok have an MCP server?

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.

Do I need a developer to use it?

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.

What stays in the dashboard?

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.

Is there a test environment?

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.

Are there limits on requests?

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.

Does the API send webhooks?

Not today. Your code asks the API for what it needs, when it needs it.

How is each shop’s data kept apart?

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.

When is an online card order marked paid?

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.

Are orders ever deleted?

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.

Build on a test shop

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.