Developers / Build a Gear (hosted Gears)
Start building

Build a Gear (hosted Gears)

Build a Gear that runs on your own server - the manifest, permissions, webhooks, the install handshake and review.

NewUpdated Developers

Beta. Gears for outside companies are in an invitation-only beta: what it means and how to apply.

Companies in the beta build Gears for Vorjo shops. Your Gear runs on your own servers; Vorjo never runs your code. Vorjo lists it in the Gear Shop, adds your scripts and widgets to the shop's site, sends you shop events, and gives your server an access token limited to the permissions the shop owner accepted. It's the same model as Shopify apps.

Built-in Gears (made by Vorjo) are described in Gears.

How it works

  1. Register

    Go to vorjo.com/app/developers in the Studio. During the beta, apply first (or open the invite link we emailed you); once approved, accept the developer terms and you have a developer account. Your Vorjo account's email must be confirmed first, and the support email must be a permanent address (throwaway email domains are blocked). After that, your account menu has a Developer dashboard link.

  2. Create a Gear

    Pick an ID (review-booster; it never changes) and a name, then fill in the manifest with the form or as JSON. Vorjo checks it on every save and lists each problem. Under Listing, upload an icon and a card thumbnail: 1280 × 800 px (16:10), PNG, JPG or WebP, up to 1 MB.

  3. Test it

    Your own sites can install the Gear straight away and always run the newest version. Nobody else sees it yet. On the Gear's Overview, press Run checks to see the same automatic checklist reviewers see (below), before you submit.

  4. Submit for review

    Vorjo runs an automatic checklist on the version right away (below), then a Vorjo admin reads it, checks what changed since the live version, and tries it on a test site. Approved versions are listed in every Gear Shop with your name ("by Northwind Apps"). If changes are needed, you get the reason by email and in the portal.

  5. Update

    Saving after an approval starts a new version. Shops keep the approved one until the new one is approved. An approval covers the exact manifest the reviewer looked at: if you withdraw a version and change it, it's reviewed again. A test install on your own site ends if that site moves to another owner. If a new version asks for more permissions, each owner is asked to accept them first.

Private Gears

A private Gear is a Gear for your own business only: your own POS, booking system or stock tool. It uses the same manifest, tokens and webhooks as any Gear, but:

  • only your own projects can install it, from the Gear's Overview in the Developer dashboard (Install) or from your site's Gear Shop (Install on this project);
  • it's never listed in the Gear Shop and never reviewed, so no icon, listing text or policies are needed;
  • the access token is shown once when you install it (and with New token); an install address is optional;
  • it can ask for the POS and booking scopes (read_inventory, write_inventory, read_bookings, write_bookings, write_availability) and call the REST API with its token.

Private Gears are rolling out: they're on for a few accounts first.

Make one with New Gear › Private Gear, or set "type": "private" in the manifest. type is private or public (the default: a Gear for the Gear Shop). A Gear that's already listed can't become private.

JSON
{
  "id": "front-desk-pos",
  "type": "private",
  "name": "Front Desk POS",
  "scopes": ["inventory:write", "orders:read"],
  "webhooks": [
    { "event": "order.paid", "url": "https://pos.example.com/vorjo" },
    { "event": "inventory.low", "url": "https://pos.example.com/vorjo" }
  ]
}

Scopes can be written inventory:write or write_inventory; they're saved as write_inventory.

Each project's install has its own token, limited to the Gear's scopes, and its own rate limit (120 requests a minute, 429 with Retry-After above that). Remove revokes it at once and sends app.uninstalled. If you add a scope later, the token keeps the old ones until you press Accept for that project. Every call is listed in the Gear's Activity, with its answer.

Example: your own POS

Scopes products:write, inventory:write, orders:read. Each sale in the shop counts down the stock on the site; each paid order on the site reaches the POS.

Example
Shell
curl -X POST https://api.vorjo.com/v1/sites/linen-and-loom/inventory/4182/adjust \
  -H "Authorization: Bearer $VORJO_TOKEN" \
  -H "Idempotency-Key: sale-20261201-0042-1" \
  -H "content-type: application/json" \
  -d '{ "delta": -1, "reason": "POS sale #0042" }'

Use one Idempotency-Key per sale line: if the request is retried, the stock changes once. Subscribe to order.paid to take web orders into the POS, and inventory.low to reorder. A stock count is { "set": 24, "reason": "Stock count" }.

Example: your own booking system

Scopes bookings:write, availability:write. Times booked in your system block the same times on the site; bookings made on the site reach your system.

Example
JavaScript
const api = (path, init = {}) => fetch(`https://api.vorjo.com/v1/sites/bloom-studio/${path}`, { ...init,
  headers: { authorization: `Bearer ${process.env.VORJO_TOKEN}`, "content-type": "application/json", ...init.headers } }).then((r) => r.json());

