Getting Started
Getting Started
Create an API key and make your first Panoptes API call.
Panoptes is a restaurant operating system for Iraq. Its API reaches every action a user can take in the dashboard — the till and orders, the kitchen display, menu and pricing, inventory and production, purchasing, delivery channels, cash and loss control, accounting, HR and payroll, guests, loyalty and reservations, the Instagram / Messenger / WhatsApp inbox, and reports — and tells you about every change through signed webhooks. An AI agent can use the same API through the MCP server.
1. Create an API key
- Sign in to the Panoptes dashboard as the owner (or a user whose role holds
manage_api_keys). Machine access needs thepublic_apifeature on your plan. - Open Settings → Developers and choose New key.
- Pick what the key may do. Prefer a module preset —
preset:pos,preset:inventory,preset:catalog, … — or singlecap:<capability>scopes overpreset:full. A key never does more than the person who created it may do. - Choose test or live. It is only a label on the key, so you can tell your integrations apart; both act on the same real data.
- Copy the key. It looks like
pnp_live_1a2b3c4d.<secret>and is shown once.
2. Pick an environment
| Environment | Base URL |
|---|---|
| Staging | https://staging-api.panoptesos.com |
| Production | https://api.panoptesos.com |
Build and test against staging first. Each environment has its own accounts and keys — a staging key does not work in production.
3. Make a call
The partner API under /api/v1/public/** is the stable, minimal surface (menu, inventory, suppliers,
orders):
curl -s "https://staging-api.panoptesos.com/api/v1/public/items?limit=10" \
-H "X-Api-Key: pnp_test_1a2b3c4d.YOUR_SECRET"
The console API under /api/v1/console/** is everything the dashboard does. A key calls an action when
it holds a cap: scope for one of the capabilities the action accepts:
curl -s "https://staging-api.panoptesos.com/api/v1/console/pos/orders?perPage=20" \
-H "X-Api-Key: pnp_test_1a2b3c4d.YOUR_SECRET"
4. Read what an endpoint needs
Every endpoint in the API Reference has a box that says exactly what it requires, taken from the server's own checks:
- Capability and the API key scope that carries it (
cap:create_sale, …). - Plan feature — the call answers
403when the branch's plan does not include it. - Idempotency — money-moving writes need an
Idempotency-Keyheader; a retry with the same key replays the first answer instead of doing the work twice. - Signed-in user only — sign-in flows, creating keys, changing the team and roles, and a few other actions are refused to API keys on purpose. Do those in the dashboard.
5. Go further
- Permissions & Scopes — presets, what a key can and cannot reach.
- Webhooks — every audited change pushed to your endpoint, signed.
- MCP — connect Claude, ChatGPT or Cursor to answer questions from real numbers.
- Try any endpoint from the Try it console in the API Reference, or import the Postman collection.