Developer reference

Build on a shop’s live data

Two machine surfaces, kept apart on purpose: v1 REST endpoints that read a shop’s quotes, orders, invoices, customers, products and pipeline with a bearer key, and an AI gateway whose reads run directly and whose writes wait for a person to approve them.

  • 12REST endpoints Every one a GET. The namespace is closed.
  • 23Signed webhook events HMAC-SHA256, one secret per subscription.
  • 35AI gateway tools 23 read; 12 submit a write for approval.

What you get, and on which plan

Reads over REST. Writes by approval.

The plan gates differ so that a shop can connect an assistant without buying REST access. A key on a plan that lacks a surface still authenticates, and gets a 403 there. Read Scopes before you treat a leaked key as harmless: the reads reach the shop’s money, and three of the writes reach its customers.

Developer surfaces and plan availability
SurfaceWhat it isPlans
The v1 REST endpointsThe developer REST surface. Read-only — no write endpoint exists on it.Scale and Enterprise
POST /api/v1/mcpThe “Connect your AI” JSON-RPC gateway. Reads, plus exact-allowlisted and scope-gated tools that submit write, send and spend requests for human approval.Trial, Pro, Scale and Enterprise

Quickstart

From nothing to an authenticated call. You need a key from the shop, and the shop needs a plan that carries the surface you are calling.

1. The shop owner mints a key

Keys are created, rotated and revoked by the shop owner — the owner role specifically, not a manager. Two screens mint a pasted key and they are not equivalent, so say which one you need:

  • Settings → Integrations → API Keys has a single name field and no scope choice. The key it mints is read-only. Ask for this one unless your integration genuinely needs to act.
  • The AI assistant page mints a scoped key from three rungs — read / read + write / read + write + spend — and the recommended default already carries write. The owner then chooses the exact compatible tools; selecting accept_quote lets that key request quote acceptance, which still waits for staff approval.

Neither screen — nor the key-minting endpoint itself — can put inbox or social on a pasted key — see Scopes.

The full key is displayed once, at creation. It is not retrievable afterwards from any screen or endpoint.

2. Call an endpoint

Base URL https://devario.io. The key — not the hostname — resolves the shop, so an organisation id can never be supplied in a request and a key can never read another shop’s data.

Request
curl -s "https://devario.io/api/v1/orders?limit=5" \
  -H "Authorization: Bearer apk_your_key_here"

3. What success looks like

200 with a data array and a meta block. The response also carries the rate-limit headers described under Rate limits.

Response
{
  "data": [ { "id": "…", "order_number": "SO-00042", "status": "in_production" } ],
  "meta": { "total": 123, "page": 1, "limit": 5, "pages": 25 }
}

Authentication

One bearer token on every request. There is no session, no cookie and no org parameter.

Header
Authorization: Bearer apk_your_key_here
  • The key resolves the shop. All access is scoped to the organisation the key belongs to, on REST and through every AI tool alike.
  • Rotation keeps the old key alive for 15 minutes. Rotating issues a replacement immediately and leaves the previous key valid for that grace window, so an integration can swap secrets without dropping requests. The exact expiry instant is returned to the shop owner on the screen they rotated from, not to you — so agree the cutover with them rather than waiting to be told.
  • Deleting a key kills it at once, and there is no grace. A key still inside its rotation window can itself be deleted, which ends that window on the spot. Deleting the replacement does not touch its predecessor — for a leak, delete the leaked key itself.
  • The gateway also accepts an OAuth access token issued by the “Connect your AI” connector. Those tokens are short-lived and refreshed; a pasted key does not expire.
  • An unknown key and a revoked key are told apart from nothing. Both return the same 401 text — Invalid or revoked API key — on purpose, so the API cannot be used to tell a real-but-revoked key from one that never existed.
  • An expired token says so, deliberately. A short-lived OAuth access token that has run out answers API key expired — a distinct message, because a connector needs to know to refresh rather than to re-consent. It is the 401 an assistant integration hits most often. A shop whose account is no longer live is also named separately.

Scopes and blast radius

Every key carries a scope list and an exact MCP tool allowlist. Both surfaces require read at the door; for MCP, scopes are only the ceiling and the allowlist selects the named subset.

These are the words the shop owner reads when they approve your connection, verbatim — so ask for a scope by the capability the owner will see, not by a name only you use.

