עברית
Unified API for Priority ERP

Priority Gateway

Ship the portal, the mobile app, the AI assistant, the automation — in days, not months. One gateway for every connector and every technology.

curl -X POST https://gateway/api/v1/query/form \
  -H "Content-Type: application/json" \
  -d '{
    "form": "ORDERS",
    "filter": { "STATDES": "Open" },
    "fields": ["ORDNAME","CUSTNAME","TOTAL"]
  }'

# → { "rows": [
#     { "ORDNAME": "SO20431", "CUSTNAME": "ACME", "TOTAL": 12450 },
#     ...
#   ] }

One gateway, four ways in. Read, write, run procedures, query across forms — over plain HTTPS.

Priority's current integration limits

Procedures, reports, actions, smart filters — WebSDK only

Running procedures, reports, form actions, and smart filters is limited to the Priority WebSDK. Python, .NET, and mobile stacks can't reach those surfaces directly.

No MCP layer for AI tools

Connecting Lovable, Base44, or any LLM to Priority requires an MCP layer — and Priority doesn't ship one.

One Gateway opens both — and gives Priority the AI surface it never had.

How It Works

One gateway sits between your customer's apps and their Priority. No SDK install on their side, no driver per laptop, no language lock-in — just HTTPS.

Web / Mobile Apps n8n Workflows Dashboards AI / LLMs App Generator Claude.ai Priority Gateway REST API WebSDK SQLI MCP Speaks Priority on the inside. Speaks plain HTTPS to everything else. Single .exe · Windows service Priority ERP Forms · Procedures Reports · Documents Data · Business Logic

Four ways into Priority

REST for code. SQLI for questions that cross forms. MCP for AI. One sign-in for the people using them.

Read and write Priority from anything that speaks HTTPS

The customer's portal, mobile app, n8n flow, Python script, .NET service — all hit the same REST endpoint. Forms, procedures, reports, document activations, file uploads. WebSDK and OData both sit behind it, and the gateway picks between them per call. One URL covers it.

Typical callers
Customer portals Mobile apps n8n flows Python / .NET ETL jobs
POST /api/v1/query/form
{ "form": "ORDERS",
  "filter": { "STATDES": "Open" } }
REST API WebSDK OData

Ask questions that cross forms

Real SQL over Priority's own query engine: joins between tables, GROUP BY, aggregates — over plain HTTPS, with no driver installed on any machine. Read-only by construction: mutating verbs are rejected before the call leaves the gateway. Dates, shifted decimals, and Hebrew right-to-left text come back decoded, not as raw Priority integers.

Typical callers
Dashboards BI tools Analytics jobs Data exports LLM agents
POST /api/v1/sqli/query
SELECT ORDERS.ORDNAME, CUSTOMERS.CUSTDES
  FROM ORDERS, CUSTOMERS
 WHERE ORDERS.CUST = CUSTOMERS.CUST FORMAT;
SQLI Read-only

Talk to Priority in plain language

Plug Claude.ai or Claude Desktop into the gateway and the customer's IT manager asks live questions of their Priority. Or build the customer's own AI assistant on top of the same MCP surface.

Typical callers
Claude Desktop claude.ai Lovable Base44 Custom AI agents
▸ You     Show open orders for ACME.

  Claude  priority_action(query, ORDERS,
            { CUSTNAME: "ACME" })
MCP Claude.ai

Sign in once — the app never holds a password

Server-side callers post credentials once to /auth/login and get back a bearer token with an idle window, an absolute expiry, and a per-user cap. Browser apps embed the hosted Connect popup instead: the user signs in to Priority inside it, and the app receives a revocable token. The password never reaches the calling page.

Typical callers
Customer portals Mobile apps Generated apps BI dashboards
POST /api/v1/auth/login
 { "token": "gws_…",
    "expiresAt": "2026-08-08T18:20:00Z" }
Bearer sessions Connect popup

Three more capabilities

Added since the gateway's first release.

Ask business questions in plain language

The gateway builds a scoped schema context out of the customer's own Priority — the tables a question touches, the filters that give them meaning, the join paths between them — and hands it to the model before it writes a line of SQL. "How much did we sell last month" comes back right the first time. Off by default; needs the BI schema graph on the same host.

Serve concurrent callers

The Priority WebSDK allows one login per process, so simultaneous calls used to queue behind one another. Turn on the worker pool and the gateway spreads them across a pool of worker processes, each holding its own Priority login.

The gateway teaches its callers

/api/v1/sqli/syntax returns the SQLI dialect. /api/v1/guide answers which technology fits a given job. /api/v1/n8n-guide is the n8n node's own authoring spec. A model fetches what it needs mid-conversation instead of guessing.

A built-in n8n node for Priority integrations

Shopify orders into Priority. Nightly invoice exports out. Document approvals routed through Slack. Drop the n8n-nodes-priority-gateway node onto the canvas and connect it — no bespoke glue code, no per-customer SDK build.

  • Five operations, 13 actions — read, create, update, delete, and upload over WebSDK; the same five over OData; procedures; reports; form actions; and SQLI as a visual builder or a raw query.
  • Field discovery in the dropdown. Pick a form, the fields appear; pick a field, the values lazy-load. No hand-typed schemas to keep in sync with the customer's Priority.
  • Subforms at any depth — parent, child, nested children — resolved through a single path walk. Order lines, document lines, allocation rows: all reachable.
  • The SQLI builder resolves the joins for you — pick a column from a related table and the node works out the path. And the gateway serves the node's own authoring spec at /api/v1/n8n-guide, so an LLM can write a working workflow without opening the editor.
  • The gateway picks the fastest path automatically. You wire n8n nodes; it handles the underlying call shape. Override when you want; the default is right most of the time.

