The SellDigits API
Let your own tools, an automation service or an AI assistant use your catalog, with keys that can do only what you allow.
The SellDigits API is an address on your site that other software can call: a spreadsheet script, n8n, Make, Zapier, your own code. It is off until an administrator switches it on under Developer, API, and it only answers over https:// (a computer of your own, such as localhost, is the exception).
Every call carries an API key. A key acts as one person on your team and can do only what its scopes allow and that person's access level permits: an Editor's key can never change settings, whatever its scopes say.
Making a key
- Open Developer, API and switch the SellDigits API on.
- Choose New key. Name it after the tool that will use it, and choose who it acts as.
- Tick only the scopes the tool needs. "Read-only" leaves only the reading scopes. Scopes the person's level does not allow are not offered, and say which level they need.
- Optionally give an end date (the key stops working after that day) and the addresses it may be used from (one address or range per line, such as 203.0.113.0/24).
- Choose Make key. The whole key is shown once: copy it now. Only its first part and last four characters are kept, so it cannot be shown again. The dialog also shows a command to try it.
Using a key
- Send it in the Authorization header: "Authorization: Bearer selldigits_live_...". Some hosts drop that header; the X-SDA-Key header works too.
- GET /me says who the key acts as, its scopes and its limits. GET /health says the API answers. GET /openapi.json describes every route in the OpenAPI format, so Postman, Insomnia or Swagger can read it. Products, categories, tags, Smart Lists, Comparison Tables, Box Templates and links can be read and changed, a few safe settings changed, and analytics read, each behind its scope (see Products through the API; Lists, tables, templates and links through the API; and Settings and analytics through the API).
- The API checks what it is sent: a parameter a route does not know, a field its body does not take, or a value out of range is refused with a code that names it, instead of being ignored.
- Before changing anything, a call can be tried with dry_run=true: it answers with what would change and changes nothing.
- A call that creates something can carry an Idempotency-Key header (a unique text, such as a UUID). Sent again with the same key and the same body, it answers as the first time instead of creating a second one, so a script can safely retry after a lost connection.
- Reading something gives its ETag; changing it needs that ETag in the If-Match header. If someone changed it in the meantime, the change is refused (412) instead of overwriting theirs.
- Work that takes long, such as importing hundreds of ASINs, answers 202 with a job. GET /jobs/{id} says how far it is and what came of it; a key sees only its own jobs.
- Each key may make a set number of calls a minute and a day, and a smaller number of calls that go to Amazon a day; the screen shows the numbers (an Agency license has higher ones). Every answer says how many are left (RateLimit headers); over the limit, it says how long to wait (Retry-After).
- Every error has the same shape: a code, a message, details and a request id. Give the request id when you ask for help.
- Ten wrong keys from one address within ten minutes block that address for fifteen minutes.
AI assistants
- On WordPress 6.9 or later, the "AI assistants" switch under Developer, API lets an AI assistant that is connected to your site (through the MCP Adapter plugin, for example) use the main SellDigits actions: find and add products, change your own fields, make lists, tables and roundup drafts, import templates, add links, and read settings and analytics. It is off until you switch it on, and needs the SellDigits API on as well.
- An assistant acts as the person it signed in as: it can do only what that person's access level allows, within the same limits as a key, and the calls that ask Amazon count against the same daily allowance. Each action runs exactly as its API route does, with the same checks, dry runs and If-Match, and its changes are in the Audit Log.
- A product added through the API or by an assistant sends the same "Product imported" webhook as one added on the screen, and later price and stock changes send theirs as usual.
Keeping keys safe
- Keep a key like a password. Give each tool its own key, so you can revoke one without stopping the others.
- The table shows each key's person, scopes, when and from where it was last used, its end date and whether it is Active, Expired or Revoked.
- Revoke stops a key at once and for good. A key also stops working when its person leaves the team or loses access, and switching the API off stops every key until it is switched back on.
- Changes made with a key are in the Audit Log, like changes made in the screens.