API key scopes and owner consent
ScopeWhat the shop is approving
readRead your shop — View and search quotes and other sales documents, orders and their fulfilment status, invoices, customers, products, stock levels, production status, and which customers are due to reorder — no changes. It also reads the notes you have recorded for your assistant about how your business works. It also reaches your shop’s MONEY: what each customer owes you and how promptly they pay, your VAT period totals, one trading period compared against another, and your quote win rate and the value lost to each reason. Your customer inbox is NOT included, and neither is text your customers wrote themselves (the message on a quote enquiry, the options typed on an order line): reading either needs the separate “Read your customer inbox” grant. Grant this to an AI you would trust with your books, and disconnect it the moment you no longer do.
writeAct on your behalf — Request acceptance of quotes, adjustments to your stock on hand, the loading of a price list into your catalogue, and the raising of an invoice — on your behalf. Every external write currently available is parked in Devario until an eligible staff member explicitly approves it; the connected AI cannot approve its own request. An invoice it raises is created as a DRAFT and is not sent to anyone. Replying to messages and publishing posts are NOT included: sending needs the separate “Post and reply on social” grant. Neither is anything that reaches a customer — moving an order to its next stage, approving artwork, asking for artwork changes — which needs the separate “Update your customers about their jobs” grant. The scope still controls what the AI may request, every action respects your plan and channel switches, and you can disconnect it at any time.
spendSpend money on your behalf — Allow the connected AI to request money actions: record payments against invoices, or run or boost paid ads. These money actions are consequential or irreversible, so each request is parked in Devario until an eligible staff member explicitly approves it; the connected AI cannot approve its own request. Ads still stay within your ad-spend cap. This remains a higher grant than “act” because it controls whether the AI may request a money action at all.
inboxRead your customer inbox — View your WhatsApp and social conversations, message history and channel status — plus the text your customers wrote on quote enquiries and order lines — no changes. For your safety this is a SEPARATE connection: an AI that reads your inbox cannot also send messages, post publicly, or spend. Connect a second AI if you need it to send.
socialPost and reply on social — Allow the connected AI to request outbound actions: reply to customer conversations and publish public social posts on your behalf. These outbound actions are irreversible, so each request is parked in Devario until an eligible staff member explicitly approves it; the connected AI cannot approve its own request. For your safety this is a SEPARATE connection: an AI that can send cannot also read your inbox. Grant one capability per connection.
contactUpdate your customers about their jobs — Allow the connected AI to request the decisions on your own work that REACH THE CUSTOMER: moving an order to its next stage (which emails them, notifies them in their portal and can send them a WhatsApp status update), approving the artwork they submitted, and asking them for artwork changes in wording the AI composed. Each request is parked in Devario until an eligible staff member explicitly approves it; the connected AI cannot approve its own request, and the approver sees what would go out before anybody is contacted. For your safety this is a SEPARATE connection: an AI that can reach your customers cannot also read your inbox. Grant one capability per connection.
adminEverything — and you cannot be granted it here — The pasted-key super-scope: on its own it satisfies every scope check. It is not a way round the containment rule at the end of this section, though — it can read the inbox, and anything that can read the inbox is refused every outbound sink, posting and paid ads alike. Nothing can issue it any more: the AI connector never could, neither key-minting screen offers it, and the key-minting endpoint itself now rejects it. Plan for a key that does not carry it — a row holding it predates that rule, and rotating such a key is refused rather than copying the scope forward.

Which of these you can actually be given

  • A pasted key stays on the read / write / spend ladder. That is the whole range the two minting screens offer: read alone from Settings → Integrations, and one of three rungs from the AI assistant page.
  • A pasted key can never carry inbox, social and contact. Not just the two minting screens: the key-minting endpoint rejects them outright, and rotating a key that somehow holds one is refused rather than copying it forward. Each is granted through the owner-consented “Connect your AI” flow, which issues a short-lived token rather than a pasted key. So plan for a pasted key that cannot reach the tools listed against those scopes below, and connect through the OAuth flow if you need them.
  • spend is checked before the write gate and implies the write scope ceiling. It does not add every write tool: the credential’s exact allowlist still selects the named subset.

A leaked key is not harmless — size it by its allowlist and scopes