v3.17.1 · 7,657 npm installs in the last 12 months · 61 releases

The node's parameter panel in n8n: operation OData, action Query, entity LOGPART — Part Catalogue, and an open field list showing Priority columns with their types.

Describe the app in one sentence. Hand it over the same afternoon.

Intake, live metadata discovery, scaffolding, a real-browser smoke test, and a handoff zip — one workflow. You describe what the customer needs; the generator ships a runnable Priority-backed app.

PHASE 1

Intake

Three questions lock pattern, form, and connection mode.

PHASE 2

Discovery

Researcher agent pulls live form metadata from the gateway.

PHASE 3

Build

Builder agent scaffolds the app on disk under generated-apps/.

PHASE 4

Smoke test

Tester agent walks the scenario in a real browser. Up to three retries.

PHASE 5

Handoff

Refinement re-enters at the lowest applicable phase — no full rebuilds.

Four patterns × three targets

Pick the shape, pick the stack — the generator picks the template.

React HTML Python CLI
Web app forms & auth single-file
Dashboard KPIs & filters read-only
Mobile-first responsive PWA, offline-resilient
Automation cron-friendly

Four subagents under the hood

The orchestrator dispatches one of these per phase.

AgentResponsibility
ResearcherPulls live form metadata from the Gateway
DesignerMaps forms and subforms to UI patterns
BuilderScaffolds files under generated-apps/
TesterWalks the scenario in real Chrome (≤3 retries)

Pre-built template library — growing every release

Reference apps the generator copies and customizes. New patterns ship in every release.

Dashboard React

orders-dashboard-react

Read-only orders dashboard with KPIs, search, and status filter.

Mobile-first HTML

stock-count-mobile-html

Mobile PWA stock count with subform writes and a finalize activation.

Automation Python CLI

invoice-export-python

Cron-friendly CLI that exports AINVOICES rows to CSV.

Web app React

employee-order-react

Employee-facing order entry form backed by Priority sessions.

Web app React

auth-contact-react

Contact form behind contact-based authentication.

Web app React

auth-priority-user-react

Auth scaffold for Priority-user logins.

Web app React

contacts-list-session-react

Stateful list browser with debounced search via the Session API.

+ more coming

New patterns ship in every release.

Connect AI to Priority ERP

Your customer wants AI that knows their Priority. Plug Claude.ai or Claude Desktop into the Gateway and they get it — their forms, their fields, their data, in their own words.

1

Discover

The LLM learns your forms, fields, subforms, and dropdown options on demand.

2

Ask

"Show open orders for ACME from this month." Natural language in, structured rows out.

3

Act

Create records, run procedures, generate reports, upload files — all in one conversation.

Works with

Claude.ai

Chat with live Priority data — ask, query, create.

Lovable

Generate web apps that read and write Priority through the gateway.

Base44

Internal dashboards on top of Priority — no backend code.

n8n + AI nodes

LLM reasoning inside workflows — smart routing, alerts, and triage.

Any MCP-compatible client connects. The gateway handles auth, routing, and session lifecycle. Full MCP details →

What partners are already shipping

Real customer asks already running on the gateway.

Order intake automation

Orders from e-commerce, EDI, or email flow through n8n into Priority — validated, enriched, and booked.

Mobile stock count on the floor

Single-file PWA on warehouse phones, generated from one prompt. Subform writes, finalize activation, survives a closed tab.

Ask the ERP in plain English

"Which orders shipped late this month?" Claude reads live Priority data and answers — no custom report.

Customer self-service portals

Orders, invoices, and delivery status — built in Lovable or Base44, served by the gateway.

Nightly invoice exports

Python CLI on a cron pulls AINVOICES to CSV, drops it on S3, SFTP, or FileSmile. Generated from one sentence.

Document generation on demand

Account ledgers and statements triggered from external systems — full document-activation flow over HTTP.

Where it runs

Hosted for you on Amazon Web Services with Cloudflare in front, or installed on your own network as a single Windows service. Same gateway either way.

Hosted on AWS

The hosted gateway runs in Amazon's Tel Aviv region, deployed from a versioned pipeline. Secrets live in AWS Parameter Store, encrypted, never in a database or a config file.

Cloudflare in front

Every request arrives through Cloudflare: TLS, DDoS protection, a web application firewall, rate limiting and bot filtering, plus caching and routing that shorten the trip from wherever your callers are.

No open front door

The servers accept no inbound connections. They dial out to Cloudflare and traffic comes back down that tunnel, so there is no public port to find and nothing to scan. Admin surfaces sit behind a second gate.

Running Priority on your own premises? The gateway ships as a single Windows service, and the same Cloudflare model is how it reaches the outside world — without opening a port on your network.

Part of the Priority AI-Tools suite

One registration connects your team to Priority through AI — Claude, ChatGPT, Gemini, BI, and app generation.