API and webhooks
Make keys for the store API and MCP clients, add webhooks for n8n, Make or Zapier, and read each webhook's delivery log.
Settings > API and webhooks is where a store's integrations start: the store API's address, the keys that call it, and the webhooks Starsell calls when something happens. This page covers what to click in the admin. The API itself, authentication, events and signatures are in Developers.
Store API
The Store API card shows the Address for this store with a copy button, a link to the OpenAPI document (import it into Postman, Insomnia or an AI tool), and how many API calls the store had in the last 24 hours. The API is REST over HTTPS with JSON, and each key gets 240 calls a minute.
Make a key
One key works for the store API and for MCP clients, set up on Use your own AI.
Name it
Under API and MCP keys, type a name, for example the tool you connect: n8n.
Pick what it can do
- Read only - orders, products, collections, customers, checkouts and events.
- Can edit - also ships and refunds orders, changes prices and stock, and manages webhooks.
Copy it
Click Make a key. The key (it starts with vtk_) is shown once: copy it, then Done, hide the key. Only a hash is kept, so a lost key can't be shown again; revoke it and make another.
Rules that apply to keys:
- A key acts with the permissions of the person who made it, in this store only. A Can edit key can't do more than its maker can.
- Making keys needs the Starsell AI permission in the store, and Can edit keys need Products too.
- Revoke stops a key at once. The person who made it, or anyone with the Settings permission, can revoke it.
- The list shows when each key was last used.
Add a webhook
Webhooks need the Settings permission. A store can have up to 20.
Add it
Click Add webhook and paste the Endpoint URL (the Webhooks trigger in n8n, Make or Zapier gives you one). Add a Description if you like, so the team knows what it's for.
Pick the events
Tick events by what they're about (Orders, Checkouts, Customers, Products), or Every event, which includes types added later.
Copy the signing secret
Click Add webhook. The signing secret is shown once: copy it into your receiver to check the X-Starsell-Signature header on each delivery, then Done, hide the secret.
Send a test
Send test posts a sample event and opens the delivery log, so you can see what your endpoint answered.
The URL must be a public address on port 80, 443 or above 1023, without a user name or password in it. Private and local addresses are refused.
Manage webhooks
Each webhook shows its host, events and how many deliveries went out in the last 24 hours, with a dot: green On, red Failing, grey Off. The menu has Edit, Turn off or Turn on, New signing secret (the old one stops working at once) and Delete (its delivery log goes with it).
Log opens the delivery log, newest first: each delivery's answer code, event, time and tries. Open one to see the response body and Redeliver it. The log keeps 30 days of deliveries.
A failing webhook turns itself off
A delivery that fails is tried again for a day. A webhook that hasn't had a delivery go through for 3 days is turned off, with a line in the Activity log. Fix the endpoint, then Turn on.
Examples
The Examples card has copy-and-paste starts for curl, n8n, Make, Zapier and Signature (checking the signature in Node or Bun). After you make a key, the examples use it.
Related
Privacy and cookies
The cookie banner and where it shows, waiting for consent before analytics and marketing tags, the "Do not sell or share" link, and how tags read the visitor's choice.
Notifications
The order emails buyers get and the alerts your team gets - which ones go out, their wording per language, the variables they use, and who gets staff alerts.