The endpoint table further down is read-only, so it is tempting to file a leaked key under “read-only exposure”. That is wrong twice over. A key holding nothing but read already reaches the shop’s books — VAT period totals, what each customer owes and how promptly they pay, one trading period against another, and the win rate. And beyond read, the gateway includes tools that request quote acceptance, payment booking, a price-list load, public posts, paid ads, and — on the separate contact scope — decisions that reach a real customer by email, portal notification or WhatsApp. The exact allowlist inside the scope ceiling — not the endpoint table — decides which requests the credential may make, and every current write still waits for human approval. The AI assistant page’s recommended default carries the write scope, but the owner separately chooses the named tools.

Ask for the narrowest scope ceiling and tool allowlist your integration needs, and have the shop delete a leaked key rather than rotate it.

One containment rule you should know about

No single grant may hold both an untrusted read (inbox) and an outbound sink (social, spend and contact). A connection that can read the customer inbox is refused every outbound sink outright — those tools are not even listed to it — so an instruction planted inside a customer message has nowhere to send anything. If you need both halves, connect two separate integrations.

Endpoints

The complete REST surface. Every endpoint is a GET, and the namespace is closed — any other /api/v1 path returns 404. Available on Scale and Enterprise.

Read-only REST endpoints
EndpointDescription
GET /api/v1/quotesList quotes (paginated)
GET /api/v1/quotes/:idFetch a single quote
GET /api/v1/ordersList orders (paginated)
GET /api/v1/orders/:idFetch a single order
GET /api/v1/invoicesList invoices (paginated)
GET /api/v1/invoices/:idFetch a single invoice
GET /api/v1/customersList customer accounts (paginated)
GET /api/v1/customers/:idFetch a single customer
GET /api/v1/productsList products (paginated)
GET /api/v1/products/:idFetch a single product
GET /api/v1/pipelinePipeline stages with quote counts — the per-stage value forecast is stripped
GET /api/v1/analyticsCounts only — quotes, orders, invoices, customers, products. Quotes and orders count activity inside a rolling window, and the response carries window_days so you need not guess it; invoices, customers and products are point-in-time. Outstanding receivables are stripped and there is no revenue field

Money aggregates do not leave through a key

By deliberate decision, aggregate money figures — the pipeline value forecast, all-time outstanding receivables, and ad spend — are stripped from these responses and are not on the AI tool surface at all. Record-level money on an individual invoice or order is returned; you can total it yourself, you just will not be handed the shop’s headline numbers.

Responses, pagination and errors

One envelope for resources, one for errors — with one honest exception you should code for.

The envelope

A single resource returns { "data": { … } }. A list adds a meta block. Unwrap data — the payload is never at the top level.

Errors
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Order not found",
    "requestId": "…"
  }
}

Money is integer cents — read it 100× wrong and you will not be warned

Every money value on this surface is an integer number of cents. On an order the field names say so — total_cents, subtotal_cents and their siblings. On an invoice and a quote they do not: total, amount_due, amount_paid, subtotal, tax_total, discount_total and the quote values are cents under unit-free names. A total of 1250000 is twelve and a half thousand Rand, not one and a quarter million.

So nothing has to infer it, each of those unit-free fields ships beside a display sibling named with a _formatted suffix — e.g. total_formatted — carrying the formatted Rand string. Render the sibling; compute on the cents. The AI gateway’s quote and invoice tools read the same rows, so this holds there too.

Pagination

List endpoints accept page (default 1) and limit (default 50, hard cap 200). A larger limit is clamped, not refused, so page through with meta.pages rather than asking for everything at once.

Error codes you can reach here

REST response status codes
StatusCodeMeans
401UNAUTHORIZEDMissing, unknown, revoked or expired key.
403FORBIDDENThe key authenticated but lacks the scope for what it asked for.
404NOT_FOUNDNo such resource — or no such path, since the namespace is closed.
415UNSUPPORTED_MEDIA_TYPEA POST with a body whose Content-Type is neither JSON nor multipart form data.
429RATE_LIMIT_EXCEEDEDA rate stage stopped you. See the headers below.
500INTERNAL_ERRORThe server’s fault, not yours. The response carries a request id — quote it when you report the error.

The plan-entitlement 403 has a different shape

When a key is refused because the shop’s plan does not carry the surface, the response does not use the envelope above: error is a plain string, not an object. Code defensively — check the type of error before reading error.code, or a plan 403 will crash your handler.

Plan-gate 403
{
  "error": "plan_feature",
  "feature": "apiAccess",
  "plan": "pro",
  "planName": "Pro",
  "message": "The … feature is not available on the Pro plan.",
  "upgrade": true
}