// booked in our system: block it on the site (business time zone)
const block = await api("availability", { method: "POST", body: JSON.stringify({ date: "2026-12-04", start: "10:00", end: "11:30", note: "Booked in our system" }) });
// later, if it's cancelled there: free the time again
await api(`availability/${block.id}`, { method: "DELETE" });
// cancel a site booking (free bookings only; paid ones are cancelled by the owner)
await api("bookings/812/cancel", { method: "POST", body: JSON.stringify({ notify: true }) });

Subscribe to booking.created and booking.cancelled to copy the site's bookings into your system. POST bookings creates a booking for a free service from your system; it sends booking.created too, so skip the ones you made.

Unlisted Gears

An unlisted Gear is for businesses you work with: a POS you sell, a booking system for your clients. It's never shown in the Store. Owners install it from an install link you send them. Set "type": "unlisted" in the manifest.

  1. Create it in the Developer dashboard (New Gear › Unlisted Gear) and fill in the manifest. No icon, thumbnail or listing text is needed; a support email, privacy policy and terms are.
  2. Ask for approval on its Overview. Vorjo runs the automatic checks (webhooks answer, admin pages can be framed only by the Admin Panel, HTTPS) and a person approves it. Until then links don't open. A later version keeps the approved one running until it's approved too.
  3. Make install links on its Overview: each one is signed with your signing secret, expires after 1 to 30 days and installs on one site only. Cancel a link any time; making a new signing secret cancels every open link.

The owner opens the link, signs in, picks their site and sees your Gear, your name and what it can do in plain words. On Install, Vorjo installs it and either sends the access token to install.webhook (app.installed, signed, once) or, if your manifest has oauth.startUrl, sends the owner there with ?site=<site>&install=<id> so your Gear can ask for its token with OAuth (below). No token is put in the install notice then (data.oauth: true).

Public Gears

A public Gear is listed for every Vorjo shop: in the Gear Shop inside each Admin Panel and in the Store on vorjo.com. It can do everything an unlisted Gear can (the inventory, bookings and availability permissions, OAuth, admin pages), it can be free or charge a monthly price, and it gets the full review. Set "type": "public" in the manifest (or pick Public Gear under New Gear). Public Gears open to house accounts first, then to everyone.

  1. Build and test it on your own sites. Your own sites always run your newest version, free, without a review. Install it from your site's Gear Shop like an owner would.
  2. Fill in the listing. Icon, a 1280 × 800 thumbnail, a name, a tagline and a description in plain words for shop owners; your support email, privacy policy and terms of service; and for every permission a sentence on why the Gear needs it (scopeReasons).
  3. Run checks on the Overview and fix what fails (see The automatic checklist).
  4. Submit for review. A person at Vorjo installs it on a test shop, reads the checklist and your permission reasons, and approves or tells you what to change. You get an email either way.
  5. It's live. Approved versions are listed straight away. A new version with more permissions waits for review; owners who installed the old one accept the new permissions before the Gear gets them.

Owners see the Gear's access, its price and trial, and your terms and privacy policy before they install. A public Gear that uses OAuth can be authorized only where it's installed (or on your own sites): a paid Gear is always installed, and paid for, from the Gear Shop first.

Pricing and payouts

A public Gear can charge a monthly price in USD, from $1 to $499, with an optional free trial of up to 30 days:

JSON
"pricing": { "type": "paid", "amount": 9, "trialDays": 14 }
  • The owner pays Vorjo. Install opens a secure payment page; the owner's card is charged each month by Vorjo. The Gear is installed as soon as the subscription starts (or the trial does). A trial is given once per Gear per owner.
  • Vorjo keeps 30%, you get 70% of every payment. Each paid month is an earning in your Store payouts (vorjo.com/app/store/payouts), the same ledger as Store sales: it's pending for 14 days (the refund window), then available, and paid on the 15th of each month once your balance is at least $50, by bank transfer, PayPal or Wise. Add your payout and tax details there first.
  • Cancel means uninstall at the end of the month. When an owner uninstalls a paid Gear, it stops renewing and keeps working until the end of the month (or trial) they paid for; then it's uninstalled and you get app.uninstalled. They can undo it until then with Keep.
  • Refunds and disputes take the matching earning back (from your next payout if it was already paid).
  • Your own sites and Vorjo's reviewers never pay. Private and unlisted Gears are always free.
  • If Vorjo turns your Gear off, its subscriptions stop renewing at once and end with the month already paid.

Changing the price applies to new subscribers once the new version is approved; existing subscribers keep their price until they re-subscribe.

