Site REST API
Read a site's orders, products, bookings, contacts, invoices, form entries and subscribers, and make changes, with an API key from Settings › Developers.
The site REST API is for the site's owner and their tools: n8n, Zapier, Make, a spreadsheet script or your own server. It can see everything in the admin panel that its key is allowed to, unlike the public Shop and content API, which only shows what a visitor could see.
- Address:
https://api.vorjo.com/v1/sites/<site>plus the path below, where<site>is the site's ID (its address name, shown in Settings › Developers › Quick start). With an API key,<site>can also beme: the key's own site. - Key: every request sends
Authorization: Bearer vsk_…. Make keys in Settings › Developers › API keys. - Format: JSON in and out, camelCase keys, money as numbers in the site's currency, dates as ISO 8601 strings in UTC.
A request with an API key always goes to this API. Without one, the same address is the public API.
A private Gear calls this API too, with its install's access token (Authorization: Bearer vgt_…) instead of a key. The Gear's scopes decide what it may do (see Gears and scopes).
API keys and scopes
Each key belongs to one site and works only there. A key is shown once when it's made; Vorjo keeps only its SHA-256 hash, so a lost key can't be shown again: revoke it and make a new one. A revoked key stops working at once.
Give each tool its own key with only the access it needs:
| Scope | Allows |
|---|---|
orders:read | List and get orders |
orders:write | Mark orders as sent (fulfilments). Includes orders:read. |
products:read | List and get products and their variants |
products:write | Create draft products. Includes products:read. |
bookings:read | List and get bookings |
bookings:write | Create bookings for free services. Includes bookings:read. |
contacts:read | List and get contacts |
contacts:write | Create contacts and change their tags. Includes contacts:read. |
invoices:read | List and get invoices and quotes |
invoices:write | Create draft invoices and quotes. Includes invoices:read. |
forms:read | List and get form entries |
subscribers:read | List and get newsletter subscribers |
inventory:read | List and get stock levels per product variant |
inventory:write | Change stock levels, each change with a reason. Includes inventory:read. |
availability:read | List the times that can't be booked |
availability:write | Block and unblock times for bookings (only the blocks this key made). Includes availability:read. |
leads:read | List taps on the site's Call, WhatsApp and Email links (the kind and the page, never who) |
A call without the scope it needs gets 403 with the code insufficient_scope.
Endpoints
me- Returns
{ site: { id, slug, name }, key: { id, name, scopes, rateLimit } }
orders?status=&payment_status=&fulfillment_status= - Returns
- A page of orders
orders/:id - Returns
- One order
orders/:id/fulfillments - Body
{ lines?: [{ lineId, qty }], carrier?, trackingNumber?, trackingUrl?, notify? }- Returns
201and the order. Withoutlines, everything not yet sent.notify(default true) emails the customer.
products?status= - Returns
- A page of products with their variants
products/:id - Returns
- One product
products- Body
{ title, description?, handle?, type?, vendor?, tags?, images?: ["https://…"], options?, specs?: [{ name, value, group? }], variants?: [{ title, price, sku?, compareAtPrice?, trackInventory?, inventory? }] }- Returns
201and the product, always as a draft: the owner publishes it
bookings?status=&service= - Returns
- A page of bookings
bookings/:id - Returns
- One booking
bookings- Body
{ service, start, staff?, customer: { name, email, phone?, note? } }- Returns
201and the confirmed booking. Free services only;startmust be a free slot. The customer gets the usual confirmation email.
contacts?tag=&email=&source= - Returns
- A page of contacts
contacts/:id - Returns
- One contact
contacts- Body
{ name?, email?, phone?, company?, notes?, tags?, address? }- Returns
201and the contact. An email that's already a contact is409 already_existswith itsid.
contacts/:id/tags - Body
{ add?: string[], remove?: string[] }- Returns
- The contact with its new tags
contacts/:id - Body
{ name?, email?, phone?, company?, notes?, tags?, address? }- Returns
- The contact. Fields left out stay as they are; an email another contact has is
409 already_exists. Needscontacts:write.
contacts/:id/notes - Body
{ body }- Returns
201and{ id, contactId, body, createdAt }. Needscontacts:write.
contacts/:id/tasks - Body
{ title, dueAt? }- Returns
201and{ id, contactId, title, dueAt, done, createdAt }. Needscontacts:writeand the Tasks & reminders Gear (409 tasks_offwithout it).
leads?kind= - Returns
- A page of taps:
{ id, kind /* call | whatsapp | email */, page, createdAt }. Needsleads:read.
hooks- Returns
- This key's REST hooks:
{ data: [{ id, url, event, app, enabled, createdAt }] }
hooks- Body
{ url, event, app? }- Returns
201and the hook with its signingsecret(only now). See REST hooks.
hooks/:id - Returns
{ id, deleted: true }. Only hooks this key made.
invoices?kind=&status= - Returns
- A page of invoices and quotes (
kind:invoiceorquote)
invoices/:id - Returns
- One invoice or quote
invoices- Body
{ kind?: "invoice" | "quote", customer: { name, email, company? }, contactId?, currency?, lines: [{ title, qty, price, taxName?, taxRate? }], dueDate?, notes?, terms? }- Returns
201and the draft. The owner checks and sends it.
form-entries?form=&status= - Returns
- A page of form entries (spam left out)
form-entries/:id - Returns
- One form entry
subscribers?status= - Returns
- A page of newsletter subscribers (
subscribed,pending,unsubscribed)
subscribers/:id - Returns
- One subscriber
inventory?sku=&low=1&product= - Returns
- A page of stock levels:
{ variantId, productId, product, variant, sku, inventory, trackInventory, allowBackorder, low }, pluslowStock(the site's alert level)
inventory/:variantId - Returns
- One variant's stock
inventory/:variantId/adjust - Body
{ delta, reason }or{ set, reason }- Returns
- The variant's stock with
previous,deltaandreason. Needs anIdempotency-Key.deltaadds or takes away (-1for a sale);setis a count. Turns on stock tracking for the variant and logs the change in its history (Inventory in the admin panel).
bookings/:id/cancel - Body
{ notify? }- Returns
- The cancelled booking.
notify(default true) emails the customer. Cancelling again returns the same booking. A booking paid online is409 payment_taken: the owner cancels it in the admin panel, so the refund is handled there.
availability- Returns
{ data: [{ id, date, to, start, end, allDay, staff, note, createdBy, mine }], timezone }: time off and blocks, in the business's time zone
availability- Body
{ date, to?, start?, end?, staff?, note? }- Returns
201and the block, plusconflicts: ids of bookings already in that time (they stay). Days are2026-12-24, times09:00in the business's time zone; leave outstartandendfor whole days;tofor several days.
availability/:id - Returns
{ id, deleted: true }. Only blocks this key or Gear made.
Free slots for POST bookings come from the public API: GET bookings/slots?service=&date= without a key. Services that take a payment are booked on the site, where the customer pays.
Previews (test orders, bookings and messages) are never listed.
curl "https://api.vorjo.com/v1/sites/harbor-coffee/orders?limit=2" \
-H "Authorization: Bearer vsk_YOUR_KEY"const r = await fetch("https://api.vorjo.com/v1/sites/harbor-coffee/orders?limit=2", { headers: { authorization: `Bearer ${process.env.VORJO_KEY}` } });
const { data, hasMore, nextCursor } = await r.json();{
"data": [
{ "id": "1042", "number": 1042, "name": "#1042", "status": "open", "paymentStatus": "paid", "fulfillmentStatus": "unfulfilled",
"currency": "USD", "subtotal": 24, "discountTotal": 0, "shippingTotal": 5, "taxTotal": 0, "total": 29, "refunded": 0,
"customer": { "name": "Mia Wong", "email": "[email protected]", "phone": "" },
"lines": [{ "id": "l8x2", "productId": "17", "variantId": "31", "title": "Mug", "variantTitle": "", "sku": "MUG-1", "qty": 2, "price": 12, "total": 24, "fulfilled": 0 }],
"fulfillments": [],
"source": { "label": "Google Ads — Holiday Beans", "channel": "Paid search", "campaign": "Holiday Beans", "keyword": "coffee gift set", "landing": "/", "recorded": true,
"first": { "label": "Google Shopping (free listing)", "channel": "Shopping (free listings)", "landing": "/products/mug", "clickType": "srsltid", "...": "..." },
"last": { "label": "Google Ads — Holiday Beans", "channel": "Paid search", "source": "Google Ads", "name": "Google", "utm": { "source": "google", "medium": "cpc", "campaign": "Holiday Beans", "term": "coffee gift set" }, "clickType": "gclid", "clickId": "Cj0KCQiA…", "referrer": "google.com", "at": "2026-11-21T09:02:11.000Z" } },
"createdAt": "2026-11-21T09:12:04.000Z", "updatedAt": "2026-11-21T09:15:40.000Z" }
],
"hasMore": true,
"nextCursor": "MTA0MQ"
}Orders and bookings carry source: where the customer came from, as the first and last visit before buying (UTM tags, the ad network's click id, the referring site and the landing page). recorded: false means no source was kept (a direct visit, or the visitor didn't allow cookies); null means the order was placed before sources were kept. Webhooks send the same object.
REST hooks
Zapier, Make and similar tools subscribe a web address to one event when an automation is turned on, and unsubscribe when it's turned off. POST hooks with { "url": "https://hooks.zapier.com/…", "event": "order.created" } makes a hook; the answer has its id (keep it to unsubscribe) and its signing secret. Deliveries are the usual webhook events: signed with that secret, retried, and listed in Settings › Developers › Logs.
- The address must be
https://on a public host. - The key needs the read scope of the event:
orders:readfororder.*,bookings:readforbooking.*,contacts:readforcontact.created,customer.signed_upandchat.lead,forms:readforform.submitted,leads:readforlead.tapped, and so on. Otherwise403 insufficient_scope. - A key can have 30 hooks and a site 60 (
409 too_many_hooks). They don't count towards the 10 endpoints in Settings › Developers. - Only the key that made a hook lists or removes it. Revoking the key removes its hooks.
The Zapier & Make Gear makes keys with the scopes its triggers and actions need, so owners don't pick scopes themselves.
Pagination and changes since
Lists are newest first and come in pages of { data, hasMore, nextCursor }.
limit: 1 to 100 (default 50).cursor: thenextCursorof the page before. Keep asking untilhasMoreisfalse.updated_since: an ISO date and time. Only records changed at or after it, for syncing: save the time you started, then ask for changes since then next time.
Idempotency
Send an Idempotency-Key header (any string up to 200 characters, like a UUID) with a POST to make it safe to retry. The first answer is kept for 24 hours: the same key and request get the same answer again, with Idempotent-Replayed: true, and nothing is created twice. The same key with a different request gets 409 idempotency_conflict. Keys are per API key.
curl -X POST "https://api.vorjo.com/v1/sites/harbor-coffee/contacts" \
-H "Authorization: Bearer vsk_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2b9e-0d4a-4a6b-9c1e-2f7d8e9a0b1c" \
-d '{"name":"Ava Chen","email":"[email protected]","tags":["Lead"]}'Gears and scopes
A private Gear's token works on the endpoints above that match its scopes:
| Gear scope | REST scope it gives |
|---|---|
read_orders / write_orders | orders:read / orders:write |
read_products / write_products | products:read / products:write (and inventory:read / inventory:write) |
read_inventory / write_inventory | inventory:read / inventory:write |
read_bookings / write_bookings | bookings:read / bookings:write |
write_availability | availability:read and availability:write |
read_customers | contacts:read |
Invoices, form entries and subscribers aren't open to Gears. A Gear's rate limit is per Gear per project: 120 requests a minute, shared with the admin API. Every call is listed in the Gear's Activity (the owner's Gear page and the Developer dashboard), with its answer.
Errors
Every error has the same shape and a matching HTTP status:
{ "error": { "code": "insufficient_scope", "message": "This key can't do that: it needs contacts:write. Create a key with that access in Settings › Developers." } }| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request, invalid_json, invalid_cursor, idempotency_key_required | Something in the request is missing or wrong; the message says what |
| 401 | invalid_key, invalid_token | No key, an unknown key, or a revoked key (invalid_token: a Gear's token that was replaced or revoked) |
| 403 | insufficient_scope | The key doesn't have the scope this call needs |
| 403 | wrong_site | The key belongs to another site |
| 404 | not_found | No such endpoint, or no record with that id on this site |
| 405 | method_not_allowed | The path exists, the method doesn't |
| 409 | already_exists, slot_taken, payment_required, idempotency_conflict, idempotency_in_progress, bookings_off, payment_taken, not_cancellable, too_many_blocks | The request can't be done as it is |
| 413 | too_large | The body is over 64 KB |
| 429 | rate_limited | Too many requests for this key; wait Retry-After seconds |
| 500 | server_error | Something went wrong on Vorjo's side; try again |
Rate limits
Each key has its own limit: 60, 120 (the default), 300 or 600 requests a minute, set in Settings › Developers. Every answer has X-RateLimit-Limit and X-RateLimit-Remaining; going over returns 429 with Retry-After.
The API is for servers and automation tools. Browsers can't call it with a key (CORS allows no Authorization header), so a key never ends up in a web page.
See Webhook events to get changes as they happen instead of asking, and n8n, Zapier and Make for step-by-step setups.
Related articles
Mentioned in
Connect Zapier · Settings › Developers · Developer overview · Build a Gear (hosted Gears)