Lists, tables, templates and links through the API
Read, add and change Smart Lists, Comparison Tables, Box Templates and your other shops' links from your own tools.
Each of these works through the API exactly as on its own screen: the same checks, the same limits, the same results. A key needs lists:read or lists:write for Smart Lists and Comparison Tables, templates:read or templates:write for Box Templates, and links:read or links:write for links to shops other than Amazon.
Reading one gives its ETag; a change (PATCH) needs it in the If-Match header, and with dry_run=true it lists what would change, from what to what, without changing anything. Send only the fields you want to change: a field left out keeps its value.
Deleting is not offered through the API in this version, because these have no Trash: delete them on their screens, where you can see what uses them first.
Smart Lists
- POST /smart-lists adds a list with its name, its search words and, if you like, its type, department, number of products, filters, category and tag. It starts empty: POST /smart-lists/{id}/refresh searches Amazon and fills it, and needs the amazon:fetch scope, as it counts against the Amazon allowance.
- GET /smart-lists/{id}/items gives the products it shows now, in order.
- POST /smart-lists/{id}/roundup makes a draft post with a box for each of the list's products, as Create roundup draft does on the screen. Nothing is published.
Comparison Tables
- POST /comparison-tables adds a table with its name, look, columns, your own columns and its rows; each row is a product (or one of your links) with an optional badge, label, note and values for your own columns.
- PATCH /comparison-tables/{id} changes any of these. Rows sent replace all the rows the table has, in the order sent.
Box Templates
- GET /box-templates/spec describes what a template's settings may hold, with an example: give it to an AI assistant to have it design one.
- POST /box-templates/import adds up to 100 templates at once, in the same format as an exported template file. Every setting is checked as in Import templates on the Box Templates screen: what is not allowed is corrected, and each correction is listed in notes. A name that is already taken gets "(imported)" added.
- PATCH /box-templates/{id} changes a template's name, tags, favorite mark, whether new boxes start from it, or its settings, which are checked in the same way. Boxes that follow the template change with it.
Links
- POST /generic-links adds a link to a shop other than Amazon with its title and address (http or https), and if you like its network, price, currency, picture, categories and tags; PATCH /generic-links/{id} changes them. GET /generic-links lists them with search and filters, as the Generic Links screen does.