The scope 403 in the table above is the enveloped one. Both are 403; only one has error.code.

Rate limits

Three limiters apply to /api/v1, in this order. Nothing else does — the prefix is deliberately exempt from the platform's general API bucket.

REST API rate limits
StageBucketBudgetWhen it runsGiven back?
Platform ceilingYour calling IP address3,000 requests/minuteFirst, outside everything else, on every request to the prefix — including the ones the floor below refusesNever
Pre-auth floorYour calling IP address1,200 requests/minuteBefore the request body is parsed and before your key is looked up — valid key or not, and on unrecognised paths tooYes — but only once a unit has been taken from your own budget below, which is strictly later than authenticating
Per-key budgetYour API key1,000 requests/minuteAfter your key authenticates AND passes the scope and plan gates. This is a maximum, not a starting point — it is the most a key can be minted with today, and no screen can raise itNot applicable — it is your own budget

The headers, and how to back off

  • Any stage answers 429 with Retry-After (seconds until the window resets), X-RateLimit-Limit and X-RateLimit-Remaining. Successful responses carry the limit and remaining headers too.
  • X-RateLimit-Limit names the stage that answered. The platform ceiling’s number means everything from your address counted, authenticated or not. The floor’s number means you are sharing an egress address, or sending traffic that never authenticated. Your own budget’s number means you spent it.
  • The floor is a budget for unauthenticated traffic. It charges every request that reaches it and hands that charge back only once your own budget has taken a unit for the same request — a strict handover, not a refund at the door — so several keys behind one office or one hosting provider cannot starve each other. What stays charged is what it is for: no key, an unknown key, an expired token, or a path that does not exist.
  • A 403 is charged by the floor and never reaches your budget. A client hammering an endpoint its plan or scope does not permit is refused before the handover, so it is bound by the floor rather than by its own number — fix the entitlement rather than retrying.
  • The platform ceiling is the one you cannot get back. It is per address, not per key, so presenting a different key from the same egress does not reset it.
  • Honour Retry-After rather than retrying immediately, add jitter so a fleet does not resynchronise on the same second, and never retry a 401 or 403 — those will not become a 200 by repetition.

Webhooks

Signed HTTP callbacks for the events a shop cares about. Owner-only to create, and — unlike the REST surface — carrying no plan gate at all, so a shop on any plan can subscribe you today.

Subscribing

  • The shop owner creates them in Settings → Integrations → Webhooks. Every webhook endpoint is owner-only; a manager or sales token is refused.
  • One subscription is one event, one URL and one secret. There is no multi-event subscription. A URL receiving three events holds three unrelated secrets — store them keyed by event name, not as a single shared secret, or your receiver will verify exactly one event and 401 the rest.
  • The URL must be a public HTTP(S) endpoint. Private and reserved IP ranges, localhost and non-HTTP schemes are rejected.
  • The signing secret is shown once, in the create response, and can never be rotated. If it leaks or is lost the only move is delete and recreate — which mints a different secret, gives no overlap window, and destroys that subscription’s delivery history along with it.

The delivery request

Webhook request headers
HeaderValue
Content-Typeapplication/json
X-Webhook-SignatureHex-encoded HMAC-SHA256 of the raw request body, keyed with that subscription’s secret.
X-Webhook-EventThe event name. It is not covered by the signature — use it to pick which secret to verify with, then trust only the signed body.
Body
{
  "event": "order.shipped",
  "data": {
    "event_id": "…",
    "idempotency_key": "…",
    "…": "event-specific fields"
  },
  "timestamp": "2026-07-02T10:15:30.123Z"
}
  • Reply with any 2xx within 10 seconds. A slower reply is a failure — acknowledge first, do the slow work asynchronously.
  • Do not redirect. Redirects are never followed and are not retried; a redirecting endpoint is logged as a blocked delivery.
  • De-duplicate on data.event_id. A retry after your 2xx was lost on the wire delivers the same id, and so does a staff replay of an event that failed to publish.
  • Your response body is ignored except that the first 1,000 characters are kept for the shop’s delivery log.

Verifying the signature

Compute HMAC-SHA256 over the exact raw bytes of the body with the secret for the event being delivered, hex-encode it, and compare in constant time. The most common mistake is parsing the JSON and re-serialising it before signing — key order and whitespace will differ and the signature will never match.

Node (Express)
const crypto = require('node:crypto');
const express = require('express');

const app = express();