OAuth 2 with PKCE

Unlisted and public Gears can get their access token with the authorization code flow and PKCE (RFC 6749 and 7636, S256 only; no client secret needed, so it also works from a Gear on a phone). Add the addresses Vorjo may send the owner back to, exactly as they'll be used:

JSON
"oauth": { "redirectUrls": ["https://pos.example.com/vorjo/callback"], "startUrl": "https://pos.example.com/vorjo/start" }

1. Send the owner to the consent page. Make a random code_verifier (43-128 characters) and its challenge:

JavaScript
import crypto from "node:crypto";
const verifier = crypto.randomBytes(32).toString("base64url");
const challenge = crypto.createHash("sha256").update(verifier).digest("base64url");
const url = "https://portal.vorjo.com/oauth/authorize?" + new URLSearchParams({
  client_id: "your-app-id", redirect_uri: "https://pos.example.com/vorjo/callback", response_type: "code",
  code_challenge: challenge, code_challenge_method: "S256", state: csrfState,
  site: siteFromStartUrl,          // optional: the site, when you know it (from oauth.startUrl)
});

The owner picks one of their sites and allows it. An unlisted Gear can be authorized only on a site where it's installed (from a link) or on your own sites; pass the link's l value as link to install and authorize in one step. Asking again for a site that already gave your Gear this access skips the page and goes straight back.

2. The owner comes back to redirect_uri with ?code=vgc_…&state=…&site=<site>, or ?error=access_denied. Check state.

3. Exchange the code within 5 minutes, once:

Shell
curl https://api.vorjo.com/v1/oauth/token \
  -d grant_type=authorization_code -d client_id=your-app-id \
  -d code=vgc_... -d redirect_uri=https://pos.example.com/vorjo/callback -d code_verifier=$VERIFIER
JSON
{ "access_token": "vgt_…", "token_type": "Bearer", "scope": "write_inventory read_orders", "install_id": "42",
  "site": { "id": "…", "slug": "harbor-coffee", "name": "Harbor Coffee", "url": "https://harbor-coffee.vorjo.site" },
  "rest_base": "https://api.vorjo.com/v1/sites/harbor-coffee", "api_base": "https://api.vorjo.com/v1/admin" }

The token is for that one site and the scopes in your manifest. Each site has one token: a new exchange replaces the one before. Errors follow the RFC (invalid_grant, invalid_request…). A code is spent on its first try, right or wrong: a wrong code_verifier needs a new authorization, and using a code twice also revokes the token it gave (someone else may have it). scope in the request is optional; asking for a scope your manifest doesn't list is invalid_scope.

Revoke a token when the owner disconnects in your Gear: POST /v1/oauth/revoke with token and client_id (always 200). Owners revoke by uninstalling in their Gear Shop (you get app.uninstalled).

Admin pages

Your Gear can have up to 5 pages inside the owner's Admin Panel (under the Gear Shop, next to its Overview):

JSON
"adminPages": [{ "id": "stock", "title": "Stock", "url": "https://pos.example.com/vorjo/stock" }]

The URL must be on one of your origins and never on a Vorjo address. The page opens in a sandboxed frame (allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-downloads: it can never navigate the Admin Panel) as <url>?session=<token>&site=<site>.

Framing. Your page must allow only the Admin Panel to frame it, with this header (checked before approval and when the page opens; on other people's sites a page without it isn't shown):

JavaScript
Content-Security-Policy: frame-ancestors https://portal.vorjo.com

The session token is a JWT signed with HS256 and your Gear's signing secret. It lasts 5 minutes (never more than 10):

JSON
{ "iss": "https://portal.vorjo.com", "aud": "your-app-id", "app": "your-app-id", "sub": "<user id>", "project": "<site id>",
  "site": "harbor-coffee", "install": "42", "page": "stock", "owner": true, "iat": 1764600000, "exp": 1764600300, "jti": "…" }

Check it on your server before you show anything. Either verify it yourself:

JavaScript
const [h, p, s] = token.split(".");
const ok = crypto.timingSafeEqual(Buffer.from(s), Buffer.from(crypto.createHmac("sha256", SIGNING_SECRET).update(`${h}.${p}`).digest("base64url")));
const claims = JSON.parse(Buffer.from(p, "base64url"));
if (!ok || claims.aud !== "your-app-id" || claims.exp < Date.now() / 1000) throw new Error("not signed in");

or ask Vorjo (it also checks the Gear is still installed there):

Shell
curl https://api.vorjo.com/v1/apps/session/verify -H "Authorization: Bearer $SIGNING_SECRET" -d token=$SESSION
# → { "valid": true, "claims": { … } }   or 401 { "valid": false, "error": "expired" | "bad_signature" | "not_installed" … }

