API introduction
GroKeeper API
On this page
The GroKeeper API lets your own software read and update a store: categories, products and their sizes, stock, orders and contacts. It is a JSON API. Your software sends an HTTP request, and the store answers with JSON. 20 calls in 6 resources are available today, and the store can also send your software a signed message the moment something happens (webhooks: 20 events).
Good to know
The API is for the person or company who connects a shop to other software, for example an accounting tool, a warehouse system or a spreadsheet. It works the same way for every GroKeeper store. If you are a shop owner looking for help with the admin, start with the Admin guide. If you are a developer, start with the Quick start.
What you can do#
| Resource | What you can read | What you can change |
|---|---|---|
| Categories | Nothing (read only) | |
| Products | ||
| Sizes (variants) | ||
| Inventory | ||
| Orders | ||
| Customers | Nothing (read only) |
Every call, with its address, the permission it needs and a request example in curl, PHP, Node.js and Python, is on the API reference.
The store's own address#
There is no shared GroKeeper address for the API. Every GroKeeper store has its own address, so the API address is the store's address followed by /api/v1. In these pages the example store is https://yourstore.example.com, so a call goes to https://yourstore.example.com/api/v1/products. Replace it with the address of the store you connect to. If you connect to several stores, each one has its own address and its own keys.
Quick start#
The short version. The Quick start page walks through it step by step, including how to read a page of orders and how to create a webhook.
- Ask a Super Admin of the store to create an API key: open Settings > API & webhooks > API keys in the admin and press Create API key. Give the key a name, and tick only the permissions it needs, for example
read:products. Copy the key when it is shown: it appears only once. - Send the key with every request in the header
Authorization: Bearer YOUR_API_KEY(or in anX-Api-Keyheader). - Call an address under
https://yourstore.example.com/api/v1. Answers are JSON.
curl -s "https://yourstore.example.com/api/v1/products?limit=5" \
-H "Authorization: Bearer YOUR_API_KEY"<?php
$ch = curl_init('https://yourstore.example.com/api/v1/products?limit=5');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_KEY',
],
]);
$response = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
// $response['error']['code'] and $response['error']['message'] say what to fix
}// Node.js 18 or newer (fetch is built in). Save as call.mjs and run: node call.mjs
const res = await fetch('https://yourstore.example.com/api/v1/products?limit=5', {
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const json = await res.json();
if (!res.ok) {
// json.error.code and json.error.message say what to fix
}# Python 3 with the requests library (pip install requests)
import requests
res = requests.get(
"https://yourstore.example.com/api/v1/products?limit=5",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
data = res.json()
if not res.ok:
# data["error"]["code"] and data["error"]["message"] say what to fix
print(data["error"])A success answer looks like this (a list also carries links):
{
"data": [
{
"id": 3,
"name": "Sample Category",
"slug": "sample-category",
"sort": 1,
"archived": false,
"general": false,
"products_count": 12,
"created_at": "2026-10-01T09:00:00Z",
"updated_at": "2026-10-01T09:00:00Z"
}
],
"meta": {
"page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
},
"links": {
"first": "https://yourstore.example.com/api/v1/categories?page=1",
"last": "https://yourstore.example.com/api/v1/categories?page=1",
"prev": null,
"next": null
}
}Good to know#
- Money is in whole units of the store's currency. Times are ISO 8601 in UTC, for example
2026-11-21T10:00:00Z(thecreated_atof an order is written with its UTC offset instead). - Ids are stable: an id is never reused or changed.
- Nothing is ever deleted through the API. Removing a product archives it.
- The API cannot take payments, refund, run a checkout or change stock directly. See what the API will never do.
- The API stays on
/v1and only ever grows: new fields, calls and events are added, and nothing is renamed or removed. See the API changes. - The examples in these pages use made-up values. Never put a real key in a web page, an app or a public repository.
Rolling out
A public storefront API (cart, checkout and customer sign-in for headless or custom storefronts) is coming soon. It is not built yet and has no date. Today the API is for connecting back-office software.
Where to go next#
- Quick start: from nothing to a first call, a page of orders and a webhook.
- How to call the API: your first request in curl, PHP, Node.js and Python.
- Authentication: keys, scopes and keeping keys safe.
- Responses and errors: the shape of every answer and every error code.
- Integration recipes: four worked examples (a paid order to your accounting system, stock sync, pushing products, returns).
- Go-live checklist and Security best practices: before you connect a real store.
- API reference: every call, one page for each resource.
- Webhooks: get a signed message when something happens in the store.
- Downloads: the OpenAPI 3.1 file and a Postman collection.