// ONE SECRET PER SUBSCRIBED EVENT. Each whsec_ was returned by the create call
// for that (event, URL) pair; a single shared secret verifies exactly one event
// and 401s the rest. A Map, not an object literal: the event name is an
// attacker-controlled header, and "constructor" would look up the prototype.
const SECRETS = new Map([
  ['order.created', process.env.WEBHOOK_SECRET_ORDER_CREATED],
  ['payment.received', process.env.WEBHOOK_SECRET_PAYMENT_RECEIVED],
]);

// express.raw so req.body is the untouched Buffer.
app.post('/webhooks/devario', express.raw({ type: 'application/json' }), (req, res) => {
  const eventHeader = req.get('X-Webhook-Event') || '';
  const secret = SECRETS.get(eventHeader);
  if (!secret) return res.status(401).send('unknown event'); // never a default key

  const received = req.get('X-Webhook-Signature') || '';
  const expected = crypto
    .createHmac('sha256', secret)
    .update(req.body)            // raw Buffer — NOT JSON.stringify(parsedBody)
    .digest('hex');

  const a = Buffer.from(received, 'utf8');
  const b = Buffer.from(expected, 'utf8');
  if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) {
    return res.status(401).send('invalid signature');
  }

  const { event, data } = JSON.parse(req.body.toString('utf8'));

  // The header chose the key; the SIGNED body is what actually happened.
  if (event !== eventHeader) return res.status(401).send('event mismatch');

  // De-duplicate on data.event_id BEFORE acting — retries redeliver it, and so
  // does a staff replay of a dead-lettered event.
  //   INSERT INTO processed_events (event_id) VALUES ($1) ON CONFLICT DO NOTHING

  res.status(200).send('ok');   // acknowledge fast, do slow work async
});

Event catalogue

23 events are subscribable. Each row below is the same name and the same description the shop owner picks from when they subscribe you, so the two cannot describe the event differently. The payload fields vary per event; the delivery log does not show you the body that was sent, so log it on your side — point a webhook at a request-capture endpoint you control and trigger the event once.

Outbound webhook events
EventFires when
quote.submittedA customer sent in a quote request
quote.acceptedA customer accepted a quote — a sales order was created
quote.declinedA customer declined a quote
quote.renewal_requestedA customer asked to renew an expired or declined quote
design.reorder_requestedA customer reordered from an approved design version — a fresh quote was created
estimate.sentAn estimate was sent to the customer
invoice.sentAn invoice was sent to the customer
document.sentA document (sales order, credit note, receipt…) was sent to the customer
order.createdA new sales order is in the system
order.status_changedAn order moved to a new status (e.g. ready, shipped)
order.shippedAn order was dispatched with a courier — tracking is available
order.waybill_cancelledA courier waybill was cancelled for an order
document.waybill_cancelledA courier waybill was cancelled for a document (sales order / invoice)
work_order.stage_changedA work order moved to a new production stage
payment.receivedA customer payment was recorded against an invoice
invoice.overdueAn invoice passed its due date without being paid in full
customer.credit_alertA customer's open exposure crossed their alert line or reached their credit limit
proof.readyA proof was made available to the customer for review
proof.approvedA customer signed off on a proof — the job is cleared for production
proof.changes_receivedA customer requested changes to a proof
customer.createdA customer created their own account — an email signup once its emailed code is typed, or a new Google sign-up. Accounts a shop creates itself (admin form, CSV import) do not fire this
ai_approval.requestedA connected AI proposed a write that needs a person to approve it
ai_approval.decidedSomeone approved or declined a connected AI request — the outcome field says whether the write then ran

Retries, and what happens when your endpoint dies

  • 3 attempts per delivery, with an exponential wait: 2s before attempt 2, then 4s before attempt 3. After the last attempt fails the delivery is dead — there is no further wait and no extra attempt.
  • A retry is triggered by a non-2xx response, a network error, or a timeout. A refused redirect and a URL that fails the outbound safety check are not retried — each costs exactly one attempt.
  • A failed delivery is never re-sent. There is no redeliver button and no dead-letter queue you can drain. Treat webhooks as notifications, not a source of truth, and reconcile authoritative state through the REST endpoints if you miss any.
  • After 20 consecutive failed deliveries, Devario switches the subscription off. The unit counted is a delivery, not an attempt, and any 2xx resets the count to zero — a merely flaky endpoint is never switched off, only one that fails an unbroken run.
  • You are not told when that happens — the shop owner is: an in-app alert, and an email as well where the shop has an email provider configured. Both name the destination host and never the full URL, precisely because a webhook URL so often carries your shared secret in its path. They resume it from the same Webhooks screen, which keeps the history and the secret and restarts the count at zero. There is no subscribable event for a disabled webhook and there cannot be one, so monitor your own receiver for a gap in traffic.
  • Once it is off, nothing is held back for you: events that fire while it is off are not queued and are not re-sent when it comes back. Expect a short tail rather than a clean stop — deliveries already queued still go out.
  • Delivery attempts are logged for 30 days and then swept. The shop’s panel shows event, status, attempt number, timestamp and your response snippet — not the request payload. Deleting the webhook removes its rows immediately.

