Developers / Site REST API
Start building

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.

NewUpdated 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 be me: 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:

ScopeAllows
orders:readList and get orders
orders:writeMark orders as sent (fulfilments). Includes orders:read.
products:readList and get products and their variants
products:writeCreate draft products. Includes products:read.
bookings:readList and get bookings
bookings:writeCreate bookings for free services. Includes bookings:read.
contacts:readList and get contacts
contacts:writeCreate contacts and change their tags. Includes contacts:read.
invoices:readList and get invoices and quotes
invoices:writeCreate draft invoices and quotes. Includes invoices:read.
forms:readList and get form entries
subscribers:readList and get newsletter subscribers
inventory:readList and get stock levels per product variant
inventory:writeChange stock levels, each change with a reason. Includes inventory:read.
availability:readList the times that can't be booked
availability:writeBlock and unblock times for bookings (only the blocks this key made). Includes availability:read.
leads:readList 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

GETme
Returns
{ site: { id, slug, name }, key: { id, name, scopes, rateLimit } }
GETorders?status=&payment_status=&fulfillment_status=
Returns
A page of orders
GETorders/:id
Returns
One order
POSTorders/:id/fulfillments
Body
{ lines?: [{ lineId, qty }], carrier?, trackingNumber?, trackingUrl?, notify? }
Returns
201 and the order. Without lines, everything not yet sent. notify (default true) emails the customer.
GETproducts?status=
Returns
A page of products with their variants
GETproducts/:id
Returns
One product
POSTproducts
Body
{ title, description?, handle?, type?, vendor?, tags?, images?: ["https://…"], options?, specs?: [{ name, value, group? }], variants?: [{ title, price, sku?, compareAtPrice?, trackInventory?, inventory? }] }
Returns
201 and the product, always as a draft: the owner publishes it
GETbookings?status=&service=
Returns
A page of bookings
GETbookings/:id
Returns
One booking
POSTbookings
Body
{ service, start, staff?, customer: { name, email, phone?, note? } }
Returns
201 and the confirmed booking. Free services only; start must be a free slot. The customer gets the usual confirmation email.
GETcontacts?tag=&email=&source=
Returns
A page of contacts
GETcontacts/:id
Returns
One contact
POSTcontacts
Body
{ name?, email?, phone?, company?, notes?, tags?, address? }
Returns
201 and the contact. An email that's already a contact is 409 already_exists with its id.
POSTcontacts/:id/tags
Body
{ add?: string[], remove?: string[] }
Returns
The contact with its new tags
PATCHcontacts/: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. Needs contacts:write.
POSTcontacts/:id/notes
Body
{ body }
Returns
201 and { id, contactId, body, createdAt }. Needs contacts:write.
POSTcontacts/:id/tasks
Body
{ title, dueAt? }
Returns
201 and { id, contactId, title, dueAt, done, createdAt }. Needs contacts:write and the Tasks & reminders Gear (409 tasks_off without it).
GETleads?kind=
Returns
A page of taps: { id, kind /* call | whatsapp | email */, page, createdAt }. Needs leads:read.
GEThooks
Returns
This key's REST hooks: { data: [{ id, url, event, app, enabled, createdAt }] }
POSThooks
Body
{ url, event, app? }
Returns
201 and the hook with its signing secret (only now). See REST hooks.
DELETEhooks/:id
Returns
{ id, deleted: true }. Only hooks this key made.
GETinvoices?kind=&status=
Returns
A page of invoices and quotes (kind: invoice or quote)
GETinvoices/:id
Returns
One invoice or quote
POSTinvoices
Body
{ kind?: "invoice" | "quote", customer: { name, email, company? }, contactId?, currency?, lines: [{ title, qty, price, taxName?, taxRate? }], dueDate?, notes?, terms? }
Returns
201 and the draft. The owner checks and sends it.
GETform-entries?form=&status=
Returns
A page of form entries (spam left out)
GETform-entries/:id
Returns
One form entry
GETsubscribers?status=
Returns
A page of newsletter subscribers (subscribed, pending, unsubscribed)
GETsubscribers/:id
Returns
One subscriber
GETinventory?sku=&low=1&product=
Returns
A page of stock levels: { variantId, productId, product, variant, sku, inventory, trackInventory, allowBackorder, low }, plus lowStock (the site's alert level)
GETinventory/:variantId
Returns
One variant's stock
POSTinventory/:variantId/adjust
Body
{ delta, reason } or { set, reason }
Returns
The variant's stock with previous, delta and reason. Needs an Idempotency-Key. delta adds or takes away (-1 for a sale); set is a count. Turns on stock tracking for the variant and logs the change in its history (Inventory in the admin panel).
POSTbookings/:id/cancel
Body
{ notify? }
Returns
The cancelled booking. notify (default true) emails the customer. Cancelling again returns the same booking. A booking paid online is 409 payment_taken: the owner cancels it in the admin panel, so the refund is handled there.
GETavailability
Returns
{ data: [{ id, date, to, start, end, allDay, staff, note, createdBy, mine }], timezone }: time off and blocks, in the business's time zone
POSTavailability
Body
{ date, to?, start?, end?, staff?, note? }
Returns
201 and the block, plus conflicts: ids of bookings already in that time (they stay). Days are 2026-12-24, times 09:00 in the business's time zone; leave out start and end for whole days; to for several days.
DELETEavailability/: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.

Example: the newest orders
Shell
curl "https://api.vorjo.com/v1/sites/harbor-coffee/orders?limit=2" \
  -H "Authorization: Bearer vsk_YOUR_KEY"

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:read for order.*, bookings:read for booking.*, contacts:read for contact.created, customer.signed_up and chat.lead, forms:read for form.submitted, leads:read for lead.tapped, and so on. Otherwise 403 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: the nextCursor of the page before. Keep asking until hasMore is false.
  • 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.

Example: add a contact, safe to retry
Shell
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 scopeREST scope it gives
read_orders / write_ordersorders:read / orders:write
read_products / write_productsproducts:read / products:write (and inventory:read / inventory:write)
read_inventory / write_inventoryinventory:read / inventory:write
read_bookings / write_bookingsbookings:read / bookings:write
write_availabilityavailability:read and availability:write
read_customerscontacts: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:

Example
JSON
{ "error": { "code": "insufficient_scope", "message": "This key can't do that: it needs contacts:write. Create a key with that access in Settings › Developers." } }
StatusCodeMeaning
400invalid_request, invalid_json, invalid_cursor, idempotency_key_requiredSomething in the request is missing or wrong; the message says what
401invalid_key, invalid_tokenNo key, an unknown key, or a revoked key (invalid_token: a Gear's token that was replaced or revoked)
403insufficient_scopeThe key doesn't have the scope this call needs
403wrong_siteThe key belongs to another site
404not_foundNo such endpoint, or no record with that id on this site
405method_not_allowedThe path exists, the method doesn't
409already_exists, slot_taken, payment_required, idempotency_conflict, idempotency_in_progress, bookings_off, payment_taken, not_cancellable, too_many_blocksThe request can't be done as it is
413too_largeThe body is over 64 KB
429rate_limitedToo many requests for this key; wait Retry-After seconds
500server_errorSomething 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.

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