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

  1. Sign in to the Panoptes dashboard as the owner (or a user whose role holds manage_api_keys). Machine access needs the public_api feature on your plan.
  2. Open Settings → Developers and choose New key.
  3. Pick what the key may do. Prefer a module preset — preset:pos, preset:inventory, preset:catalog, … — or single cap:<capability> scopes over preset:full. A key never does more than the person who created it may do.
  4. 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.
  5. Copy the key. It looks like pnp_live_1a2b3c4d.<secret> and is shown once.

2. Pick an environment

EnvironmentBase URL
Staginghttps://staging-api.panoptesos.com
Productionhttps://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 403 when the branch's plan does not include it.
  • Idempotency — money-moving writes need an Idempotency-Key header; 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.