There is a second webhook sender, and it is UNSIGNED

Read this if the shop says “I set up a webhook” and nothing you built is firing. Besides the subscriptions above, a shop can build a Workflow Rule whose action is “Send webhook”. That is a different sender and it follows none of this contract: the request carries no signature and no X-Webhook-Event header, its body has a different shape, it carries no event_id to de-duplicate on, it makes two attempts rather than three, and its attempts are written to a different log that the Webhooks delivery panel does not read.

The practical failure is symmetrical: a receiver written to this page 401s those calls, the shop sees nothing in the panel because the attempts landed elsewhere, and both sides conclude the other is broken. If you need to accept rule-driven calls, give them a separate URL with its own authentication agreed out of band. Do not make one endpoint serve both shapes.

The “Connect your AI” gateway

A JSON-RPC endpoint that exposes a shop's data as tools an assistant can call, plus tools that act. It is a different product from the REST surface, sits on a different plan (Trial, Pro, Scale and Enterprise), and does not carry the same set of reads.

  • POST /api/v1/mcp, stateless streamable HTTP, authenticated with the same bearer key as the REST surface.
  • One JSON-RPC request per POST. A batched array body is refused with an Invalid Request error and HTTP 400 — batching would multiply tool executions against a single unit of rate-limit budget.
  • Tools the credential’s exact allowlist, scopes, live plan/channel state or containment rule cannot reach are filtered out of the tool listing as well as refused when called.
  • Tool errors are deliberately generic in production. The one exception is a capability the shop’s plan has switched off, which says so.
  • The reasoning runs on the shop’s own subscription. Their Claude, their client, their context window — this platform supplies the governed business data, reachability, approval and audit, not the model inference.
List the tools a key can reach
curl -s https://devario.io/api/v1/mcp \
  -H "Authorization: Bearer apk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

What a tool tells your client before it runs

tools/list returns more than names and input schemas. Every listed tool carries four advisory annotations, so a client can reason about a call before making it:

AI gateway tool annotations
AnnotationTrue when
readOnlyHintTrue when the tool only reads. Nothing in the shop changes.
destructiveHintTrue when the effect is irreversible — money, an outbound send, something with no inverse.
idempotentHintTrue when a replay inside the tool’s declared window returns the first result instead of writing again.
openWorldHintTrue when the tool reaches outside the shop: a public post, a paid ad, a message to a real person.

Three of the four are derived from one effect declaration per tool — read, reversible, consequential or irreversible — and the fourth from the single outbound classifier that also decides the containment rule above. That same one declaration is what the shop owner’s in-app confirm card is keyed on, so the annotation your client reads and the consent the owner gives can never describe a tool differently.

A tool that declares an outputSchema returns structuredContent beside its text on every non-error result, and a tool that declares none never returns structuredContent at all — so an SDK client that built a validator from a listed schema is never handed something it cannot validate.

One retry key, one spelling

Where a tool takes a retry key it is always called idempotency_key. The value is opaque — trimmed and length-checked, never lowercased and never re-derived, so two keys differing only in case are two keys. Each tool declares its own bounded dedup window; a replay inside that window is a no-op that returns the first result rather than an error, which is exactly what idempotentHint reports.

On an unattended surface a network retry is normal traffic. Send the same key on the retry and a lost response cannot mint a second invoice.

