Getting Started

Environments & Base URLs

Staging and production hosts, route families and headers.

Hosts

EnvironmentAPI base URL
Staginghttps://staging-api.panoptesos.com
Productionhttps://api.panoptesos.com

Route families

Every route is versioned first and names its audience second: /api/v1/<area>.

FamilyRouteCredentialEnvelope
Console/api/v1/console/**Console JWT, or an API key with the matching cap: scope{ success, data, message, code, errors }
Public/api/v1/public/**API key (X-Api-Key){ ok, data } / { ok, error: { code, message } }
Guest/api/v1/guest/**None — the QR token in the path is the credential{ success, data, … }
MCP/api/v1/mcpAPI key or OAuth bearerJSON-RPC over Streamable HTTP
Realtime/api/v1/console/realtimeConsole JWT (access_token query)SignalR

Two console-envelope routes sit outside that pattern:

  • GET /api/v1/public/client-status takes no credential and answers { success, data } — see Client Status & Maintenance.
  • /api/v1/console/me/** (your own sessions, push devices, inbox and preferences) accepts a console JWT only; an API key is refused with 403 — see Sessions & Notifications.

The vendor platform plane (/api/v1/platform/**) and the internal offline drain are not part of the integrator API.

Common headers

HeaderWhen
X-Api-Key: pnp_<env>_<8hex>.<secret>Machine calls
Authorization: Bearer <jwt>Session calls from a dashboard you build
Idempotency-Key: <uuid>Required on POST /api/v1/public/orders and guest self-orders; recommended on every write that moves money or stock
Content-Type: application/jsonAny request with a body
Accept-Language: ar | enThe language of message on a maintenance (503) or upgrade (426) refusal; Arabic when absent
X-Request-Id: <uuid>Optional. A UUID you send is adopted as the request's id; otherwise one is minted. Echoed on every response

Every response carries X-Request-Id; quote it when you report a failure. Browsers can read it, and Date, across origins.

JSON fields are camelCase. Amounts are in the branch currency (IQD by default).