(The site's access token works instead of the signing secret: Authorization: Bearer vgt_….)

Talking to the Admin Panel. Send messages with parent.postMessage(message, "https://portal.vorjo.com"). Only these are taken, and only from your page's own origin:

MessageDoes
{ type: "vorjo:resize", height }Sets the frame's height (120-8000 px)
{ type: "vorjo:toast", message, tone? }Shows a short note in the Admin Panel (tone: "error" for a problem)
{ type: "vorjo:session" }Asks for a fresh token: you get { type: "vorjo:session", session, expiresAt } back
{ type: "vorjo:navigate", path }Opens a page of the Admin Panel for this site, like orders or products

A fresh token is also sent every 4 minutes while the page is open.

The manifest

JSON
{
  "id": "review-booster",
  "name": "Review Booster",
  "tagline": "Collect product reviews after every order.",
  "description": "Emails customers after delivery and shows **their reviews** on product pages.",
  "icon": "(set by uploading a PNG or SVG)",
  "thumbnail": "(set by uploading a 1280 × 800 picture)",
  "category": "reviews",
  "developer": {
    "name": "Northwind Apps", "supportEmail": "[email protected]", "website": "https://northwind.example",
    "supportUrl": "https://northwind.example/help",
    "privacyUrl": "https://northwind.example/privacy", "termsUrl": "https://northwind.example/terms"
  },
  "pricing": { "type": "free" },
  "scopes": ["read_orders", "read_products"],
  "origins": ["https://app.northwind.example"],
  "settings": [
    { "key": "publicKey", "label": "Public key", "type": "text", "required": true },
    { "key": "apiSecret", "label": "API secret", "type": "secret" },
    { "key": "style", "label": "Style", "type": "select", "options": [{ "value": "light", "label": "Light" }, { "value": "dark", "label": "Dark" }] }
  ],
  "scripts": [
    { "src": "https://app.northwind.example/loader.js", "placement": "head", "pages": "all" },
    { "inline": "window.RB = { key: {{publicKey}}, shop: {{shop.slug}} };", "placement": "body", "pages": "thank-you" }
  ],
  "widgets": [
    { "slot": "product", "type": "iframe", "url": "https://app.northwind.example/widget", "height": 220 },
    { "slot": "footer", "type": "html", "html": "<div class=\"rb-badge\">Rated {{style}}</div>" }
  ],
  "webhooks": [
    { "event": "order.paid", "url": "https://hooks.northwind.example/vorjo" },
    { "event": "app.uninstalled", "url": "https://hooks.northwind.example/vorjo" }
  ],
  "install": { "webhook": "https://hooks.northwind.example/install", "configUrl": "https://app.northwind.example/setup" }
}
FieldRequiredNotes
idyes3-40 lowercase letters, numbers or dashes. Set when you create the Gear; it can't change.
nameyesUp to 40 characters.
taglineto submitOne line, up to 90 characters.
descriptionto submitMarkdown, up to 4000 characters. HTML is removed.
iconto submitUpload a square PNG (512 × 512 is ideal, at most 2048 px and 512 KB) or an SVG. SVGs are rebuilt from shapes only (no scripts, links, styles or outside references).
thumbnailno, but recommendedThe picture on your Gear's card in the Store and the Gear Shop. Upload it in Listing › Thumbnail (or POST /api/developers/gears/<id>/thumbnail with the file as the body). 1280 × 800 px (16:10), PNG, JPG or WebP, up to 1 MB. It's shown at 640 × 400, so keep text large and the subject in the middle. A picture that isn't 16:10 or is smaller than 1280 × 800 is refused with the size it has; it's saved as WebP. Without one, the card shows your icon on a plain tile.
categoryyesmarketing, reviews, shipping, analytics, widgets, productivity, customers, content, sales. payments isn't available to outside developers yet.
developerto submitname, supportEmail, privacyUrl and termsUrl are required; website and supportUrl (a help or contact page, recommended) are optional. Shown on your Gear's page.
pricingno{ "type": "free" } (the default), or for a public Gear { "type": "paid", "amount": 9, "trialDays": 14 }: a monthly price in USD ($1 to $499) and an optional free trial (0 to 30 days). See Pricing and payouts.
scopeReasonsfor public Gears, to submitWhy the Gear needs each permission, one sentence each: { "read_orders": "Reads paid orders to print shipping labels." }. Reviewers read them, and owners see them before they install.
scopesnoThe permissions your Gear needs (below). Ask for as few as you can.
originsif you use scripts, widget frames or a setup pageUp to 5 https:// origins (no path). Scripts, frames, widget images and the setup page may only load from these.
settingsnoThe form owners fill in (below).
scriptsnoUp to 5.
widgetsnoUp to 4.
webhooksnoUp to 20.
installif you ask for permissionswebhook receives the access token. configUrl (optional, on your origins) opens inside the owner's admin.
oauthno (unlisted and public Gears)redirectUrls (up to 5) and an optional startUrl: see OAuth 2 with PKCE. With oauth, install.webhook isn't required.
adminPagesnoUp to 5 { id, title, url }, on your origins: see Admin pages.

Every address must be https://, without a user name or password, and can't point to a private network (localhost, 10.x, 192.168.x, 169.254.169.254 and similar).

Settings

Each field is { key, label, type, required?, default?, placeholder?, help?, showIf? }. Keys are letters and numbers only (publicKey, not public_key). Types:

  • text, textarea, number, toggle, heading (a section title)
  • select, with options: [{ value, label }]
  • secret: stored encrypted, never shown again and never put on a page. Your server reads it through the API.
  • list: rows of small text fields, { fields: [{ key, label, placeholder?, required? }], max?, addLabel? }
  • showIf: { otherKey: "value" } shows a field only when another one has that value.

For each place your widgets use, Vorjo adds an on/off switch ("Product pages", "Footer") for the owner.

Site scripts

JSON
{ "src": "https://app.northwind.example/loader.js", "placement": "head", "pages": "all", "integrity": "sha384-…" }
{ "inline": "window.RB = { key: {{publicKey}} };", "placement": "body", "pages": "thank-you" }
  • Added to the live site only, never the private preview, and only once the Gear is installed, switched on and its required settings are filled in.
  • Scripts run in the shop's own page, so they're reviewed with the rest of your Gear: on other people's sites only the version a Vorjo admin approved runs. A new version (any change, scripts included) runs on your own sites straight away and everywhere else once it's approved.
  • Never on the checkout, cart, login, signup, account or password pages, whatever pages says. Use a widget in the checkout place if you need to show something there.
  • placement: head or body. pages: all (every other page, including Vorjo's order tracking and thank-you pages) or thank-you (the order confirmation page).
  • src must be on one of your origins. It loads with referrerpolicy="strict-origin". Add integrity (a Subresource Integrity hash, sha256-, sha384- or sha512-) to pin the file: it's added with crossorigin="anonymous", so your server must send Access-Control-Allow-Origin. Inline code is JavaScript only (no <script> tags), up to 4000 characters, and any address in it must be on your origins.
  • {{settingKey}} inserts a setting as a JavaScript string (quotes included: write { key: {{publicKey}} }, not "{{publicKey}}"). Also available: {{shop.id}}, {{shop.slug}}, {{shop.name}}, {{shop.url}}, {{gear.id}}.

Widgets

Places (slot):

SlotOwner seesWhere
homeHome pageAbove the home page's footer
productProduct pagesWith the product's reviews
product.price.afterUnder the priceRight under a product's price
product.stock.afterUnder the stockRight under the stock line ("Only 3 left")
product.cart.beforeAbove Add to cartRight above the Add to cart button
product.cart.afterBelow Add to cartRight below the Add to cart button
footerFooter (every page)In the site's footer
checkoutCheckout and cartVorjo's checkout and cart (needs an admin's sign-off)

On the exact product places, a frame's signed address also gets product (the product ID), so you can show something for that product, like a payment-plan line under the price.

  • Frame ("type": "iframe"): your page in a sandboxed iframe (allow-scripts allow-forms allow-popups allow-same-origin), height 40-1200 px. Its address gets signed parameters (see Signed links). To change the height, post { type: "vorjo:resize", height: 320 } to the parent window.
  • HTML ("type": "html"): a small piece of HTML, cleaned when you save and again when it's shown. Allowed: div span p a img strong em b i u small br ul ol li h3 h4 h5 blockquote figure figcaption section button, with class id title alt role width height loading type aria-* data-*. Links must be https:// (or mailto:); images and <script src> must be on your origins. Inline scripts, style and event handlers (onclick…) are removed. {{settingKey}} inserts a setting as text.

Permissions (scopes)

Your access token can only reach the shop that installed your Gear, and only these parts of its admin API. Owners see each scope as an area and a level before they install (the same table every Gear uses, see Access), and every scope you ask for is shown: there are no hidden ones.

ScopeOwner seesAllows
read_productsProducts: Read, Inventory: ReadGET store/products, store/products/:id, store/collections, store/inventory, store/tags
write_productsProducts: Read and write, Inventory: Read and writePOST/PUT/DELETE store/products…, store/collections…, POST store/inventory/:variantId
read_ordersOrders: ReadGET store/orders, store/orders/:id (with customer names, emails and addresses)
write_ordersOrders: Read and writePOST store/orders/:id/fulfill (mark as sent, tracking), store/orders/:id/note, store/orders/:id/fulfillments/:fid/delivered. Never refunds, cancellations or payments.
read_customersCustomers: ReadGET store/customers, store/customers/:email
read_contentSite content: ReadGET content/:collection, GET blog/…
write_contentSite content: Read and writePOST/PATCH/DELETE content/:collection…, writes under blog/…
read_analyticsAnalytics: ReadGET store/stats, GET analytics
read_salesDiscounts: ReadGET store/sales, store/sales/:id (automatic sales)
write_salesDiscounts: Read and writePOST store/sales, PUT/DELETE store/sales/:id. Only the sales your Gear made can be changed or deleted. A sale is plain data (Sale): no code of yours runs when prices are worked out.
read_inventoryInventory: ReadPrivate Gears: GET inventory on the REST API
write_inventoryInventory: Read and writePrivate Gears: POST inventory/:variantId/adjust (with a reason and an Idempotency-Key)
read_bookingsBookings: ReadPrivate Gears: GET bookings
write_bookingsBookings: Read and writePrivate Gears: POST bookings (free services), POST bookings/:id/cancel (never paid ones)
write_availabilityAvailability: WritePrivate Gears: GET/POST availability, DELETE availability/:id (its own blocks)

A write scope includes its read scope (write_orders can also read orders and receive order webhooks), so it shows as "Read and write". scripts show as Live pages: Add code (with the hosts they load from) and widgets as Live pages: Add a widget (with the places). Webhooks need the matching read scope and are covered by that row.

Settings, payments, the team, domains, exports and other Gears are never open to Gears. The request and response shapes are those of the admin API routes.

The API

Every call goes to https://api.vorjo.com/v1/admin plus the route, with your access token:

HTTP
GET https://api.vorjo.com/v1/admin/<route>
Authorization: Bearer vgt_…

Two routes need no scope:

  • GET /v1/admin/shop → { shop: { id, slug, name, url, currency }, gear: { id, installId, mode }, scopes }
  • GET /v1/admin/gear/settings → { settings }: the owner's settings for your Gear, secrets included.
Example: the shop's orders
Shell
curl https://api.vorjo.com/v1/admin/store/orders \
  -H "Authorization: Bearer $VORJO_TOKEN"

Errors are { error } with 401 (no or revoked token), 403 (a scope you weren't given), 404 (not open to Gears) or 429 (more than 120 requests a minute per token; wait and retry). Tokens are stored hashed: Vorjo can't show one again. If you lose it, the owner reinstalls the Gear.

The install handshake

When an owner installs your Gear they see its permissions, scripts and widgets and accept them. Vorjo then:

  1. creates an access token for that shop with exactly the accepted scopes,
  2. POSTs app.installed to install.webhook (signed like every webhook):
JSON
{
  "id": "6f1c…", "event": "app.installed", "createdAt": "2026-11-18T10:00:00.000Z",
  "gear": { "id": "review-booster" },
  "shop": { "id": "k3j9x2", "slug": "linen-and-loom", "name": "Linen & Loom", "url": "https://linen-and-loom.vorjo.site" },
  "data": { "installId": "41", "scopes": ["read_orders", "read_products"], "mode": "live", "apiBase": "https://api.vorjo.com/v1/admin", "accessToken": "vgt_…" }
}

Store the token against shop.id. It's sent once: the delivery log shows [sent once] in its place and it can't be redelivered. mode is live, dev (your own site) or review (a Vorjo admin testing it).

On uninstall Vorjo revokes the token at once, removes your scripts and widgets, deletes the owner's settings and POSTs app.uninstalled (data: { installId }) to install.webhook, and to any webhook subscribed to app.uninstalled at another address. Delete the shop's data within 30 days when asked.

Webhooks

Events: order.created, order.paid, order.fulfilled, order.refunded, order.cancelled (need read_orders), product.updated (needs read_products), customer.created (a customer's first order; needs read_customers), app.installed, app.uninstalled. Private Gears also get booking.created, booking.cancelled (need read_bookings) and inventory.low (needs read_inventory); see Topics for Gears. The body is { id, event, createdAt, gear, shop, data }; for orders data is the order (with test: true for test orders from the preview).

Every request carries:

HeaderValue
X-Vorjo-Evente.g. order.paid
X-Vorjo-Deliverythe delivery's ID (the same on every retry: use it to skip duplicates)
X-Vorjo-TimestampUnix seconds when this try was sent
X-Vorjo-Signaturev1= + hex HMAC-SHA256 of "<timestamp>.<raw body>" with your signing secret
X-Vorjo-Shop, X-Vorjo-Gearthe shop's address name and your Gear's ID

Answer with any 2xx within 10 seconds. Anything else is retried after about 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours (6 tries), then marked failed. Vorjo doesn't follow redirects. The delivery log in the developer portal shows the last 100 deliveries (kept 30 days) with your server's answer, and can send one again.

When you submit a version, Vorjo sends a signed ping (event ping, shop: null) to each webhook address and to your install address. Answer it with any 2xx within 5 seconds.

Verifying a webhook (Node)

JavaScript
import crypto from "node:crypto";
import http from "node:http";

const SECRET = process.env.VORJO_SIGNING_SECRET; // vgs_… from the developer portal

function verify(req, raw) {
  const ts = Number(req.headers["x-vorjo-timestamp"]);
  if (!ts || Math.abs(Date.now() / 1000 - ts) > 300) return false; // older than 5 minutes: a replay
  const want = "v1=" + crypto.createHmac("sha256", SECRET).update(`${ts}.${raw}`).digest("hex");
  const got = String(req.headers["x-vorjo-signature"] || "");
  return got.length === want.length && crypto.timingSafeEqual(Buffer.from(got), Buffer.from(want));
}

http.createServer((req, res) => {
  let raw = "";
  req.on("data", (c) => (raw += c));
  req.on("end", () => {
    if (!verify(req, raw)) { res.writeHead(401); return res.end(); }
    const ev = JSON.parse(raw);
    if (ev.event === "app.installed") saveToken(ev.shop.id, ev.data.accessToken);
    if (ev.event === "order.paid") queueReviewEmail(ev.shop.id, ev.data);
    res.writeHead(200); res.end("ok");
  });
}).listen(8080);

Verify the raw body, before parsing it. You can make a new signing secret at any time; it's used at once.

Ask Vorjo actions

Private Gears (house accounts for now) can add up to 5 actions and 5 questions to the owner's Ask Vorjo, with ask in the manifest:

JSON
"ask": {
  "actions": [{ "id": "push_order", "label": "Send an order to Demo CRM", "about": "send one order to the CRM",
    "examples": ["Send order 1042 to Demo CRM"], "scope": "write_orders",
    "params": { "order": { "type": "text", "max": 20, "required": true, "about": "the order number" } },
    "confirm": "Send order {{order}} to Demo CRM?", "url": "https://crm.example.com/vorjo/ask" }],
  "tools": [{ "id": "deals", "label": "Open deals", "about": "open deals in the CRM", "examples": ["How many open deals?"],
    "scope": "read_orders", "params": {}, "url": "https://crm.example.com/vorjo/ask" }]
}
  • scope must be one of your Gear's permissions, granted on that site; actions need a write_ permission.
  • url must be on one of your origins. It is never shown to the AI.
  • Param types: text (with max, up to 200), int, num (with min and max), enum (with values), bool. Tools take text, int and enum.
  • An action always shows the owner a card with your confirm sentence, filled with the params as plain text. Only the owner sees hosted Gear actions.

After the owner confirms (or asks the question), Vorjo POSTs to url, signed like a webhook, with event ask.action or ask.tool and data: { action | tool, params, requestedBy }. Answer within 10 seconds:

  • an action: { "message": "Order 1042 is in Demo CRM now." }
  • a question: { "sentence": "3 open deals.", "columns": [{ "key": "deal", "label": "Deal" }, { "key": "value", "label": "Value", "kind": "money" }], "rows": [{ "deal": "Big one", "value": 900 }] }
  • a problem: any non-2xx with { "error": "plain sentence" }.

Text is shown as plain text (HTML is removed). Calls aren't retried, and they appear in your Gear's activity.

Widget frames and the setup page get these query parameters: kind (widget or setup), shop (the shop's address name), install (the install ID), ts (Unix seconds), widgets also slot, test (1 on the preview) and, on the exact product places, product, and sig. sig is the hex HMAC-SHA256, with your signing secret, of the other parameters sorted by name and joined as key=value&key=value (values URL-encoded). Links are valid for 10 minutes.

JavaScript
function verifyLink(url, kind, maxAge = 600) { // kind: "setup" on your setup page, "widget" in a widget
  const q = new URL(url).searchParams, sig = q.get("sig") || ""; q.delete("sig");
  if (q.get("kind") !== kind) return false; // widget links are public: never accept one on the setup page
  const base = [...q.keys()].sort().map((k) => `${k}=${encodeURIComponent(q.get(k))}`).join("&");
  const want = crypto.createHmac("sha256", SECRET).update(base).digest("hex");
  return sig.length === want.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(want)) && Math.abs(Date.now() / 1000 - Number(q.get("ts"))) <= maxAge;
}

A widget page should only show public information (reviews, ratings). Use the setup page, inside the owner's signed-in admin, for anything that changes the shop's account with you, and check kind there: any visitor of the shop can get a fresh widget link, so a setup page that accepts one lets strangers act as the owner.

Review guidelines

The automatic checklist

Every submitted version gets these checks, and you can run them yourself any time with Run checks on the Gear's Overview (5 runs in 10 minutes). Each one passes, warns or fails. A failed check doesn't stop you submitting, but the admin sees it and approves over it only with a written reason, so fix what you can first.

CheckWhat it looks at
Manifest validEvery rule above, and everything needed to submit.
HTTPS onlyEvery address in the manifest uses https://.
Script hostsScript files load only from your origins.
Scripts loadEach script file answers 200 within 8 seconds, is JavaScript and is under 512 KB.
Script integrityScript files have an integrity hash (warning if missing; fails if it doesn't match the file).
Script red flagseval, new Function, document.write or timers with code strings (warning).
Sensitive pagesScripts with pages: "checkout" or widgets in the checkout slot fail: checkout, cart, login and account pages need an admin's sign-off.
PermissionsWrite permissions that your tagline and description don't explain (warning). Public and paid Gears: every permission needs a reason in scopeReasons (fails without).
WebhooksEach address answers the signed ping with 2xx within 5 seconds.
Install and setupYour install address answers the ping; your setup page loads with a signed link.
Icon and thumbnailBoth uploaded and cleaned (a missing thumbnail is a warning).
Listing textName, tagline and description are there and the right length; no "Vorjo" or "official" in the name or tagline, no claims to be made by Vorjo; plain words, no shouting or hype (warning).
PricingFree, or a monthly USD price from $1 to $499 with a trial of 0 to 30 days. Only public Gears can charge.
Privacy and supportA privacy policy that loads, and a support email or page. Public and paid Gears also need terms of service.
Changes since liveNew scripts, origins or permissions since your approved version are highlighted for the admin.
Widget sandboxWidget frames aren't on Vorjo's own addresses and widget HTML has no inline script.
Admin pagesGears with admin pages: each page loads and allows only the Admin Panel to frame it (Content-Security-Policy: frame-ancestors).

Network checks never reach private addresses, follow redirects only to public ones, and stop after a few seconds.

Limits

Each developer account can have up to 10 Gears; contact support if you need more. Creating Gears, saving the manifest, uploading images, submitting and running checks are rate-limited per developer (a 429 means wait a few minutes). Found a way around a limit, or any other weakness? See Security and testing.

What gets approved

Vorjo approves a version when:

  • the permissions match what the Gear does, and nothing more;
  • the listing is accurate, in plain words for shop owners, with a working support email, privacy policy and terms;
  • scripts are small and asynchronous, load only from your origins, and don't change Vorjo's checkout, prices or stock;
  • widgets look right on light and dark sites and on phones, and say who provides them;
  • shop and customer data is used only to provide the Gear, never sold or used for unrelated marketing;
  • webhooks are answered quickly and signatures are checked;
  • the Gear works when installed on a fresh test shop.

Public Gears are also held to these:

  • every permission has a reason an owner would accept, and the Gear really uses it;
  • a paid Gear says on its listing what the price includes, and works fully during the trial;
  • admin pages work inside the Admin Panel's frame, on phones too, and look like part of it (no full-page logins on every visit);
  • the Gear keeps working when the owner revokes and reconnects it, and deletes the shop's data within 30 days of uninstall when asked;
  • its API calls mostly succeed: when more than 20% fail in an hour, Vorjo emails you (at most once a day) and the reviewers see it in Admin › Store › Developer Gears.

Vorjo can turn a Gear off on every site at once if it breaks these rules or puts shops at risk: tokens stop working, scripts and widgets disappear and webhooks stop until it's turned back on. You're told the reason by email.

Esc
Developer docs
Developer overviewHow a Vorjo site is put together, and the ways to build on it - the public API, the REST API and webhooks, the site toolkit and Gears.Shop and content APIEvery address a site uses for its products, checkout, orders, blog, content, forms, bookings, reviews and accounts, plus the admin routes.AI agents (MCP)Connect Claude, ChatGPT, Cursor or any MCP client to your Vorjo sites. It manages orders, products, bookings and messages, asks the Studio for changes and publishes, with the access you allow.Site REST APIRead a site's orders, products, bookings, contacts, invoices, form entries and subscribers, and make changes, with an API key from Settings › Developers.The site toolkit (React)The hooks and components every Vorjo site uses for its shop, blog, content, forms, bookings, reviews and SEO.GearsHow Gears (add-ons) are built - one module with a manifest that plugs into payments, the page head, routes, events and widget slots.
↑ ↓ to moveEnter to openEsc to close