Standing context, saved plays, and human-approved writes

  • Four resources, filtered per credential. devario://catalogue, devario://vocabulary, devario://shop-profile and devario://channels are the complete listed standing set. A deferred write additionally exposes one caller-bound devario://approvals/{id} status resource only to the credential that created it. It is not shared standing context. There is no pipeline resource.
  • Four prompts ship with the connection. monday_review, chase_overdue, quote_enquiry and close_the_month. A prompt is listed only when this credential can reach every tool that prompt needs.
  • Every current write is deferred. The direct/green set is empty. A write call returns no completed result initially. Task-capable legacy clients that negotiated Tasks receive an input_required task and may poll that same task. Older clients receive isError: true, an opaque mca_ reference and the caller-bound devario://approvals/{id} resource for pending or terminal status. There is no webhook. Revoking, re-consenting or narrowing the credential terminally rejects every undecided request while retaining its audit row.
  • Per-credential tool allowlists. Both pasted apk_ keys and OAuth mcp_ connections carry an exact named-tool list. Scope is only a ceiling. Tool list/call, prompts and resources all use the same allowlist, scope, live plan/channel and containment decision.

The tools that only read

Do not size this from the endpoint table above. Some of these reads need a scope no REST endpoint ever asks for — including the ones that return customer conversation contents — so a key judged by the endpoint table is judged wrongly. Others need nothing beyond read and still return the shop’s money: VAT period totals, one trading period against another, the win rate, and a single customer’s balance, ageing and payment behaviour on one call. Ask for read only if your integration genuinely needs the books. This is the complete read set and the scope each one is gated on; call tools/list with a key to see each tool’s own description and input schema, filtered to what that key can reach.

Read-only AI gateway tools
ToolScope
list_quotesread
get_quoteread
getQuotesAwaitingread
list_ordersread
get_orderread
list_invoicesread
get_invoiceread
searchDocumentsread
getOrderStatusread
list_customersread
get_customerread
get_customer_360read
list_productsread
get_productread
get_low_stockread
get_production_statusread
get_reorder_candidatesread
get_vat_summaryread
compare_periodsread
get_win_rateread
list_conversationsinbox
get_conversation_messagesinbox
get_channel_healthinbox

The tools that change something

The full 12-tool request surface and the scope each one needs. Calling one parks a request; only a later human approval can perform the requested action. Note the last three: they are gated on contact rather than write, because approving one causes a real customer to be emailed, notified or messaged.

Mutating AI gateway tools
ToolScopeWhat the tool requests
accept_quotewriteRequests approval to accept a quote and materialise a sales order
record_paymentspendRequests approval to book cash against an invoice
reply_to_conversationsocialRequests approval to send an outbound reply to a real customer
create_social_postsocialRequests approval to publish a public social post as the shop
create_ctwa_adspendRequests approval for a paid click-to-WhatsApp ad
boost_postspendRequests approval to put paid budget behind an existing post
adjust_stockwriteRequests approval to move a raw material’s stock on hand, with a reason and a ledger entry
create_invoicewriteRequests approval to raise a tax invoice — from a sales order, or from lines supplied. Created as a draft; nothing is sent
import_products_from_textwriteRequests approval to load a price list into the shop’s catalogue from CSV text — creating products and categories, or merging into existing ones. The approver sees the per-row plan first
update_order_statuscontactRequests approval to move an order to its next stage. Approving it emails the customer, notifies them in their portal, and can send them a WhatsApp status update
approve_designcontactRequests approval to sign off the artwork a customer submitted, which tells that customer their proof is approved and makes the version canonical for reorders
request_design_changescontactRequests approval to send a customer a request for artwork changes, in wording the AI composed. The approver sees those words before anybody is contacted

What does not exist today

Stated plainly, with no dates attached. If something below ships, this section shrinks.

  • No REST write endpoints. There is no POST, PUT, PATCH or DELETE resource endpoint on the REST surface. A suitably scoped and allowlisted AI-gateway key can submit one of the 12 write tools for human approval; the call itself does not execute the write.
  • No OpenAPI document. This page and the endpoint table above are the specification.
  • No rotation for a webhook signing secret. API keys rotate with a grace window; webhook secrets do not. Replacing one means delete and recreate.
  • No redelivery. Once a delivery’s attempts are exhausted it is gone; there is no queue to drain and no button to press.

Building something against a shop’s data?

Email hello@devario.io — you will get answers from the people who wrote the endpoints. If you are evaluating which plan a shop needs, the split is on the pricing page, and the platform’s security controls are on the security page.

Give your tools a real shop to read.

The AI gateway is on Trial, Pro, Scale and Enterprise. The REST endpoints are on Scale and Enterprise.

30-day free trial, no card