# Onivos Documentation — full text # Account https://docs.onivos.com/developers/api/account # Account Organizations, markets, members, invitations, billing and the API keys themselves. **Scope:** account:read · account:write An API key acts with the **admin** role. Transferring ownership, deleting an organization and changing the plan are owner-only and answer 403 to a key — they exist only in a signed-in session, on purpose. ## Organizations A key belongs to exactly one organization, and that binding cannot be overridden by a header. To work across organizations, issue a key in each. ## Markets Markets are operational contexts inside one organization — a region, a brand, a storefront. They shape defaults and reporting; they are **not** a data or security boundary. ## Members and groups ## Invitations ## Billing Checkout, plan changes, cancellation and credit purchases require an owner session — they are not on the key surface. It is how you find out you are about to run out of credits, instead of discovering it as a 429 quota_exceeded halfway through an import. ## API keys and tokens Full details, scope grammar and the once-only secret rule: Authentication. ## Your own profile /me describes the signed-in person. A **personal access token** acts as its owner, so it can read that profile; an **organization key** has no person behind it and these endpoints have nothing to answer with. Account security — password, MFA enrolment, passkeys, active sessions, connected accounts — lives under /me/… and is meant to be managed by a human in the app, not by an integration. Do not build against it. --- # AI agents https://docs.onivos.com/developers/api/ai # AI agents Agents are the configurable AI workers you point at your own knowledge and tools: the one answering in your chat widget, the one drafting replies in the inbox, the one running a procedure end to end. **Scope:** ai:read · ai:write This group is rate-limited as the ai class and capped on concurrent requests. A run that exhausts your allowance returns 429 quota_exceeded — a different problem from rate_limit_exceeded, and one that backing off will not fix. See Errors. ## Agents ## Knowledge What the agent is allowed to know. Sources are ingested once and answered from with citations. ## Tools and capabilities **Grant narrowly.** A tool an agent holds is an action it can take on your live data without a human in the loop — unless the capability is marked as requiring confirmation, in which case the run pauses and is resumed with POST /runs/{aiRunId}/confirm. ## Procedures Named, repeatable multi-step tasks the agent can execute. ## Versions and assignments ## Runs, quality and improvement Changing instructions without a test set is guessing. evals/generate seeds one from conversations you already have. ## Copilot The in-app assistant has its own endpoints — sessions, invocations, saved memories and long-running tasks — under /agents/copilot/…. They are built for the app's own UI and their contract moves with it; treat them as unstable for third-party integrations and prefer /agents/{id}/test or MCP for programmatic access. ## Public widget endpoints /agents/widget/{tenantId}/{agentId}/… serves the embedded assistant to anonymous visitors: bootstrap, ask, ask-stream (server-sent events) and lead capture. They take no API key and are called by the widget script. ## Related - Connect your AI — using Onivos from Claude, ChatGPT or Gemini. - MCP — the tool surface those clients speak. - Conversations — AI applied to one thread. --- # Authentication https://docs.onivos.com/developers/api/authentication # Authentication Every API request authenticates with a bearer token in the Authorization header: There is no other way in. A missing, malformed, expired or revoked token returns 401 immediately — it never falls back to an anonymous identity. ## Token types | Prefix | What it is | Acts as | Expires | |---|---|---|---| | onv_test_ | **Test key** — same API, test-mode data and strict rate limits | Your organization, admin role | Never (until revoked) | | onv_live_ | **Live key** — full production access | Your organization, admin role | Never (until revoked) | | onv_pat_ | **Personal access token** — acts as *you*, for scripts and AI clients | The member who created it, capped by their current role | Mandatory: 30, 90 or 365 days | An organization key is not tied to a person, so it survives staff changes — use it for server-to-server integrations. A personal access token is tied to you: if your role is demoted or your membership is removed, the token weakens or dies with it. Use it for your own tooling and for MCP clients. Creating or rolling a key returns the full secret in that one response. It is never retrievable again — store it in your secret manager immediately. What the app and the API show afterwards is only the display prefix (onv_live_a1b2c3d4). ## Getting a key In the app: **Settings → Developer → API keys → Create key**. Pick a name, tick the scopes, choose live or test. Over the API (session-authenticated, owner or admin): | Method | Path | Description | |---|---|---| | GET | /developer/keys | List the organization's keys (no secrets). | | POST | /developer/keys | Create a key. Body: name, scopes[], test. Returns 201 with secret. | | POST | /developer/keys/{id}/roll | Issue a new secret. The old one keeps working for **24 hours**, so you can redeploy without downtime. | | DELETE | /developer/keys/{id} | Revoke. Takes effect within a minute across the fleet. | | GET | /developer/keys/{id}/usage?range=30 | Call volume and rate-limited counts. Returns calls, rateLimited, series. | | GET | /developer/pats · POST · DELETE /developer/pats/{id} | The same lifecycle for personal access tokens. POST takes name, scopes[], expiresInDays (30 \| 90 \| 365). | **Test keys exist on every plan, including Free.** Live keys and personal access tokens require a plan with API access — creating one on Free returns 403. ## Scopes A token carries a list of scopes in the grammar : : The group comes from the endpoint you call (see the table in API overview); the action comes from the method — GET and HEAD are read, everything else is write. Grant the narrowest set that does the job. A key with contacts:read calling POST /contacts gets: with status 403. ## What a key can and cannot do - **It is bound to one organization.** The key determines the tenant; an X-Tenant-Id header is ignored. To work across organizations, create a key in each. - **It acts with the admin role.** Owner-only surfaces — transferring ownership, deleting the organization, changing the plan — stay session-only. - **It cannot reach session-only endpoints.** Sign-in, MFA, platform administration and similar have no scope group at all and always return 403. ## Test mode A test key talks to the same endpoints with the same shapes. What differs: - Rate limits are fixed and strict (1 request/second, burst of 10) regardless of your plan. - Outbound side effects that cost real money or reach real people are held back. That makes a test key the right credential for the docs playground, for CI, and for the first five minutes of an integration. ## Next - Errors — what comes back when a call fails. - Rate limits — the budget your token gets. - Connect your AI — using a personal access token from an MCP client. --- # Automation https://docs.onivos.com/developers/api/automation # Automation Workflows, their runs, and the app connections they use. **Scope:** automation:read · automation:write The concepts — triggers, nodes, expressions, connections — are documented once, for everyone, in the Help Center: Automation overview, Triggers, The node catalog, Expressions. This page is the HTTP surface over them. ## Workflows ### Lifecycle Triggers fire the **published** version. PUT …/graph edits the draft; nothing changes in production until you publish. That separation is what makes it safe to build against a live workflow. ### Running and testing ## Runs Run states and what each failure means: Runs and errors. ## Triggering a workflow from outside A workflow with a webhook trigger gets its own URL, which authenticates with the token in the path — **not** with an API key: Post any JSON body; it becomes the run's trigger payload. The workflow's webhook security settings decide what else is required (a signature, an allowlist, a shared key): A workflow paused on a wait step resumes at POST /automation/resume/{tenantId}/{token}, and an approval step is answered at /automation/review/{tenantId}/{token}. Both are token URLs handed to you by the run. Setup walkthrough: Receive webhooks. Onivos does not currently expose a "subscribe my URL to event X" endpoint. To push events to your system, build a workflow: trigger on the event, and end it with an HTTP request node pointed at your endpoint. That gives you filtering, retries and a run log for free. ## Connections The credentials a workflow uses to reach third-party apps. Where a provider supports OAuth, use it — API keys are the fallback, not the default. See Connect an app. ## Variables and templates ## AI authoring --- # Commerce https://docs.onivos.com/developers/api/commerce # Commerce Catalog, inventory, orders, payments, shipping, promotions and the sales channels on top of them. One pipeline serves online, point of sale, marketplaces and bookings — an order placed at a till and an order placed by an AI shopping agent are the same object. **Scope:** commerce:read · commerce:write ## Money on the wire Amounts are **integers in minor units** with an explicit currency — { "netTotalMinor": 129900, "currency": "EUR" } is €1,299.00. Never a float, never a formatted string. Do your arithmetic in minor units and format only at the edge. Currency is a property of the **catalog**, not of the order: a catalog prices in one currency, and selling in another means a second catalog or a price list. ## Products and catalog ## Orders An order carries **three orthogonal states**, and integrations should read all three rather than collapsing them into one status: | Axis | Values | |---|---| | status | draft → open → completed \| cancelled | | payment_status | unpaid · authorized · partially_paid · paid · partially_refunded · refunded | | fulfillment_status | unfulfilled · partially_fulfilled · fulfilled · delivered · partially_returned · returned | completed is derived: paid **and** fulfilled or delivered. Cash on delivery — delivered before paid — is a legal path, not an anomaly. Line edits are legal on a draft, and on an open order that is still **unfulfilled and unpaid**. Cancelling is refused once anything has shipped — returns come back through an RMA, because no stock release reverses a completed sale. Both refusals are 409 CONFLICT. ### Filters worth knowing - fulfillmentStatus=to_fulfill — everything awaiting shipment (unfulfilled and partially fulfilled, excluding cancelled). - paymentStatus=outstanding — money owed (unpaid and partially paid, excluding cancelled). - Quotes are **excluded by default**. ?kind=quote lists them; ?kind=all returns everything. ### Carts and checkout ### Fulfillments and returns ## Payments Gateway callbacks arrive on /commerce/webhooks/pay/{provider}, signed by the provider — never call it yourself. ## Inventory ## Promotions, loyalty and gift cards ## Shipping ## Sales channels ## Point of sale /commerce/pos/… covers registers, shift open/close and cash movements, offline sale sync, staff and commissions. POS clients work offline and reconcile with POST /commerce/pos/sales/sync, so a sale is never lost to a dropped connection. ## Bookings and stays /commerce/services, /commerce/resources, /commerce/availability and /commerce/bookings cover appointment-style selling; /commerce/properties, /commerce/rooms, /commerce/rate-plans and /commerce/stays cover lodging with folios. Both place real orders, so payments, taxes and reporting are the same as anywhere else. ## Settings, tax and reporting ## Storefront endpoints /public/commerce/{websiteId}/… serves your own storefront — products, collections, carts, checkout, reviews and recommendations — to anonymous shoppers, and /public/agentic/{tenant}/… serves the signed feed and checkout that AI shopping agents use. Neither takes an API key; they are called by the storefront and by external agents. --- # Contacts & CRM https://docs.onivos.com/developers/api/contacts # Contacts & CRM Contacts are the people in your CRM — the single source of truth every other pillar reads. Each contact has a name, a lifecycle stage, and a set of **contact points** (emails, phones, social handles) from which the primary email/phone is derived. The same group covers everything built around those people: companies, deals, tasks, tickets, segments and tags. **Scope:** contacts:read · contacts:write · Authentication · Pagination · Errors The five contact endpoints below run in **Demo** mode against an in-browser store, so you can click through a full CRUD cycle with no account at all. Everything else on this page sends a real request once you paste in a key — see the playground. ## Contacts ### List contacts Return a page of contacts, newest first. Supports search (q), and filters by lifecycle stage and owner_id. Sortable on created_at, display_name, lead_score and lifecycle_stage. ### Create a contact Create a contact with an optional set of contact points. The primary_email and primary_phone on the returned object are derived from points — you never set them directly. ### Get a contact Fetch one contact by id, including its contact points. A deleted or merged contact returns 404. ### Update a contact Partially update a contact — send only the fields you want to change (at least one). To change stage, set lifecycle_stage. ### Delete a contact Soft-delete a contact. It stops appearing in list reads and by-id lookups return 404. ### Contact points and identities A contact point is an email, phone or social handle. Identities are the channel-level handles (a chat user id, a social profile) used to recognise the same person across channels. ### Activities, scoring and subscriptions ### Import, export and merge ### Lifecycle stages and settings ## Companies Companies are the B2B side of the same graph: a contact can belong to several, one of which is primary. ## Deals and pipelines GET /deals returns the **whole pipeline**: { pipeline, stages[] }, each stage carrying its deals. That is the kanban contract — it is not paged, and page/limit do not apply. Pass ?pipeline_id= to pick a pipeline; omit it for the default one. ## Tasks The work layer over the CRM — a task hangs off a subject (a contact, deal, ticket or record). ## Tickets ## Segments and tags ## Consent Public, token-authenticated endpoints used by unsubscribe links in your outbound mail. They take a token, not an API key. ## Related - Marketing sends and suppressions: Marketing - Conversations attached to a contact: Conversations - Custom fields on contacts and everything else: Data schema --- # Blog content https://docs.onivos.com/developers/api/content # Blog content Articles are the blog layer of a website: long-form posts with their own publishing lifecycle, separate from pages so an editorial integration never needs write access to your site structure. **Scope:** content:read · content:write ## Endpoints ## AI authoring These spend AI credits and are rate-limited as AI calls. ## Notes - An article belongs to exactly one website. Move it by creating it on the target site; there is no cross-site transfer. - Publishing is a state change, not a separate resource — a published article keeps the same id and URL when you edit and republish it. - The public rendering of an article is served by the site itself, not by this API. Use the site's own URL for anything reader-facing. ## Related - Websites & pages — the site an article belongs to. - Media files — cover images and inline assets. --- # Conversations https://docs.onivos.com/developers/api/conversations # Conversations The unified inbox: one conversation per person per channel, whatever they wrote in — email, chat widget, WhatsApp, Messenger, Slack, SMS. This page covers **two scope groups**, because reading an inbox and sending on your customers' behalf are different privileges: | Surface | Scope | |---|---| | Conversations, channels, tags, routing, SLAs, reports, settings | conversation:read · conversation:write | | Sending, editing and deleting messages | messaging:read · messaging:write | | The per-conversation AI endpoints | ai:read · ai:write | messaging is rate-limited as **heavy** and ai as **ai** — see Rate limits. ## Conversations ### Turning a conversation into work ### Side conversations and approvals ## Messages **Scope: messaging.** internal: true writes a note only your team sees, and notes are editable. A message that went out to the customer left the platform — the edit and delete endpoints refuse it. Use Idempotency-Key so a retry does not send twice. ## AI on a conversation **Scope: ai.** Each of these spends credits. ## Channels Channels that support OAuth are connected through a browser consent flow, not by posting credentials — start it at /channels/{id}/{provider}/oauth/start and let the provider redirect back. That is the supported path for Gmail, Outlook, Slack, Meta and Zalo. ## Inbox configuration ## Reporting ## Widget and webhook endpoints The chat widget and each messaging provider talk to dedicated public endpoints under /conversation/widget/… and /conversation/webhooks/…. They authenticate with their own session or provider signature, **not** with an API key, and are called by the widget script and the providers — not by your integration. ## Related - Contacts & CRM — the person on the other end. - AI agents — the agent that can answer for you. - Automation — react to a new conversation automatically. --- # Data schema https://docs.onivos.com/developers/api/data-schema # Data schema Custom Data Objects are your own tables: an **object** (orders, properties, inspections) with **fields**, **views**, **forms** and **permissions**. This page covers the structure. The rows inside it are Records. **Scope:** data-schema:read · data-schema:write Creating, converting or deleting a field alters the object's storage. These are not high-frequency calls — build the schema once (in the app or with a setup script) and let your integration write records. A type conversion on a populated field rewrites every row. ## Objects key is the stable identifier you use in every other path (/objects/orders/records). Omit it on create and it is slugged from name. It is lowercase, alphanumeric plus underscores. ## Fields ### Field types | Category | Types | |---|---| | Text | text · long_text · email · phone · url · barcode | | Numeric | number · currency · percent · duration · rating · auto_number | | Choice | single_select · multi_select · checkbox | | Time | date · datetime | | Structured | json · attachment | | References | relation · user · contact | | Computed | lookup · rollup · formula · ai · ai_image · button | Per-type behaviour, options and limits are documented for end users in Field types — the same vocabulary the API takes in type. Type-specific settings go in config (select options, relation target, formula expression, rating maximum, rich-text toggle on long_text). Computed fields (lookup, rollup, formula, ai, ai_image, auto_number) are **read-only over the API**: send them in a record write and they are ignored. ## Views A view is a saved lens over the object — filters, sort, visible fields, grouping, and the display mode (grid, kanban, calendar, gantt). ## Permissions Grants control read/write level and row scope (all rows vs only the actor's own). They apply to API traffic exactly as they apply in the app — see Permissions. ## Forms Public forms that write records into the object. Two public endpoints serve the rendered form and accept submissions. They take the form's public token and **no API key**: ## Related - Records — reading and writing rows. - Create your first object — the same model, explained for end users. --- # Errors https://docs.onivos.com/developers/api/errors # Errors Every failed request answers with the same envelope and a meaningful HTTP status: - **code** — a stable machine-readable string. Branch on this, never on message. - **message** — a human-readable sentence, safe to log and to show to a developer. - **details** — present only where it adds something structured (validation fields, the rate-limited group, the exhausted quota). A server error never leaks internals: the body is always { "error": { "code": "INTERNAL", "message": "Internal Server Error" } }. Correlate with the response's request id when you contact support. ## Status codes | Status | Code | Meaning | What to do | |---|---|---|---| | 400 | BAD_REQUEST | The request is malformed — an unparseable body, a nonsensical parameter combination. | Fix the request. Retrying is pointless. | | 401 | UNAUTHORIZED | Missing, malformed, expired or revoked token. | Check the Authorization header; issue a new token. | | 403 | FORBIDDEN | Authenticated, but not allowed — an owner-only action, a record you have no grant on. | Nothing to retry; change the permission or the actor. | | 403 | insufficient_scope | The token is valid but lacks the scope for this group and action — or the endpoint accepts no API keys at all. | Re-issue the key with the scope named in message. | | 404 | NOT_FOUND | No such resource in this organization — including soft-deleted ones. | Treat as gone. | | 409 | CONFLICT | The resource is in a state that forbids the operation (cancelling a shipped order, publishing an already-published version, a stale write). | Re-read the resource and decide. | | 409 | idempotency_conflict | Another request with the same Idempotency-Key is still running. | Wait and retry — see Idempotency. | | 422 | UNPROCESSABLE | The body failed validation. details.fields[] names each offending path. | Fix the named fields. | | 429 | rate_limit_exceeded | You are going too fast. Retry-After says how long to wait; details.group names the group. | Back off and retry — see Rate limits. | | 429 | concurrency_limit_exceeded | Too many long-running AI or media requests in flight at once. | Retry after a couple of seconds with less parallelism. | | 429 | quota_exceeded | A plan quota is exhausted. details carries meter, limit and period_end. | Retrying will not help before period_end — upgrade or buy more. | | 500 | INTERNAL | Something broke on our side. | Retry with backoff; report if it persists. | | 503 | SERVICE_UNAVAILABLE | A dependency we call for you (a payment provider, a carrier) is down. message names the real reason. | Retry with backoff. | ## The two 429 families They share a status but mean opposite things, which is exactly why the codes differ: - **rate_limit_exceeded = "slow down."** Your budget refills continuously. Honour Retry-After and the same request succeeds. - **quota_exceeded = "buy more."** The allowance is monthly. Backing off changes nothing until details.period_end. Treat them differently in your retry logic; an integration that hammers a quota_exceeded in a backoff loop will still be failing at the end of the month. ## Validation errors 422 is the one you will meet most while building. details.fields[] gives one entry per problem: path is dot-notated into your body (points.0.kind), and enum errors list the values they would have accepted — so a client (or an AI agent writing the call) can self-correct without reading this page. Unknown keys are **dropped**, not rejected. If a field you sent has no effect, check the spelling against the reference for that endpoint. ## Retrying safely Read requests are always safe to retry. For writes, send an Idempotency-Key — then a timeout, a 500 or a dropped connection can be retried with the same key and can never create a second contact, order or message. --- # Idempotency https://docs.onivos.com/developers/api/idempotency # Idempotency A network timeout tells you nothing about whether the server acted. Send an **Idempotency-Key** on every write and that ambiguity disappears: retry the exact same request and you get the original outcome back, not a second contact, order or message. ## Using it Retry the same call with the same key and the response is byte-identical, plus one header: | Rule | Detail | |---|---| | Applies to | POST, PUT, PATCH, DELETE from an API key. | | Ignored for | GET / HEAD, and for session (browser) traffic. | | Key format | Any string you choose, up to 200 characters. Use a UUID, or your own operation id. | | Scope | Per organization **and per key** — the same key value used by two different API keys is two different operations. | | Retention | **24 hours** from the first request. After that the key is forgotten and a replay executes for real. | ## What gets replayed - **Success** — the stored status and body come back verbatim. - **A deterministic client error** (4xx) is stored too: a request that failed validation will fail identically on retry rather than getting a second chance to half-succeed. - **A server error** (5xx) is **never** stored. Those are exactly the ones you want to actually retry. ## Concurrent duplicates If a second request arrives with the same key while the first is still running: with status 409. Wait a moment and retry — by then the first has finished and you get its result. ## Choosing keys - **One key per logical operation**, generated by *you*, before the first attempt — a key minted at retry time protects nothing. - **Derive it from your own data** when you can: order-4471-charge is better than a random UUID you did not persist, because a process that crashed and restarted can reconstruct it. - **Never reuse a key for a different payload.** The response of the first request is what comes back; the second body is not inspected and not applied. It guarantees that *this exact operation* runs once. It does not stop a different request from changing the same resource in between. Where an endpoint needs stricter ordering, it carries its own conflict rules — those return 409 CONFLICT. ## Endpoints with built-in deduplication Some writes are naturally idempotent and need no header at all — for example creating a commerce order with a clientRef, or a cart checkout with a client_ref. Sending the same reference twice returns the same order. Where that applies it is called out on the endpoint's reference page; Idempotency-Key still works alongside it. --- # API overview https://docs.onivos.com/developers/api/ # API overview The Onivos API is a JSON HTTP API. Everything you can do in the app — read contacts, create records, publish a page, send a message, place an order — you can do over the API with an API key. ## Base URL There is no /api prefix and no version segment in the path: the API lives at the root of its own origin, so a route is its own fully-qualified path (/contacts, /objects/{key}/records, /commerce/orders). When a public contract eventually has to change incompatibly, it will be pinned with a request header — never a path rewrite — so the URLs you write today keep working. ## Authentication Every request carries a bearer token: Keys are scoped per endpoint group, and come in **live** and **test** flavours. See Authentication. ## Response envelope A successful response wraps its payload in data: A list response puts the page inside the same envelope: Failures replace data with error: See Errors for the full code list, and Pagination & sorting for page / limit / sort. ## Types on the wire | Concept | Shape | Notes | |---|---|---| | Ids | string | 64-bit, time-ordered ids. **Always strings** — they exceed the safe integer range in JavaScript, so never parse one as a number. | | Timestamps | string | UTC, ISO 8601 (2026-08-02T09:14:33.512Z). Send UTC; you always receive UTC. | | Money | integer + string | Minor units (cents) plus a currency code. Never a float. | | Enums | string | Lowercase snake_case (lifecycle_stage: "marketing_qualified"). | | Absent vs null | — | PATCH applies only the keys you send. Send null to clear a value; omit the key to leave it untouched. | ## Try any endpoint from these pages {#playground} Every endpoint in this reference carries a **playground**. A group renders as a stack of rows — method, path, what it does — and opening one gives you a parameter form, the request as cURL or Node.js, and a **Send** button. - **Live** sends the request you built to the API origin shown in the panel — the API this documentation site belongs to, editable if you run your own — from your browser, and shows the real status, timing and body. It needs a key: paste one into the panel and it is reused by every playground on the site for the rest of the tab. Start with a test key (onv_test_…) — test keys exist on every plan, including Free. - **Demo** answers from a small in-browser store instead of the API, so the contact endpoints are clickable with no key and no account. Only those carry it; every other panel is live-only and says so. Your key is held in the tab (sessionStorage), sent only as the Authorization header of the request you asked for, and never stored by this site. Point the panel at another origin — a local API, a staging one — by editing the base URL in the request it shows. ## Endpoint groups Every route belongs to exactly one **group**. A group is what you grant a key (contacts:read), what the rate limiter counts against, and how this reference is organised. | Group | Scope prefix | Covers | Reference | |---|---|---|---| | Contacts (CRM) | contacts | Contacts, companies, deals, pipelines, tasks, tickets, segments, tags | Contacts & CRM | | Data schema | data-schema | Custom objects, fields, views, permissions | Data schema | | Data Object records | data | Rows in your custom objects, import/export, aggregate | Records | | Website | website | Sites, pages, forms, domains, redirects, themes, menus | Websites & pages | | Content (blog) | content | Blog articles | Blog content | | Media | media | File uploads, folders, tags | Media files | | Conversation | conversation | Inbox, conversations, channels, routing, SLAs | Conversations | | Messaging (outbound) | messaging | Sending and editing messages in a conversation | Conversations | | Automation | automation | Workflows, runs, connections | Automation | | Marketing | marketing | Broadcasts, journeys, programs, suppressions | Marketing | | AI | ai | Agents, knowledge, tools, evaluations | AI agents | | Commerce | commerce | Catalog, inventory, orders, payments, shipping, promotions | Commerce | | Account | account | Organizations, markets, members, invitations, billing, keys | Account | | MCP (AI clients) | mcp | The MCP endpoint AI clients connect to | MCP | Session-only surfaces — signing in, MFA enrolment, platform administration, product feedback — deliberately have **no group**, so an API key can never reach them. A request to one returns 403 insufficient_scope with the message *"This endpoint is not available to API keys"*. ## Conventions you can rely on everywhere - **Lists are paged, sorted and filtered by the server.** Never fetch everything and page in your client — Pagination & sorting. - **Writes are safe to retry.** Send an Idempotency-Key and a retry can never create a duplicate — Idempotency. - **Rate limits are per group.** Every limited response carries RateLimit-* headers — Rate limits. - **PATCH is partial, PUT is a replacement.** Where both exist, PUT overwrites the whole resource with what you send. - **Deletes are usually soft.** A deleted record leaves lists and returns 404 by id, but is recoverable from trash where the pillar supports it. --- # Marketing https://docs.onivos.com/developers/api/marketing # Marketing Broadcasts, journeys and the machinery around them: audiences, A/B tests, conversion goals and suppressions. **Scope:** marketing:read · marketing:write ## Broadcasts A broadcast is one send to an audience — email, SMS or another connected channel. ### A/B tests ## Journeys and programs A **journey** is a multi-step, per-contact flow; a **program** groups related marketing activity under one goal. ## Suppressions The list of addresses that must never be contacted again — bounces, complaints, unsubscribes and anything you add yourself. Every send filters against this list server-side. Removing an entry you did not add yourself — a hard bounce, a spam complaint — will damage your sending reputation. Delete only entries you are certain about. ## Settings, channels and analytics ## AI drafting ## Consent and tracking endpoints Recipient-facing URLs — open and click tracking (/m/o/{token}, /m/c/{token}) and the consent endpoints — authenticate with the token in the link. They are placed in your outbound messages automatically; there is nothing to call. Delivery events from email and SMS providers arrive on /marketing/webhooks/…, signed by the provider. Do not call these yourself. ## Related - Contacts & CRM — the segments you send to. - Automation — triggering sends from a workflow. --- # MCP https://docs.onivos.com/developers/api/mcp # MCP One endpoint exposes Onivos as **tools** to AI clients — Claude, ChatGPT, Gemini, Cursor and anything else that speaks the Model Context Protocol. **Scope:** mcp:write (or mcp:*). MCP calls are always POST, so a read-only mcp:read grants nothing. Per-pillar scopes on the same token then decide **which tools appear** — a token with mcp:write and contacts:read sees the contact read tools and nothing else. The step-by-step guides for each client live in Connect your AI. This page is the protocol contract behind them. ## Transport JSON-RPC over Streamable HTTP, **stateless**. There is no session to establish and no event stream to hold open. | Request | Result | |---|---| | POST /mcp | JSON-RPC: initialize, ping, tools/list, tools/call. | | Notifications | 202, no body. | | GET / DELETE /mcp | 405 — no server-sent stream, no sessions. | | JSON-RPC batch | Rejected (-32600). Send one call per request. | Send MCP-Protocol-Version and the server negotiates on initialize. Origin is validated against the organization's allowed origins. Every method is the same POST with a different body, so one playground covers the protocol — swap method and params and send: ## Authenticating Two credentials work: - **An API key or personal access token** — Authorization: Bearer onv_…. This is what CLI-style clients use. - **An OAuth access token** — for clients that sign the user in interactively. A token-less POST answers 401 with a WWW-Authenticate header pointing at the protected-resource metadata, which is how a compliant client discovers where to send you to log in. A session cookie is **not** accepted: MCP is a token surface. ## What the tools are Tools are generated from the platform's capability registry, so the catalogue tracks the product rather than a hand-written list. - **Names** are the capability with a underscore instead of a dot — dataObject.createRecord becomes dataObject_createRecord. - **inputSchema** is the capability's own validation schema, so a model can call a tool correctly from tools/list alone. - **Read tools** are annotated read-only; **destructive** capabilities are never listed at all. - **Scope-gated:** a tool your token may not use is absent from tools/list, and calling it by name fails. - A token always acts with the **admin** role, so owner-only capabilities never surface. Two extra tools, search and fetch, are listed first. They are the generic search-and-read pair that ChatGPT's company-knowledge and deep-research modes look up by name: search returns titled, linkable results across the entity types your token may read; fetch returns one entity's full text with its URL. ## Writes are confirmed in two calls A tool that changes data does not act on the first call. Instead it validates your arguments and returns a **preview plus a confirmation token**. Calling again with that token executes it. The token is single-use, expires after five minutes, and is bound to the exact arguments that produced it — an edited argument invalidates it. Handlers re-check permissions server-side regardless, so the pattern is a safety rail for the model, not the security boundary. ## Errors - **Protocol errors** (malformed JSON-RPC, unknown tool) come back as JSON-RPC errors. - **Everything else** — validation failures, permission denials, business-rule conflicts — comes back as a tool result with isError: true and a readable message, so the model can correct itself and retry instead of the conversation dying. ## Governance Admins control AI-client access for the whole organization: connections can be disabled outright, and the data groups an interactively-authorized client may reach can be capped below what the user consented to. Organization API keys are exempt from that gate — they are configured by an admin in the first place. Usage is auditable: every executed and previewed tool call is recorded, and GET /developer/mcp-usage?range=30 returns organization-wide totals, per tool and per key. ## Related - Connect your AI — client-by-client setup. - Authentication — tokens and scopes. - AI agents — importing tools *from* an MCP server into an Onivos agent. --- # Media files https://docs.onivos.com/developers/api/media # Media files Images, documents and other assets, shared by every pillar — a file uploaded here can be a page image, an email attachment, a product photo or a record attachment. **Scope:** media:read · media:write Every method counts against the heavy class, not just writes — see Rate limits. Upload in a steady stream rather than in one burst. ## Uploading a file Uploads go **directly to storage** in two steps, so your bytes never pass through the API. ### 1. Mint an upload URL | Field | Required | Description | |---|---|---| | filename | yes | Original file name. | | contentType | yes | MIME type. | | size | no | Byte size, checked against your storage allowance. | | visibility | no | public or private. | | origin | no | library (default) or record — record keeps the file out of the media library listing. | The response carries the URL to PUT to, and the storage key you will need in step 2. ### 2. PUT the bytes, then confirm Upload the file to the returned URL with a plain PUT, then tell the API it landed: Only key is required. The file exists as a media record from this response onward — an upload that never gets confirmed is not part of your library. ## Files ## Folders ## Bringing files in from elsewhere Stock imports keep the author and source URL the provider returned. Keep them on the rendered page — that is the licence condition, not a nicety. ## Related - Websites & pages — using a file on a page. - Records — attachment fields point at these files. --- # Pagination & sorting https://docs.onivos.com/developers/api/pagination # Pagination & sorting Lists are paged, sorted and filtered **by the server**. There is no endpoint that returns your whole table — and no reason to want one: sorting a page you fetched yourself sorts only what you loaded, and counting it lies about the total. ## The list envelope | Field | Meaning | |---|---| | items | The rows on this page. | | total | How many rows match the filters — not how many are on this page. | | page | Echo of the requested 1-based page. | | limit | Echo of the applied page size. | | approx | Present and true when total is an estimate (see below). | ## Parameters | Parameter | Type | Default | Notes | |---|---|---|---| | page | integer | 1 | 1-based. Values below 1 clamp to 1. | | limit | integer | 25 | Page size. **Maximum 200** — a larger value clamps, it does not error. | | sort | string | per endpoint | field:asc or field:desc. | Filters are per endpoint — q for search, plus resource-specific ones like lifecycle on contacts or status on orders. Each reference page lists what its endpoint accepts. ### Sorting sort is field:direction: Only whitelisted fields are sortable, and the whitelist is per endpoint. **An unknown field is ignored, not rejected** — the endpoint's default ordering applies instead. If a sort seems to have no effect, it is not on that endpoint's list. Without sort, most lists return newest first. Sorting is stable: where the sort column can tie (a name, a score, a count), a unique tiebreaker is appended, so a row can never appear on two pages or on none. ## Big lists: approx An exact count over a very large unfiltered table costs more than the page itself. Past roughly ten thousand rows, an unfiltered list returns an **estimated** total and sets approx: true — render it as "about 12,000", not "12,000". Any narrowing filter (a search, a status, a date range) brings the exact count back, since the count is then bounded by the filter. ## Deep paging Offset paging degrades the further you go: page 400 still has to walk past the first 399 pages' worth of rows. For a full export, prefer: - the export endpoints, where the pillar has one (contacts, records, products); or - **cursor paging** on Data Object records, which is built for exactly this. ## The one exception: Data Object records GET /objects/{key}/records returns a different, richer envelope because it supports cursor paging over very large tables: Rows are in rows (not items), and to walk the whole object you follow nextCursor instead of incrementing page: nextCursor is null on the last page. Passing an explicit page switches that endpoint back to offset mode and stops returning a cursor. Details and the filter grammar: Records. --- # Rate limits https://docs.onivos.com/developers/api/rate-limits # Rate limits Limits are enforced **per endpoint group**, per token. Contacts traffic and commerce traffic draw on separate budgets, so a busy import cannot starve your webhook handler. ## Headers Every limited response carries the current state of your budget: | Header | Meaning | |---|---| | RateLimit-Limit | The burst size for this group and action. | | RateLimit-Remaining | Requests you can still make right now. | | RateLimit-Reset | Seconds until the budget is fully refilled. | When you exceed it: Honour Retry-After. It is a whole number of seconds and it is never a guess. ## How the budget works Two numbers per group: a **sustained rate** (requests per second) and a **burst** (how many you may fire at once). The budget refills continuously — after a burst you are back to full in RateLimit-Reset seconds, and you never wait for a fixed window to tick over. Actions are classed, and each class gets its own numbers: | Class | Applies to | Why | |---|---|---| | **read** | GET / HEAD on most groups | Cheap. | | **write** | Everything else on most groups | Costs durable work. | | **heavy** | The media and messaging groups, every method | Uploads and outbound sends are expensive per call. | | **ai** | The ai and mcp groups | Every call spends model budget. | Your plan picks the numbers: | Plan tier | read | write | heavy | ai | |---|---|---|---|---| | Small | 10/s, burst 50 | 5/s, burst 20 | 2/s, burst 10 | 1/s, burst 5 | | Medium | 25/s, burst 100 | 10/s, burst 50 | 5/s, burst 20 | 3/s, burst 15 | | Large | 75/s, burst 300 | 30/s, burst 150 | 15/s, burst 60 | 10/s, burst 40 | **Test keys are fixed at 1 request/second, burst 10**, on every plan. That is deliberate: test credentials are for correctness, not throughput. Limits can be raised per organization or per key. If a legitimate workload does not fit the table above, talk to us before you engineer around it — a raised ceiling beats a sleep loop. ## Concurrency cap On top of the rate, ai and heavy requests have a cap on how many may be **in flight** at once for your organization (5 and 10 by default). Exceeding it returns 429 with: The fix is fewer parallel workers, not faster retries. ## Rate limit vs quota Both are 429. They are not the same problem: | | rate_limit_exceeded | quota_exceeded | |---|---|---| | Means | "Slow down" | "Buy more" | | Refills | Continuously, seconds | Monthly | | Retry helps | Yes, after Retry-After | No, not before details.period_end | Branch on code. See Errors. ## Handling limits well - **Retry on 429, 500 and 503** with exponential backoff and jitter — but respect Retry-After when it is present; it beats your backoff curve. - **Never retry quota_exceeded** in the same loop. - **Pair retries with an Idempotency-Key** so a retried write cannot duplicate. - **Spread bulk work.** Importing 10,000 contacts at your burst ceiling is slower overall than a steady stream at the sustained rate, because you spend the difference in 429s. - **Watch RateLimit-Remaining** and slow down before you hit zero, rather than after. --- # Records https://docs.onivos.com/developers/api/records # Records Rows in your Custom Data Objects. This is the endpoint group most integrations spend their time in: read rows, write rows, aggregate them, import and export. **Scope:** data:read · data:write — note this is a **different group** from data-schema, so a key can be allowed to write rows while being unable to touch the object's structure. ## Reading records Rows arrive in rows, not items, and paging is **cursor-first**. That is the documented exception to the standard list contract — see Pagination. | Parameter | Type | Default | Description | |---|---|---|---| | limit | integer | 50 | Page size, max **200**. | | cursor | string | — | Continue from a previous page's nextCursor. | | page | integer | — | Offset mode instead of cursor mode. Supplying it stops nextCursor being returned. | | sort | string | manual row order | fieldKey:asc \| fieldKey:desc over any stored field, or a comma-separated list of them (up to 8) — status:asc,amount:desc sorts by status, then by amount within each status. Empty values sort last at every level. Default is the object's manual row order. | | filters | JSON array | — | See below. | | search | string | — | Text search across searchable fields. | | searchKeys | string | — | Restrict the search to named fields. | total may be an estimate on very large unfiltered objects — check approx. ### Filters filters is a JSON array of clauses, URL-encoded in the query string: Clauses combine with AND. | Operator | Value | Meaning | |---|---|---| | eq · neq | scalar | Equals / does not equal. | | gt · gte · lt · lte | scalar | Ordered comparison — numbers, dates, datetimes. | | contains | string | Case-insensitive substring. % and _ are literal, not wildcards. | | in | array | Any of these values. **Maximum 50** entries. | | empty · notEmpty | — | No value / has a value. Takes no value. | | linkedTo · notLinkedTo | record id | For relation fields: linked (or not) to that record. | An unknown operator or a filter on a field you have no read grant for is rejected — it is never silently dropped. ### The read endpoints ### Aggregate | Parameter | Description | |---|---| | groupBy | A stored field to group on. Omit it for a single grand total. | | fn | count (default), sum:{fieldKey} \| avg:{fieldKey} \| min:{fieldKey} \| max:{fieldKey}, or filled:{fieldKey} (non-empty cells). Without groupBy it takes a comma-separated list, answered in groups[0].totals keyed by each spec. | | rollup | 1 to group by up to three fields at once (groupBy=stage,owner): every level's subtotal comes back as { path, count } — ["won","ann"], its parent ["won"], and the grand total []. | | filters | The same filter grammar as the list. | Only stored fields can be grouped on, and only numeric-valued fields summed or averaged. ## Writing records Field values live under a fields envelope, keyed by **field key**: **Relations** take either form: an id array in fields **replaces** the whole set, while linksDelta — { " ": { "add": [ids…], "remove": [ids…] } }, up to 500 ids per side — adds and removes without sending the rest. Prefer linksDelta for incremental changes; it is also the only write channel for a reverse relation field. **Computed fields are ignored on write.** formula, rollup, lookup, ai, ai_image and auto_number values are produced by the platform; sending them is not an error, it just has no effect. **Row order** uses neighbours, not an index — an index would mean something else if another client inserted a row in between. **Bulk writes** are one request each, so a large batch spends one call of your write rate limit instead of one per row: PATCH …/records/bulk updates up to 500 rows, POST …/records/bulk creates up to 200 (a row that is refused comes back in failed with its index — the rest are still created), and POST …/records/bulk-delete moves up to 500 rows to trash (ids you cannot delete come back in missing). ### Comments ## Import, export and trash ## Permissions apply to keys Object grants are enforced on API traffic exactly as in the app: an actor scoped to their own rows sees only their own rows here too, and masked fields are stripped from rows before they leave the server. Manage grants via Data schema → Permissions. ## Quotas Writes that trigger AI or formula computation consume credits. When the allowance runs out the write still succeeds, but those cells keep their last value instead of silently producing a wrong one — the response carries an x-quota-blocked header. Recompute the field once you have credit again. --- # Websites & pages https://docs.onivos.com/developers/api/website # Websites & pages Sites, pages, forms, domains, themes and menus — the Website Builder's API surface. **Scope:** website:read · website:write If you want to author templates, layouts and widgets, the toolchain is what you want: Build themes with the CLI, Template language, Widget fields. ## Sites ## Pages A page's source of truth is its **code**. The editor edits that code; so can you. ### Publishing and revisions ## Forms Two public endpoints serve and accept the form from a visitor's browser — **no API key**: ## Domains and redirects The previously published DNS record stops being valid. Re-read the domain after adding it and publish the token it returns then. ## Themes The same file endpoints exist per site (/websites/{id}/fs…) for site-level overrides. The CLI drives exactly these — see Build themes with the CLI. ## Menus, global sections and blocks ## Controllers Server-side handlers that run for a route on your site — the escape hatch for custom request logic. ## Marketplace ## AI endpoints These sit in the website group but spend AI credits and are rate-limited accordingly. ## Related - Blog content — articles live in their own group. - Media files — images and assets. - Writing templates — the product-side guide. --- # Connect your AI https://docs.onivos.com/developers/connect-ai # Connect your AI Connect Onivos to the AI you already use — **Claude**, **ChatGPT**, or **Gemini** — and ask it about your workspace or have it do the work: *"how many orders today?"*, *"draft a reply to Minh's ticket"*, *"create a promo page"*. The AI runs on **your** subscription. Onivos simply exposes your data and actions over the open **Model Context Protocol (MCP)**, so there's no extra AI cost and your Onivos data is available wherever your AI lives. - **Reads run directly** — the AI can look things up straight away. - **Writes are confirmed first** — anything that changes data comes back as a preview; it only runs after the AI confirms it. A poisoned or misleading record can never silently trigger a change. - **It acts as you** — the connection is capped by your role and by exactly the permissions you approve when you connect. ## Before you start - You need an Onivos account on a paid plan. - Your organization's admins can enable or disable AI-client connections and limit which data groups they can reach — see Admin controls. If a connection is refused, check with an admin. - Find your MCP endpoint under **Settings → Developer → Connect AI clients**. It looks like https://api.onivos.com/mcp. ## Claude.ai Works on Claude **Pro, Max, Team, and Enterprise**. No API key — you sign in and consent. 1. In Claude, open **Settings → Connectors → Add custom connector**. 2. Paste your Onivos MCP endpoint URL and add the connector. 3. Claude opens Onivos to sign in. **Approve the requested permissions** and pick the organization to connect. 4. Back in a chat, enable the Onivos connector and ask away. Manage or revoke the connection any time under **Settings → Developer → Connected apps** in Onivos. ## ChatGPT Available through ChatGPT's developer-mode connectors. 1. In ChatGPT, go to **Settings → Apps & Connectors → Advanced → Developer mode**. 2. Create a connector using your Onivos MCP endpoint URL and sign in to authorize it. 3. In a chat, add the Onivos connector to use its tools. **Company knowledge & deep research.** ChatGPT can search and cite your Onivos content through the standard search and fetch tools — results link back to the exact record in Onivos. ## Gemini **Gemini CLI** — add Onivos to ~/.gemini/settings.json: Create the key under **Settings → Developer** with the MCP (AI clients) scope plus the pillar scopes you want to expose, then paste it in place of onv_live_YOUR_API_KEY. **Gemini Enterprise** — an admin registers Onivos as a remote MCP data store (**Admin → Data stores → Add remote MCP server**) using the endpoint URL; Enterprise signs in with OAuth, so there's no key to paste. The consumer Gemini app doesn't support custom connectors yet. Use the Gemini CLI or Gemini Enterprise for now — the same endpoint works the moment Google opens the surface. ## Other clients The same endpoint works with any MCP client. Key-based clients (Claude Code, Cursor, the Claude API) authenticate with an org key from **Settings → Developer**; the in-product **Connect AI clients** card has a ready-to-copy snippet for each. ## Permissions & scopes An AI client can only touch the **scope groups** you grant it — Contacts, Website, Content, Commerce, and so on. Onivos scopes follow a simple grammar: - contacts:read — read that group. - contacts:write — write (and, implicitly, read) that group. - mcp — the transport scope every AI client needs to reach the endpoint. Destructive actions are never exposed to AI clients, and any capability above your own role stays hidden. For OAuth clients (Claude.ai, ChatGPT, Gemini Enterprise) you approve the scopes on the consent screen; for key-based clients you choose them when you create the key. ## Security & privacy - **Least privilege.** A connection acts as you, capped by your live role — if your role changes or you're removed, the connection weakens or stops working shortly after. - **Writes are always confirmed.** Every data-changing tool previews first and only executes on a second, explicit confirmation. - **Content is data, not instructions.** Records the AI reads are clearly marked as workspace data, so text inside a record can't hijack the assistant. - **Revoke any time.** Remove a connection under **Settings → Developer → Connected apps**; API keys are revoked from the **Organization keys** tab. - **Your AI provider sees the data you ask about.** When you use your own Claude, ChatGPT, or Gemini account, the Onivos data involved in a request is processed by that provider under their terms. Enabling connectors is an organization decision — see below. ## Admin controls Owners and admins govern the surface under **Settings → Developer → AI-client governance**: - **Allow AI-client connections** — turn the surface on or off for the whole organization. When off, new sign-ins are refused and existing connections stop working shortly after. Organization API keys are unaffected. - **Limit exposed scope groups** — cap the data groups any member may expose to their AI client. Leave it empty to allow every group a member already has access to. Admins can also review **AI-client usage** (calls per day, per tool, per credential) on the same page to see what's being accessed through connected AI clients. --- # Developer Docs https://docs.onivos.com/developers/ # Developer Docs Build on top of Onivos. The API lets you read and write your data, drive the platform from your own tools, and connect an AI client over MCP. ## Start here - **API overview** — base URL, response envelope, the endpoint groups. - **Authentication** — keys, personal access tokens, scopes. - **Errors** · **Pagination** · **Rate limits** · **Idempotency** — the four contracts every endpoint shares. ## Your first call Create a **test key** in the app under **Settings → Developer**, then: Test keys exist on every plan, including Free. ## API reference | Area | Covers | |---|---| | Contacts & CRM | Contacts, companies, deals, tasks, tickets, segments | | Data schema · Records | Custom objects and the rows in them | | Websites & pages · Blog content | Sites, pages, forms, domains, themes, articles | | Media files | Uploads, folders, generated and stock images | | Conversations | Inbox, messages, channels, routing, SLAs | | Automation | Workflows, runs, connections, inbound webhooks | | Marketing | Broadcasts, journeys, suppressions | | AI agents | Agents, knowledge, tools, evaluations | | Commerce | Catalog, inventory, orders, payments, shipping | | Account | Organizations, members, billing, API keys | | MCP | The endpoint AI clients connect to | ## Guides - **Connect your AI** — use Onivos inside your own Claude, ChatGPT, or Gemini over MCP: setup per client, scopes, and the security model. - **Build themes with the CLI** — the onv theme toolchain. - **Template language** · **Widget fields** — authoring reference for themes. An interactive playground on every endpoint, and typed request/response schemas generated from a machine-readable spec, are being built. The pages above document the live contract today; the Contacts page already carries a playground you can click through. --- # Template language reference https://docs.onivos.com/developers/template-language # Template language reference Every Onivos template — website pages, layouts and modules, email and marketing messages, PDF documents, AI prompts and automation fields — is written in one language: **HubL-flavoured Jinja**. A template never fetches: what it reads is declared at the top with {% data %} and loaded before it renders; every render is bounded in time and work; and every value is escaped for where it lands. Anything not on this page does not exist — a name from Liquid, Jinja or HubL that Onivos leaves out fails at save with the replacement named. ## 1. Principles **P1 — One obvious way.** Two constructs for one job are a bug in the language: every synonym is a fork an author or an LLM takes, and a round-trip in the MCP authoring loop. Where Jinja and HubL both offer two ways, one is kept and the other fails at save with the replacement named (§11). **P2 — Data is declared, then rendered.** A template never fetches. What it reads is declared at the top with {% data %} (§8), checked at save, and loaded before the render starts. The render itself does no I/O. **P3 — Bounded by construction.** Every render runs under a fuel budget and a wall-clock deadline enforced inside the interpreter, and every builtin is O(size of its input) with that size capped (§10). The longest step the interpreter cannot interrupt is a measured, test-pinned constant. A builtin that cannot meet this does not ship — which is why there is no regex filter. **P4 — Names.** Jinja's name for core behaviour; HubL's where Onivos semantics match; an Onivos name only where the semantics are Onivos's own (money takes minor units, HubL's currency formatter does not). HubSpot structure tags keep their HubL names and shapes. **P5 — Escaped for the context.** In html mode every output is escaped for where it lands — text, attribute, URL, script, style, tag/attribute name (§7) — markup included. |safe is the only opt-out, and never from the URL check. **P6 — Deterministic.** The same template and data render the same bytes (pages are cached). No randomness, no clock without an explicit timezone and format. --- ## 2. Lexical structure | Element | Form | Notes | |---|---|---| | Output | {{ expr }} | | | Statement | {% name … %} | | | Comment | {# … #} | never output; may span lines | | Whitespace control | {%- -%} {{- -}} | strips whitespace on that side up to the next non-space character, newlines included | | Raw text | {% raw %}…{% endraw %} | emitted verbatim, delimiters and all | | String | "…" or '…' | escapes: backslash + n t r \ ' ", and backslash + u + 4 hex digits | | Number | 42 -7 3.14 1e3 1_000 | IEEE-754 double; integers exact to 2^53 | | Constants | true false none | True/False/None accepted (Jinja habit), lowercase is canonical | | Identifier | [A-Za-z_][A-Za-z0-9_]* | case-sensitive | Template files use .html (HubL's convention). --- ## 3. Values | Type | Truthy when | Notes | |---|---|---| | none | never | | | boolean | true | | | number | ≠ 0 | nan is falsy | | string | non-empty | UTF-16 length is what the limits count | | list | non-empty | ordered | | dict | non-empty | insertion-ordered; keys are strings | | undefined | never | a missing variable, attribute or index; renders as '', chains leniently (a.b.c of a missing a is undefined, not an error) | | unavailable | never | a {% data %} result that could not be loaded and has no stale copy (§8.5); iterates as empty, renders as '', and is what is unavailable detects | | markup | as its text | text already escaped for HTML (the result of |safe, a {% set %} block, a macro call, a markup-producing filter); autoescape leaves it alone | **Data is immutable.** Every value that comes from the ambient scope or a {% data %} declaration is read-only. Lists and dicts a template builds itself (literals, filter results) are mutable through {% do %} (§5.6) and nothing else. **Display** (what {{ x }} prints) follows HubL rather than Python: true/false, none and undefined as '', a number in its shortest form (2, not 2.0 — there is one number type), a list or dict as compact JSON. round rounds half away from zero (2.5 → 3, HubL/Java's HALF_UP), not Python's half-to-even. The integer/float tests judge the value (2.0 is integer). Equality (==) compares by value (deep for lists and dicts, charged like any other traversal). Ordering ( >= (comparisons chain: a / end of once, deduplicated by content hash | Tag arguments are name=value separated by commas (a trailing comma is allowed). Every module's fields are a JSON Schema in its definition (unchanged from today); unknown field names are a save error. **What the builder edits**: inside an area, a dnd_module, dnd_row and dnd_column whose arguments are all literals is an element; everything else — markup, control flow, dnd_section, a tag written with an expression — is opaque code the canvas moves as one block. The builder writes a canonical form (arguments id, path, fields sorted, styles last; a row's widths whole spans filling 12 columns with its offsets) and owns the tag text it writes: an id-less dnd_module/dnd_row/module gets its id on save. An offset skips columns from where the previous column ended; on small screens the columns stack and offsets drop. ### 5.6 Mutation {% do x.append(v) %} · {% do x.extend(list) %} · {% do d.update({"k": v}) %} — on values the template built itself (§3); on declared or ambient data they are a runtime error. Each call is charged like the allocation it is. ### 5.7 Data {% data name = source.method(arg=value, …) %} — §8. --- ## 6. Builtins (v1) Every entry is O(n) in its input, charged to the fuel meter by the work it does, and bounded by the limits of §10. Columns: name · what it does · Jinja / HubL / Onivos origin. ### 6.1 Filters The engine ships Jinja's core and the Intl-backed formatting; filters that rest on a platform helper — slugify, striptags and sanitize_html, money, t, image_url/image_tag/image_srcset, asset_url/stylesheet_tag/script_tag, class_names — are registered by the host environment, so each rule keeps its single home. Both kinds are the dialect; an author cannot tell them apart. | Group | Filters | |---|---| | String | upper lower capitalize title trim replace(old, new, count) split(sep, max) truncate(length, killwords, end) wordcount striptags slugify urlencode urldecode (HubL — + is a space) center✗ indent✗ | | Markup (return markup) | safe · sanitize_html (HubL — allowlist sanitizer for rich text not sanitized at the normalizer) · truncatehtml(length, end) (HubL — tag-aware, closes what it opened) · newline_to_br (escapes its input, emits only its own ) | | Number | abs round(precision, method) (method: common/ceil/floor) int(default) float(default) format_number(decimals) (HubL — locale-aware grouping) filesizeformat | | Money | money(currency) money_with_currency(currency) (Onivos — integer MINOR units in; currency from the site/commerce scope unless given; locale = the store's business locale, site.money_locale — one format on every page language, as the storefront DTOs — else the page) | | List | first last length join(sep, attribute) sort(reverse, case_sensitive, attribute) reverse unique(attribute) map(attribute=…) map(filter_name, …) select(test) reject(test) selectattr(attr, test, …) rejectattr(…) groupby(attribute) batch(size, fill) slice(slots) sum(attribute, start) min(attribute) max(attribute) list dictsort(by, reverse) items · union(other) intersect(other) difference(other) symmetric_difference(other) (HubL — each value once, by value, in the left list's order then the right's) | | Date | format_date(format, timezone, locale) format_time(…) format_datetime(…) (HubL — named formats short/medium/long/full or a pattern; timezone defaults to the site's) · datetimeformat(strftime, timezone) · plus_time(n, unit) minus_time(n, unit) between_times(end, unit) (HubL — unit one of seconds … weeks exact, months/years calendar units in UTC: a shifted day clamps to the month's last, a difference counts whole units as Java's time API does) · unixtimestamp (epoch milliseconds) | | Data | default(value, boolean) · tojson (in a it is embedded as the JSON it is — §7) · fromjson (JSON text → read-only value, held to the list caps) · string | | Locale | locale_name(locale) (HubL — a language code's name in locale, else in itself: "vi"\|locale_name → Tiếng Việt) | | Media & assets | image_url(width=, size=) image_tag(alt=, sizes=, fetchpriority=) image_srcset(sizes=) asset_url stylesheet_tag script_tag (Onivos — the media-derivative and fingerprinted-asset contracts are unchanged from today) | | i18n | t(default=…, **params) (Onivos — the theme locales/ catalog) | | Classes | class_names (Onivos — conditional class joiner) | ✗ = not shipped (P1/P3: no real use in a CMS, or a cheaper way exists). ### 6.2 Tests (x is t) defined undefined none boolean number integer float string mapping sequence iterable even odd divisibleby(n) in(seq) eq ne lt le gt ge lower upper · containing(x) containingall(list) string_startingwith(prefix) (HubL — containing is in reversed, for selectattr('tags', 'containing', 'news')) · unavailable (Onivos — §8.5). The comparison tests exist for select/selectattr; in an expression, write the operator. ### 6.3 Functions range(start, stop, step) (length capped) · namespace(**values) · super() · caller() · loop.cycle() · loop.changed(). Nothing else: a function that reads data is a {% data %} source (P2), and a function that formats data is a filter. --- ## 7. Escaping (html mode) The compiler knows the HTML context of every output when it compiles the template and emits the escaper for it: | Context | Escaping | |---|---| | Text, quoted attribute | HTML-escaped (& " ') | | Unquoted attribute | HTML-escaped + whitespace, = and backtick as character references | | URL attribute (href, src, action, …, and an SVG animation's to/from/by/values — each ; entry) | a script-capable scheme (javascript:, vbscript:, non-image data:; data:image/svg+xml outside an image element — an / / loads it as a document) becomes about:invalid#onv-unsafe-url — judged across literal text and outputs (java{{ x }} counts); then HTML-escaped | | body / on* attribute | inside a string, template literal or regex: backslash-u escapes for every character that could end it (an empty regex value is (?:), never //); in operand position: a JS literal (numbers stay numbers, tojson output is embedded as-is with & escaped — JSON-LD stays valid); plus HTML encoding inside an attribute | | body / style attribute | a value that could leave its declaration ({ } / a tag name from a value is refused at save | | srcdoc | HTML-escaped twice | | Comment, , SVG , , , a non-JS ) | HTML-escaped; markup has its own end tag ( , , --!>; every JavaScript MIME type a browser runs is a JS body (text/x-javascript, text/jscript, … with or without parameters); is raw text (scripts run only where it is); inside a script keeps the next from ending it; inside / nothing is raw text except at an HTML integration point, an HTML-only tag breaks out, and an SVG / body — markup there — is refused at save if it holds , a or an on*/style attribute it is refused at save — its output is HTML, which the escaper can only turn into a string there; the element belongs inside the template it renders. **Every path agrees on the context** (Go's html/template rule). Each branch of an if is scanned from where the if starts and the branches must end in one context; a for body must end — and break/continue — in the context it starts in (checked to a fixpoint: the second iteration starts where the first ended); a macro, {% call %} or {% set %}…{% endset %} body is scanned on its own and must end in element text; a template must end in element text. Otherwise it is refused at save with the position. Paths that differ only where the escaper stays safe are joined instead: an optional attribute ({% if c %} selected{% endif %}) — as long as whitespace, / or > follows — a class toggled inside a value, a script type set by a branch (read as JS), a URL whose scheme region may already hold a value (later values judged as if one came first); a / in a script after branches that disagree on division vs regex is refused. text mode escapes nothing; expr mode returns a typed value. --- ## 8. Data declarations ### 8.1 Syntax and placement Allowed only in a **page template, a layout, or a module definition**, before any output. Not in partials or macros — those receive data as arguments. A layout's and every placed module's declarations are aggregated with the page's. ### 8.2 Arguments Each argument is one of: a literal; a request value the source declares for THAT argument (request.params.*, request.query.* — validated and mapped by the source, so a visitor chooses a window or a declared option, never a query: ?sort= fills sort_key, the pick among declared options, and is refused in sort, the raw ordering); a module field (module.limit, inside a module definition); a field of an earlier declaration's result (post.id); or a or b of those — the first that is set (handle=module.productId or request.params.handle). ### 8.3 Checked at save The source exists; arguments match its schema; the declaration graph has no cycle and at most **2 levels** of dependency; at most **10 declarations** per page after aggregation; and the author holds the grants to publish what each source reads (today's bind gate, assertCanPublishObject). A body that reads a name nobody declared, set or imported is a save WARNING that names the {% data %} line to add — not an error: the name reads undefined (as any missing value does), and a template meant to be bound later (a collection page before its data object is picked) tests it with is defined. ### 8.4 Loaded before the render Aggregated declarations are **deduplicated by (source, arguments)** — two modules showing the same list cost one query — and loaded level by level, each level in parallel. Each source call has a **1.5 s** timeout and the whole page a **3 s** budget. Results are cached per (source, arguments) with the source's TTL and invalidated by its domain events. A required argument the request does not set — slug=request.params.slug on a URL without that param — makes the declaration none without a load: the page has no such item, which is not a failure. ### 8.5 When a source fails **Stale-if-error:** a failed or timed-out call serves the last cached result for the same (source, arguments). Only when there is none does the name resolve to unavailable — distinct from an empty list, so a template can say so ({% if products is unavailable %}) instead of rendering "no products" while the database is down. A page rendered with any stale or unavailable data is not stored in the HTML cache. ### 8.6 Sources A code registry (like capability manifests), one entry per source: argument schema, accepted request values, literal-only arguments, grant check, cache TTL/stale window, and the pure load. --- ## 9. Ambient scope Always present, never declared: site, page, theme, request (path, params, query, locale), local_dt (the render's start time, HubL's name — the footer year), member (when the site has members), and — inside a module — module (its field values and id). The authoritative list and its trust rules stay in the website module card; this file does not restate it. --- ## 11. Not in the dialect — and what to write instead | Construct | Why | Instead | |---|---|---| | HubL data functions (hubdb_table_rows, blog_recent_posts, crm_objects, …) | P2 | a {% data %} source | | regex_replace, any regex | P3 | replace / split | | random, shuffle, clock without format/timezone | P6 | randomize client-side; format_datetime | | {% autoescape %} / {% filter %} blocks | P5 / P1 | \|safe on the one value; apply the filter to the value | | escape / e / forceescape | P5 — autoescape already did it | nothing, or \|safe | | {% cycle %} / {% ifchanged %} tags | P1 | loop.cycle() / loop.changed() | | {% with %} | P1 | {% set %} inside the block you need | | attr, xmlattr, pprint, urlize, wordwrap | P1/P3 — attribute building belongs to the escaper, the rest is unused | ./[]; explicit markup | | HubL filters: add multiply divide divisible cut bool format escapejson format_currency(_value) root | P1 | + * / · divisibleby test · replace · the value itself · ~ · tojson · money/format_number · ** | | HubL filters: escape_html escape_attr escape_js escape_url escape_jinjava unescape_html | P5 — output is escaped for its context | nothing (urlencode for a query value, {% raw %} for literal delimiters) | | HubL: strtotime strtodate convert_rgb geo_distance render md5 ipaddr log, tests within string_containing | P1/P2 — data dates are ISO already, colour maths is CSS's, templates compile at save | format_date/plus_time · CSS color-mix() · a {% data %} source · {% include %} · in · containing | | String/list methods ("x".upper(), s.split()) | P1 | the filter of the same name | | Liquid: assign capture render case/when layout comment echo liquid increment | P1 — the dialect is Jinja | set · block set · include/macro · if/elif · extends · {# #} · {{ }} · — · namespace() | | Liquid filters: upcase downcase strip size append/prepend plus/minus/times/divided_by/modulo where group_by uniq compact json url_encode strip_html date raw | P1 | upper lower trim length ~ operators selectattr groupby unique reject("none") tojson urlencode striptags format_date/datetimeformat safe | Each of these fails at save with the "instead" column in the message. --- ## 12. Modes | Mode | Used by | Output | |---|---|---| | html | website pages/layouts/modules, email bodies, marketing rich bodies, PDF documents | string, contextually escaped | | text | email subjects, SMS/chat channel bodies, AI prompts | string, nothing escaped | | expr | automation node config and conditions | one expression's typed value (not a string); statements are not allowed | A host may add filters whose semantics are its own — the website: money, t, image_url …; automation: date_add/date_subtract/date_diff, format_currency in major units, and re_extract, a regex filter that meets P3 because it compiles with RE2, linear in a subject capped at 8 KB. ## Data sources available to a website - records.list(object*, filters, sort, sort_options, page_size, page, sort_key) — may read page=request.query.page, sort_key=request.query.sort - records.get(object*, key*, field, filters, title_field) — may read key=request.params.slug, key=request.params.id, key=request.params.handle - blog.list(limit, tag) - blog.post(slug*) — may read slug=request.params.slug, slug=request.params.handle - commerce.products(limit, category, q, collection, page) — may read q=request.query.q, collection=request.query.collection, page=request.query.page - commerce.product(handle*) — may read handle=request.params.handle, handle=request.params.slug, handle=request.params.id - commerce.collections() - commerce.nav() - menus.get(handle, id) - forms.get(id*) - pricing.plans() (* marks a required argument.) --- # Build themes with the Onivos CLI https://docs.onivos.com/developers/themes-cli # Build themes with the Onivos CLI The onv CLI lets you develop website themes locally — scaffold a starter, sync on save, preview through the real renderer, and publish to your organization or the marketplace. Everything you edit locally is the **same virtual file tree** the in-app Design Manager IDE edits, so you can switch between local files and the browser at any time. Themes live entirely in the platform: no file is ever written to a server disk. ## Install & authenticate Profiles are stored in ~/.onivos/config.json. Use --profile for multiple organizations, or ONIVOS_URL / ONIVOS_TOKEN / ONIVOS_ORG env vars in CI. > Personal access tokens require a paid plan. A token acts as you, capped by your live > role in the organization. ## The theme workflow upload is hash-diffed — only changed files transfer. fetch pulls any theme (including built-ins, read-only) down as a starting point. ## Theme structure Every file is written in the template language. A page template pastes whole pages: declare {% dnd_area "main" %} …fallback… {% end_dnd_area %} and pages made from it stay editable in the visual builder. Layout membership is declared **in the code**: start the file with {% extends "layouts/theme.html" %} to wrap the page in your layout (plus the global header/footer) and fill its {% block %}s; leave it out and the file is the whole document. ## Storefront data A template **declares** the storefront data it reads; the server loads it before render: | Declaration | Loads | | --- | --- | | {% data products = commerce.products() %} | product cards; ?q=, ?collection=, ?page= move the window | | {% data product = commerce.product(handle=request.params.handle) %} | the detail for the dynamic route (/products/:handle) | | {% data collections = commerce.collections() %} | active collections (nav / filter chips) | Add-to-cart interactivity comes from the shared storefront client, which the commerce modules (commerce-product-grid, commerce-cart, commerce-checkout) load for you — cart and checkout pages are simplest built from those modules; see the skeleton's templates/cart.html. ## Design Manager (the in-app IDE) Websites → Themes → your theme → **Design Manager**: the same file tree, a multi-tab code editor (**⌘S** save, **⌘P** quick-open, **⌘⇧F** find-in-theme) and a live preview. Local onv theme watch and the IDE can be used interchangeably — both write to the same theme. --- # Widget fields reference https://docs.onivos.com/developers/widget-fields import { data } from './widget-fields.data.mjs' # Widget fields reference A widget (a theme's fields.json, a site block, or a built-in component) declares its editable props as a **JSON-Schema subset**. The same schema drives three things at once: the visual editor's Inspector form, AI generation, and validation — a schema that uses a format or keyword outside this page is **rejected on save**. This page is generated at build time from the platform's field contract (revision {{ data.contractHash }}), so it always matches what the platform accepts. ## Shape Point $schema at the URL above to get autocomplete and validation in your editor while building themes with the CLI. - A type: "object" field with properties renders as a nested form; with a format (like link or font) it renders that composite editor instead. - A type: "array" whose items is an object renders as a **repeater** (drag-reorder, duplicate, collapse); with items.enum it renders as a multi-select. - A plain enum renders as a choice — values that are all alignment keywords auto-upgrade to the alignment toggle. ## Field types (format) format picks the editor when type alone is ambiguous. Live-option formats (menu, page, article, record) get their choices injected by the builder — never list options in the schema. format on type stored value notes example {{ f.name }} {{ f.types }} {{ f.value }} {{ f.doc }} Extra keywords: {{ f.keywords }} . {{ f.example }} Without a format, the bare type decides the editor: type renders as {{ t.type }} {{ t.kind }} ## Keywords keyword meaning {{ k.name }} {{ k.doc }} ## Style fields A CLI widget may include a styles object group in its fields.json; it becomes the widget's **Style tab** schema (otherwise every widget gets the standard spacing / background / typography / border / effects form). Style values live on the page node, not in your widget's props, and only whitelisted CSS properties are emitted. --- # Build your first workflow https://docs.onivos.com/help/automation/build-a-workflow # Build your first workflow We'll build something small and real: **when a new record lands in an object, post it to a channel and send the submitter an acknowledgement.** ## Create it **Automation → Workflows → New workflow.** You land in the fullscreen editor: a canvas in the middle, a node catalog you open to add steps, and a config panel on the right for whichever node is selected. The canvas runs **left to right**. Every node has an input on its left edge and one or more outputs on its right. ## 1. Pick a trigger A new workflow starts with a placeholder trigger. Click it and choose one — for this example, **Internal event**, bound to the "record created" event on your object. A workflow has **exactly one trigger**. The editor won't let you add a second; to start the same logic two ways, use two workflows that both call a shared sub-workflow. Every trigger type and when to use it: Triggers. ## 2. Add steps Add a node and drag from the trigger's output handle to its input. For our example: 1. **Internal action** — the node that reaches into the rest of the platform. Pick the pillar and the action (post a message, create a record, send an email…). 2. **Send email** via the internal action router, addressed with an expression that reads the trigger's record. Each node's config panel builds its form from the action you picked, so you're filling in fields, not writing JSON. ## 3. Wire in the data Steps read from the steps before them. Anywhere you can type a value, you can instead insert a reference: Don't type these from memory: the **field picker** on each input lists what's actually available from the trigger and every earlier step, showing real sample values where it has them. Click one and it inserts the right path. Full syntax and the filter library: Expressions and templates. ## 4. Test before you publish Two levels, both on the draft: **Test one node.** Open a node and run just it, against sample data. You see its real output immediately. **Pin** that output and every downstream node you test uses it, so you can build step 5 without re-running steps 1–4. **Test the whole workflow.** Run the draft manually. The canvas animates as it executes — nodes light up as they start, then settle with their duration and result. Click any node to see exactly what went in and what came out. Testing executes real actions: it really sends the email, really calls the API, really creates the record. Point test runs at a test recipient or a scratch record until you trust the graph. ## 5. Publish **Publish** stamps the draft as the live version and immediately opens a fresh draft for you. | | | |---|---| | **Draft** | What you're editing. Manual runs and tests use this. | | **Published** | What triggers actually run. Unchanged until you publish again. | So you can rework a live workflow all afternoon without anything you type taking effect. The trigger's registration — the schedule row, the webhook URL, the record condition — is rebuilt on publish, which is also when a bad trigger config is rejected. If publishing fails with a validation error, the message names the problem. Activate the workflow with the toggle in the header. Published but inactive = fully built, firing at nothing. ## 6. Watch it run **Run history** lists every execution with its status, duration, source (manual, trigger, agent, sub-workflow) and cost. Open one and you get the graph as it ran, with each node's input, output and logs. More: Runs, errors and reliability. ## Good habits - **Name your nodes.** steps.set_customer reads better than steps.node_7 in every expression that follows. - **Add a Filter early.** Cheaper to stop a run at step 1 than to check at step 6. - **Give a failure somewhere to go.** Drag from a node's red error handle so a failure takes a path instead of ending the run — error handling. - **Start from a template.** The gallery has working workflows for common jobs; they're normal graphs you can pull apart. ## Next - Triggers — start it the right way. - The node catalog — everything you can put on the canvas. --- # Connect an app https://docs.onivos.com/help/automation/connections # Connect an app A **connection** holds the credentials for one third-party account. Create it once and every workflow can use it — the keys never appear in a graph, never in an export, and never in a run's data. Manage them at **Automation → Connections**. ## Connect with one click, wherever possible If a service lets you grant access by clicking a button, that's the path you get: a **Connect** button, the provider's normal consent screen, done. No developer portal, no app registration, no copying secrets between browser tabs. This is a rule across the whole platform, not just automation — the same one-click connect appears wherever you attach an account: conversation channels, marketing senders, commerce sales channels. You'll only be asked for keys when the provider genuinely offers no consent flow. ## The connector marketplace **Automation → Connectors** lists ready-made integrations. Installing one gives you: - its **actions**, which appear in the node catalog with proper forms, - its **triggers**, so the service can start your workflows, - and its **connect flow**, one click where the provider supports it — including for connectors published by third parties, which bring their own app registration. ## Connecting manually When you do need to enter credentials, the connection dialog covers the usual shapes: | Type | For | |---|---| | **API key** | A key sent as a header or a query parameter. | | **Basic** | Username and password. | | **Bearer** | A token sent as Authorization: Bearer …. | | **OAuth 2.0** | Your own OAuth app, when you'd rather not use the built-in one. | | **Credentials** | A free-form bag of secrets for services that need something else — payment gateway keys, for instance. | ## Using a connection **HTTP Request** and **Webhook (outbound)** nodes take a connection in their config. Pick it and the authentication is applied to the request as it goes out — you don't build the header yourself. For OAuth connections, tokens are refreshed automatically before a call. You won't get a 401 in the middle of a workflow because a token quietly expired overnight. ## How your secrets are held - **Encrypted at rest**, and never returned by the API. Reading a connection back gives you its name, its type and a short hint — never the secret. - **Not part of the graph.** Exporting or duplicating a workflow carries the *reference* to a connection, not its contents. - **Not in run data.** A run records what a node sent and received; the injected credential isn't part of what's stored. ## Rotating and revoking Edit a connection to replace its credentials — every workflow using it picks up the change on its next run, with nothing to republish. Delete it and workflows that depended on it fail loudly rather than carrying on with stale access. Stripe — live and Stripe — test beat two connections both called "Stripe". The name is what you'll see in a node's config six months from now. ## Variables **Automation → Variables** holds values you want to reuse but that aren't secrets — an API base URL, a default sender name, a threshold. Reference one from any expression as vars. and change it in one place. Variables are stored in plain text by design. Put secrets in a connection. --- # Expressions and templates https://docs.onivos.com/help/automation/expressions # Expressions and templates Every step in a workflow can read the trigger and the steps before it. There are exactly two ways to write that, and knowing which is which saves a lot of head-scratching. ## Two flavours **A template** is literal text with double-brace holes in it. It produces a **string**: **An expression** is a value that starts with =. It produces its **real type** — a number, a boolean, an object, a list: The rule of thumb: if the field wants prose, write a template. If the field wants a number, a yes/no, or a whole object, write an expression. Fields that expect a value show an expression input, and the editor adds and strips the marker for you. You'll see it in exported graphs and in this guide, but in the UI you're just typing steps.lookup.total. ## What's in scope | Path | What it holds | |---|---| | trigger | The event that started the run — the record, the webhook body, the schedule tick. | | steps. | The output of an earlier node, by its id. | | now | The current instant. | | today | The current date. | now and today are always available and are plain values — there's no now() function to call. ## Use the field picker Don't type paths from memory. Every input has a picker that lists what's actually available: the trigger's shape and each earlier step's output, with real sample values where the workflow has run or you've pinned one. It shows readable labels (Customer Email) and inserts the correct path (trigger.fields.customer_email). Where a node hasn't produced a sample yet, it falls back to the shape learned from previous successful runs — so the picker is useful even before you've tested this branch. ## Live preview As you type an expression, the editor evaluates it against the current sample and shows you the result underneath. A broken expression shows as a failed *result*, not an error dialog — you're mid-keystroke, and it's expected to be invalid half the time. ## Filters Pipe a value through a filter to transform it. The template language's filters are all available — default, upper, lower, truncate, replace, split, join, length, round, format_number, format_date and more (full reference) — and automation adds the ones that were actually missing: Three details that save real debugging: - **Date maths is calendar-correct.** 31 January plus one month is 28 February, not 3 March. - **date_diff is fractional on purpose.** "0.9 days" stays 0.9 so a numeric condition reads it honestly; round it yourself if you want a whole number. - **re_extract returns empty, not an error, when nothing matches** — so |default("none", true) composes on top of it. Write the pattern as you would in a Matches pattern condition: one backslash (#(\d+)). ## Why there's no "Formatter" step Other tools make you add a node to uppercase a string or reformat a date. Here that belongs on the field itself: pipe it through a filter where you use it. Fewer nodes, and the transformation is visible next to the thing it affects. ## When to use Code instead Expressions are for reading and reshaping values. When you need real logic — a loop with state, a non-trivial algorithm, a library — use the Code node. If an expression is getting long enough that you have to read it twice, that's the signal. ## Set fields If the same expression appears in four places, put it in a **Set fields** node once and reference steps.set. afterwards. One place to fix when it's wrong, and the canvas documents itself. --- # Automation https://docs.onivos.com/help/automation/ # Automation Automation is the platform's wiring. A **workflow** is a graph you draw: something starts it, steps run in order, branches split the path. It can read and write your data objects, call third-party APIs, send email, ask an AI model, wait for a human to approve, and hand off to another workflow. If you've used n8n, Make or Zapier, the shape will be familiar. What's different is that it runs *inside* the platform — a record trigger doesn't poll an API for changes, it fires on the write. ## The pieces | Term | What it is | |---|---| | **Workflow** | One graph: a trigger plus the nodes it feeds. | | **Node** | One step — an action, a branch, a wait. | | **Trigger** | The single node that starts a workflow. A workflow has exactly one. | | **Run** | One execution, with a record of every node's input and output. | | **Connection** | Stored credentials for a third-party service, reused across workflows. | ## The four surfaces Open **Automation** in the sidebar: - **Workflows** — the list, and the fullscreen editor you build in. - **Connections** — the accounts you've connected. Connect once, use everywhere. - **Connectors** — the marketplace of ready-made integrations. - **Insights** — how much is running, what's failing, what it costs. ## Start here About 25 minutes end to end. Each guide stands alone if you already know the basics. draft vs published, and testing before you go live. 2. **Triggers** — every way a workflow can start, and which one to pick. 3. **The node catalog** — actions, AI steps, and control flow, including the condition builder. 4. **Expressions and templates** — how a step reads data from the steps before it. 5. **Connect an app** — OAuth, API keys, and the connector marketplace. 6. **Receive webhooks** — a public URL that starts a workflow, and how to secure it. 7. **Runs, errors and reliability** — retries, error branches, cancelling, and the settings that keep a busy workflow polite. ## Three things worth knowing up front **Editing never disturbs what's live.** A workflow has a published version that runs and a draft you edit. Your changes go live when you press Publish, not before. **A run happens once.** Delivery of a trigger event can be retried by the system, but a run walks its graph exactly once — no double-sent emails, no double-charged orders. That guarantee is enforced in the database, not by convention. **Conditions never quietly answer "no".** If a condition compares two things that can't be compared, the step *fails* instead of silently taking the false branch. You find out on the run, not three weeks later in a report. The workflow list has an AI builder: describe what you want in a sentence and it generates the graph, which you then edit like any other. It's the fastest way to get past a blank canvas. --- # The node catalog https://docs.onivos.com/help/automation/nodes # The node catalog Every step you can put on the canvas, grouped by what it's for. Triggers have their own guide — Triggers. ## Actions | Node | What it does | |---|---| | **Internal action** | Reaches into the rest of the platform: create a record, send an email, post to a conversation, update a contact, and so on. The form is built from the action you pick. | | **HTTP Request** | Call any external API — GET/POST/PUT/PATCH/DELETE, headers, body, query. Auth comes from a Connection, so no keys in the graph. | | **Webhook (outbound)** | Post JSON to a URL. The quick way to hit an incoming-webhook endpoint. | | **Respond to Webhook** | Sets the HTTP response for a synchronous webhook — status, headers, body. | | **Set fields** | Build named values for later steps to use. The tidy alternative to repeating the same long expression five times. | | **Date & Time** | Parse, format, add, subtract or diff dates, timezone-aware. | | **Read document** | Pull the text out of an uploaded document so later steps can work on it. | | **Execution Data** | Stamp business keys (an order number, a customer id) onto the run so you can find it later in run history. | | **Request approval** | Pause and ask a person. See waiting for people. | | **Sub-workflow** | Run another workflow and continue with its result. | | **Code** | Run your own JavaScript when nothing else fits. Billed as compute against your credits. | ## AI steps Each of these is a focused wrapper around a model — narrower than "write a prompt", and much more reliable in a graph because the output shape is fixed. | Node | What it does | |---|---| | **Classify (AI)** | Sort text into one of a set of categories you define. The one to reach for when a branch depends on judgement. | | **Extract (AI)** | Pull named fields out of free text into structured JSON. | | **Summarize (AI)** | Short, medium or long summary. | | **Translate (AI)** | Translate into a target language. | | **Write (AI)** | Generate text from instructions plus optional context. | | **LLM** | The general-purpose node: your own prompt, text or JSON output, your choice of model. | | **Ask Agent (AI)** | Send a message to one of your configured AI Agents and use its reply — so the workflow inherits the agent's knowledge and tools rather than re-explaining everything in a prompt. | Classify beats an LLM node with "reply with exactly one of these words" in the prompt. The specific nodes constrain the output for you, so a branch downstream can't be broken by a model that got chatty. see what a workflow costs. ## Control flow | Node | What it does | |---|---| | **If** | Two outputs: true and false. | | **Switch** | Many outputs. The first route whose conditions match wins. | | **Filter** | Continue only if the condition holds; otherwise this branch stops quietly. | | **Merge** | Bring branches back together. Runs when *any* branch reaches it. | | **Loop** / **Loop End** | Iterate a list, running the body per item. What's at Loop End is collected into the result. | | **List** | Sort, limit, aggregate, summarize, split out or rename the keys of a list — without writing code. | | **Wait** | Pause for a period, then continue. Long waits are fine — see below. | | **Wait for event** | Park until something specific happens. | | **Stop** | End the run here: succeed quietly, or fail with a message. | | **No-Op** | Does nothing. A placeholder while you wire a graph. | ## The condition builder If, Switch, Filter and the **Record matches condition** trigger all share one condition builder: rules, combined with AND/OR, groupable. Each rule is *left value · operator · right value*. Pick the scale (text, number, date, boolean, list) and you get the operators that make sense for it. **Text** — Equals · Does not equal · Contains · Does not contain · Starts with · Does not start with · Ends with · Does not end with (each also in an *ignore case* form) · Matches pattern (regex) **Number** — Equals · Does not equal · Greater than · Greater than or equal · Less than · Less than or equal **Date** — Equals · Does not equal · Is after · Is on or after · Is before · Is on or before · Is in the past · Is in the future · Is today · Anniversary is today · Is within the last N days · Is more than N days ago · Is within the next N days · Is more than N days from now **Boolean** — Is true · Is false **List** — Contains · Does not contain · Length equals / greater than / greater than or equal / less than / less than or equal **Any scale** — Is one of · Is not one of · Is empty · Is not empty If the two sides can't be meaningfully compared — a date against a word, an unknown operator — the step **fails**. It doesn't quietly take the false branch. This is deliberate. A silently-false condition is the single most common way an automation looks fine for months while doing nothing. A failure gets retried, routed to your error branch, and shows up in run history. (The **Record matches condition** trigger adds one documented exception: an *absent* value answers false rather than failing, because most records legitimately have no due date.) next N days* — are evaluated in your organization's timezone, and they match the date filters in expressions, so a condition and a date_add can never disagree. ## Waiting for people and events Automations that involve humans need to pause, sometimes for days. **Wait** pauses for a duration or until a moment. Long waits don't hold anything open — the run parks and is woken later, so a 30-day wait costs nothing while it waits. **Wait for event** parks until a specific thing happens, with an optional deadline so a run can't hang forever waiting for something that never comes. **Request approval** sends someone the decision and parks until they answer. Each decision link can be used **once** — a forwarded approval email can't be clicked twice into two different outcomes. ## Sub-workflow Call another workflow and continue with its result. Use it for logic you'd otherwise copy: an address normaliser, a "notify the right team" routine, a scoring step. The child gets its own run in history, so you can debug it independently, and the parent waits for the result. ## Code When nothing above fits, **Code** runs JavaScript. It receives the run's data, and whatever it returns becomes the node's output. It runs in a secure isolated runner, and the compute is billed to your credits — the cost is on the node in run history, so an expensive step is visible rather than mysterious. Reach for it last. Most of what people write code for is already an expression, a List node or a Set fields node — and those are visible on the canvas, where the next person can read them. ## Versioning Node types are versioned. When a node gains a new shape, existing workflows keep running on the version they were built with — a published workflow is never silently reshaped underneath you. New nodes you add use the current version. --- # Runs, errors and reliability https://docs.onivos.com/help/automation/runs-and-errors # Runs, errors and reliability A workflow that works on a good day isn't finished. This guide covers what happens when something fails, and the settings that keep a busy workflow from becoming somebody else's problem. ## Run history Every execution is a **run**. Open a workflow's run history and you get status, duration, what started it (manual, a trigger, an AI agent, a parent workflow) and what it cost. Open a run and you see the graph as it executed: which path it took, each node's input, output and logs, how long each took. Watching a live run, the canvas animates as nodes start and settle. ### Run statuses | Status | Meaning | |---|---| | **Queued** | Accepted, about to start. | | **Running** | Walking the graph now. | | **Waiting** | Parked on a Wait, a Wait for event, or an approval. | | **Retrying** | Failed, under budget, scheduled to try again. | | **Throttled** | Held back by a concurrency, ordering or rate setting. | | **Success** / **Failed** / **Canceled** | Finished. | ### Finding a specific run Use an **Execution Data** node to stamp business keys — an order number, a customer id — onto the run. Then "find the run for order 10432" is a search rather than an archaeological dig. ## A run happens exactly once Message delivery on any queue is at-least-once, so a trigger event can genuinely arrive twice. A run still walks its graph once: the execution is claimed in the database before anything happens, and each resume decision (an approval link, a resume URL) is burned as it's used. The practical guarantees: no double-sent email, no double-created record, no double-charged card, and an approval link that's been forwarded around can't be clicked into two different outcomes. ## Handle errors in the graph Every node has a red **error** output handle. Drag from it and a failure takes that path instead of ending the run. A node with an error edge counts as **handled**: the run continues down the error path, and the failure is available to those steps. A node without one fails the run (and it becomes a retry candidate). Use it for the failures you expect — an API that's occasionally down, a lookup that sometimes finds nothing — and leave the genuinely unexpected ones unhandled so they surface. ## Retries A failed run retries automatically if it's within its retry budget, with **exponential backoff** between attempts. The important part: **side effects before the failure are not repeated.** Nodes that already succeeded are replayed from their stored results, so a retry resumes at the failure rather than re-sending the email that already went out. Set the budget and the base delay in the workflow's run settings. ## An error workflow Point a workflow at another workflow to run when a run fails **finally** — retries exhausted, nothing handled it. The handler receives the failed run's id, the workflow name, the error and which node broke. One handler shared by everything important gets you a real alerting story in about five minutes: post to a channel, create a ticket, page someone. The obvious loops are prevented: a workflow can't be its own error handler, and an error handler failing doesn't cascade into another handler run. ## Cancelling Cancel any unfinished run from run history. A parked run stops immediately; a running one finishes the node in flight and then stops — it can't be resurrected afterwards by a late retry. ## Settings that keep a workflow polite Per-workflow, in run settings: | Setting | What it does | |---|---| | **Max concurrent runs** | Cap how many runs of this workflow are in flight at once. Extra runs park as *throttled* and drain as room appears. Protects your workers. | | **Dispatch rate limit** | Cap how many runs *start* per minute. Protects the API you're calling. | | **Process in order** | Make runs of this workflow queue up instead of overlapping. Two strictnesses: one lets a parked run yield its place, the other holds the line until every older run has finished. | | **Retry budget & backoff** | How many attempts, and how long between them. | | **Retention** | How long finished runs are kept. | | **Confidential** | See below. | - Your own database is the bottleneck → **max concurrent**. - Their API rate-limits you → **dispatch rate limit**. - Order matters (a ledger, a sequence of state changes) → **process in order**. They're independent; a busy workflow often wants two of them. ## Confidential runs Turn on **Confidential** and node payloads are kept only while the run is active, then scrubbed. Timings, cost and status are kept, so the run is still visible in history and in Insights — but the data that flowed through it is gone. Use it for workflows that handle personal or regulated data where a 30-day run history would itself be the problem. ## Undo on failure Some actions can declare how to undo themselves. When a run fails finally with no error branch to handle it, the undo steps are replayed in reverse — so a half-completed sequence doesn't leave a record behind that nothing will ever finish. A failure your graph *handles* means the run succeeded, so nothing is undone. That's the intent: you decided what to do about it. ## Retention Finished runs are purged on a schedule you control per workflow. Purging removes the detailed node data, not the fact that the run happened — the durable record of every completed run is kept far longer, so long-range reporting survives. ## Insights **Automation → Insights** aggregates across workflows: run volume, success and failure rates over time, which workflows are firing the most, which cost the most, and where runs are coming from. Use it as a weekly check: a workflow whose failure rate has been climbing since Tuesday is exactly what this view is for. --- # Triggers https://docs.onivos.com/help/automation/triggers # Triggers The trigger is the one node that starts a workflow. Picking the right one is most of the design work — get it right and the rest of the graph is short. | Trigger | Starts the workflow when… | |---|---| | **Manual trigger** | You press Run, or a test run fires. | | **Schedule** | A clock ticks — presets or cron. | | **Record matches condition** | A record starts (or stops) matching a rule you describe. | | **Internal event** | Something happens elsewhere in the platform. | | **Webhook** | An HTTP request hits a public URL. | | **Saved search matched** | A saved search picks up a new match. | | **Condition scan (scheduled)** | A periodic sweep finds matching records. | | **A connector's own trigger** | The third-party service says so. | ## Manual trigger Runs when you click Run, with sample data you define. Use it for a workflow you fire by hand, for the body of a sub-workflow, and while you're building anything else. ## Schedule Run on a clock. Pick a preset — **Immediately · Every N minutes/hours · Once · Daily · Weekdays · Weekly · Monthly · Specified dates · On demand** — or write raw cron for anything the presets don't cover. "Daily at 09:00" means 09:00 where your organization is, not on some server. Change the organization's timezone and existing schedules re-aim themselves. Daylight saving is handled — you don't get an hour of drift twice a year. ## Record matches condition **The default choice for "when a record looks like X".** Describe the rule — *Status is Overdue*, *Amount is greater than 1000*, *Due date is in the past* — and the workflow fires for each record that starts matching. It fires on the **transition**, not on the state. A record that already matches doesn't keep firing every time you touch it; it fires when it *enters* the set. And because entry and exit are tracked as a set, a record that leaves and comes back fires again — which is what you want for "went overdue, got paid, went overdue again". Choose what you fire on: | Setting | Fires when a record… | |---|---| | **Entered** | Starts matching. The common case. | | **Exited** | Stops matching — "no longer overdue", "left the pipeline". | | **Both** | Either, with the direction available to the graph. | ### Time-based rules work without a sweep Rules like *Due date is in the past* or *Anniversary is today* change answer with no edit anywhere. Those are handled by scheduling the exact moment each record's answer flips — so an invoice that comes due at midnight fires at midnight, not at the next sweep, and not only when somebody happens to edit the row. Wall-clock is your organization's timezone here too: a date-only value flips at your local midnight. ### What it's built on - Only fields the object really stores can be tested. To condition on "how many linked records", add a rollup and test that. - The rule is validated against the object's actual fields **when you publish**. A field that doesn't exist is a publish error, not a silent no-match. - A field with **no value** answers *false* (except for the "is empty" checks) — most records have no due date, and that shouldn't be a comparison error. - Turning the trigger on does **not** fire for the records that already match. History stays history. There's an opt-in if you genuinely want to sweep the existing set once. - The trigger's config panel shows live status: how many records currently match, how many timed transitions are pending, when the next one fires. ## Internal event Fire on a specific thing happening elsewhere in the platform: a record created or a field changed, a contact added to a segment, a conversation event, a marketing email opened or clicked, a feedback alert raised. Use **Internal event** when you care about the *event* ("a record was created"). Use **Record matches condition** when you care about the *state* ("a record is overdue"). Reaching for an event plus a chain of If nodes to re-derive state is the common way to build something that misses cases. You can narrow an event trigger to one object and add simple equality filters, so the workflow isn't woken by traffic it will only discard. ## Webhook Gives the workflow a public URL. Any service that can POST can start it. Full guide, including the security controls: Receive webhooks. ## Saved search matched Fires when a saved search picks up something new. Good for "tell me when anything anywhere mentions X" without owning the plumbing. ## Condition scan (scheduled) A periodic sweep that queries an object (or Contacts) and starts one run per matching record. The scan is kept for the two jobs it still does better, and the config panel tells you so: - **A deliberate repeating batch** — "every Monday, act on every open ticket", where you want it to fire again each sweep rather than once on entry. - **Contacts**, where a **Segment** plus its member-added event is a better fit still. For everything else the reactive trigger is more accurate and much cheaper: it costs nothing per sweep because there are no sweeps. records won't run away with your account. Two firing modes: **once** (fire a record the first time it matches, remembered durably) or **every scan** (re-fire persistent matches each sweep). ## Connector triggers An installed connector can bring its own triggers — "new row in the sheet", "issue opened", "payment succeeded". Depending on the service these work by subscribing to its webhooks (the service pushes to us) or by polling on an interval with a cursor so you never see the same item twice. See Connect an app. ## Choosing, quickly | You want… | Use | |---|---| | "When a record becomes X" | **Record matches condition** | | "When a record is created / a field changes" | **Internal event** | | "Every morning at 8" | **Schedule** | | "When another system tells us" | **Webhook** or a **connector trigger** | | "Every Monday, for everything still open" | **Condition scan**, every-scan mode | | "When I press the button" | **Manual**, or a Button field on the object | --- # Receive webhooks https://docs.onivos.com/help/automation/webhooks # Receive webhooks The **Webhook** trigger gives a workflow a public URL. Anything that can send an HTTP POST can start it — a payment provider, a form tool, a monitoring service, a script of your own. ## Get the URL Add a **Webhook** trigger, publish the workflow, and the trigger's config panel shows its URL. Paste that into the other service. Publishing is what registers the URL, so a webhook on an unpublished draft won't receive anything. ## Synchronous or asynchronous | Mode | Behaviour | |---|---| | **Async** (default) | Onivos accepts the request immediately and runs the workflow in the background. | | **Sync** | The request waits for the workflow, and the reply is whatever your **Respond to Webhook** node produces. | Use **async** for notifications — "an order was paid", "a form was submitted". The sender doesn't care what you do with it and shouldn't be kept waiting. Use **sync** when the caller needs an answer: a validation endpoint, a lookup, a service that expects a body back. Add a **Respond to Webhook** node and set the status, headers and body there. Sync runs have a time limit, so keep the graph short — anything slow should answer immediately and do the work asynchronously. ## Reading the payload The request body, headers and query arrive under trigger. After the first successful run the field picker knows the payload's shape, so you can build the rest of the graph by clicking rather than guessing. You can also generate a sample from the detected shape to test against without asking the sender to fire again. ## Duplicate deliveries Providers retry. If a service sends a delivery id — a X-GitHub-Delivery, an Idempotency-Key, a Stripe event id, and the common variants — Onivos keys the run on it, so a provider retrying a request it never saw the response to will **not** run your workflow twice. That's what stops a retried "payment succeeded" from shipping the order twice. A sender that includes no such header gives us nothing to tell a retry apart from a genuine second event, and inventing one would drop real traffic. If your sender can't provide an id, make the workflow itself idempotent — check whether the record already exists before creating it. ## Securing the endpoint The URL is unguessable, but "unguessable" isn't a security control. Three optional protections sit on the workflow's settings, applied **before** a run is created — a rejected request costs you nothing: ### API keys Require an x-api-key header. You can hold several keys at once, which is what makes rotation painless: add the new key, move the sender over, delete the old one — no window where the endpoint is down. Keys are encrypted, and reading the settings back shows only a short hint, never the key. Save it somewhere when you create it. ### IP allowlist Restrict to a list of IPv4 ranges in CIDR notation. Most serious providers publish theirs. ### Payload schema Give the endpoint a JSON Schema and requests that don't match are rejected with a 400. This is the one people skip and shouldn't: it turns "the workflow failed weirdly at step 6" into "the sender sent the wrong thing, here at the door". The body is **validated, not rewritten** — nothing is coerced, defaulted or stripped. What your graph receives is exactly what was sent. A schema that doesn't compile is refused when you save it, so you can't accidentally configure a check that silently passes everything. API key plus schema is a good default. Add the IP allowlist when the sender publishes stable ranges. All three are opt-in and independent. ## Sending webhooks out The other direction is the **Webhook (outbound)** node — a JSON POST to a URL you name, with authentication from a Connection. For anything more than a fire-and-forget POST, use **HTTP Request** instead: full verb, header and body control, and the response is available to later steps. ## Testing 1. Publish and activate the workflow. 2. Fire a request from the sending service, or with curl. 3. Open **Run history** — the run is there whether it succeeded or failed, with the exact body received. If nothing arrives at all, check in this order: the workflow is **published**, it is **active**, and the request isn't being turned away by one of the three security controls above (those rejections answer 401, 403 or 400 to the sender). --- # Create your first object https://docs.onivos.com/help/data/create-an-object # Create your first object An **object** is one kind of thing you track. This guide creates one, adds fields, enters records, and explains the two pieces of behaviour that surprise people first: the primary field and manual row order. ## Create the object 1. Open **Data** in the sidebar. 2. Click **New object** at the top of the object rail on the left. (If you have no objects yet, the empty state has its own **New object** button.) 3. Give it a **name** — plural reads best in the rail: *Projects*, *Equipment*, *Applicants*. That's it: the object exists, with a small set of system fields already on it (created and updated timestamps, who created the record) and one empty record waiting. Describing the table is usually faster than clicking. Press ⌘ K and say what you're tracking — the copilot creates the object with a sensible field set, and you adjust from there. ## Add fields Click the **+** at the right end of the column headers to add a field. A field needs three things: - a **name** — what people read in the header, - a **type** — see Field types, - and optionally a **description**, which shows as help text. Two settings on the field dialog matter more than they look: | Setting | What it does | |---|---| | **Required** | The record can't be saved with this field empty. Defaults fill in *before* the check, so a required field with a default never blocks a save. | | **Unique** | No two records may share the value. A clash is refused with a message naming the field. | Reorder columns by dragging their headers, resize by dragging the edge, and hide the ones you don't need right now from **Hide fields** in the toolbar — hiding is per view, not per object, so everyone else keeps theirs. ## The primary field One field **speaks for the record**. It's the title on a Board card, the label on a link chip in another object, the name in search results and in the copilot's answers. Onivos picks it automatically: the first field that can actually name something — so not a computed field, not a link, not a file. In practice that's your first text field, which is why it pays to make the first field you add the *name* of the thing: Project name, Asset tag, Full name. If link chips or card titles show a long number instead of a name, the object has no field that can name a record. Add a text field near the front of the object and the labels fix themselves. ## Enter records The grid works the way you expect a spreadsheet to: - **Type to edit.** Click a cell and start typing, or press Enter to open the editor. Esc cancels. - **Ranges.** Shift-click or shift-arrow to select a block; ⌘ C / ⌘ V copy and paste it — including in and out of a real spreadsheet. - **Fill.** Drag the small handle at the bottom-right of a selection to fill the value down or across. - **The ghost row.** The empty row at the bottom is a new record: type in it and it saves. - **Expand a record.** The expand icon on the row opens the record drawer — every field on a form, plus its comments and change history. Everything saves as you go. If a save fails, the cell rolls back to its previous value and tells you why. ## Row order Records carry a **manual order** you can drag, independently of any sort. That order is the object's own, so it's the same for everyone. The moment you sort a view by a column, you're looking at that sort instead — the manual order is still there underneath, and clearing the sort brings it back. ## Delete, and undelete Deleting a record moves it to the object's **trash**, where it stays for 30 days and can be restored with its original identity — links that pointed at it are restored too. Deleting a whole object works the same way: it disappears from the rail, sits in trash for 30 days, and you can immediately create a new object with the same name in the meantime. After the grace period, a purge is permanent — and it also deletes the files attached to those records. See Import and export for the trash panel. Each object is a real table, so your plan sets how many you can have. Restoring an object from trash counts too — if you're at the ceiling, the restore is refused until you delete something else. Plan limits are on the Plans & billing page. ## Next - Field types — pick the right type the first time. - Link records, lookups & rollups — connect this object to another. --- # Field types https://docs.onivos.com/help/data/field-types # Field types Every field has a type. The type decides how a cell is edited, how it's formatted, what you can filter and sort on, and what other fields can compute from it. This is the full reference. ## Text and numbers | Type | Notes | |---|---| | **Text** | A single line. The most common choice for a primary field. | | **Long text** | Multi-line. Turn on **rich text** to get formatting (bold, lists, links) — see below. | | **Number** | Plain numeric. Set the number of decimals in the field's format options. | | **Currency** | A number rendered as money. Uses your workspace currency unless the field overrides it with its own currency code. | | **Percent** | A number rendered with a %. | | **Rating** | A star rating — edited by clicking the stars. | | **Duration** | Stored as seconds, shown as h:mm:ss (the hours drop when zero). You can type either form: 90, 1:30, or 1:02:03. | | **Checkbox** | True or false. | | **Barcode** | Text, treated as a scannable code. | ### Rich text Switching **Long text** to rich text is not a change of type — the field keeps its data and gains formatting. Onivos rewrites the existing values in place: turning it **on** wraps each cell's text into paragraphs; turning it **off** strips the markup back down to the words. Nothing is lost either way, but the rewrite touches every row, so the grid reloads when you save. Rich cells aren't edited inline in the grid — click to expand the cell and the full editor opens. ## Choices and dates | Type | Notes | |---|---| | **Single select** | One option from a list you define. Each option carries a colour, used by Board columns and row colouring. | | **Multi select** | Any number of options from the same kind of list. | | **Date** | A calendar day, no time. If something writes a full timestamp into it (an import, an automation), the day part is kept. | | **Date & time** | An instant. Displayed in your workspace's time zone, so what you type round-trips to the same wall-clock time for everyone. | An option's **label** can be renamed freely. Its underlying value is fixed once records use it, so renaming a label never orphans the records that hold it. ## Contact details and structured values | Type | Notes | |---|---| | **Email** | Text, validated and rendered as a mail link. | | **Phone** | Text, rendered as a call link. | | **URL** | Text, rendered as a link. | | **JSON** | A structured value, shown read-only in the grid and edited in the expanded cell. | | **Attachment** | Files on the record — see below. | ### Attachments An attachment cell holds a list of files. Upload into the cell, or pick from your media library. The rule worth knowing: **a file uploaded into a cell belongs to that one cell.** When you copy, fill or paste an attachment cell, Onivos makes a *copy* of the file for the destination rather than sharing one file between two records. That's what makes fill and paste work on attachments at all — and it means deleting one record never pulls the file out from under another. Files you pick from the media library are shared assets, so they're referenced, not copied. You can restrict what a cell accepts (images only, say) in the field's options. ## People | Type | Notes | |---|---| | **User** | A member of your organization. This is the field Interfaces use to know who's looking. | | **Contact** | A record from Contacts (CRM). This is the field a customer portal uses to show a signed-in contact their own rows. | Both store a reference, not a name, so renaming a person updates everywhere at once. If the person or contact has since been deleted, the cell shows a placeholder label rather than a bare identifier. ## Links and computed fields These earn their own guides: | Type | What it does | Guide | |---|---|---| | **Link to record** | Points at records in another object (one, or many). | Link records | | **Lookup** | Shows a field from the linked records. | Link records | | **Rollup** | Aggregates a field across the linked records — sum, average, min, max, count. | Link records | | **Count** | A rollup preset: how many linked records there are. | Link records | | **Formula** | A value computed from the record's other fields, in JavaScript. | Formulas and AI fields | | **AI** | A value the AI writes — a summary, a classification, an extracted detail. | Formulas and AI fields | | **AI image** | An image the AI generates from a prompt over the record. | Formulas and AI fields | ## Automatic fields | Type | Notes | |---|---| | **Auto number** | A number assigned on insert and never reused. Adding the field to an object that already has records numbers them oldest-first; the next new record continues from the highest. | | **Button** | Not a value — a button in the cell that runs an automation for that record. Set its label and pick the automation in the field's options. | ## Defaults and validation Any field can carry a **default value**, filled in when a record is created without one. Defaults are applied *before* the required check, so pairing "required" with a default is safe. Text and number fields also take **validation rules**: | Rule | Applies to | Effect | |---|---|---| | **Pattern** | Text-ish fields | The value must match the pattern. | | **Min / Max** | Numeric fields | The value must fall in range. | A violation is refused with a message naming the field, on every write path — typing in the grid, an import, a form submission, an automation, the API. ## Changing a field's type Two paths, depending on how risky the change is. **Safe widenings apply immediately.** Anything → Text or Long text can't lose information, so you just change the type and save. **Riskier casts go through Convert.** Open the field's menu and choose **Convert type**. You pick the target type and get a **preview** first: how many values convert cleanly and how many would be dropped. Nothing changes until you confirm. If you'd rather not risk the original, the field menu also offers **Copy values** into a new field of the target type. Check the result, then delete whichever one you don't want. ## What you can filter and sort on Sortability follows storage, not type: everything that holds a real value in the record sorts. The two that don't are the **many** side of a link and the mirrored "has many" field — those live in the relationship rather than in the row. Filter operators are grouped by type: | Group | Operators | |---|---| | Text, email, phone, URL, barcode | contains · is · is not · is empty · is not empty | | Number, currency, percent, rating, duration, rollup | is · is not · > · ≥ · · ≥ · < · ≤ · is empty · is not empty | | Single select | is · is not · is any of · is empty · is not empty | | Checkbox | is | | Link to record | is linked to · is not linked to (plus empty / not empty on a single link) | ## Data quality **Data → Data quality** rolls up every object's fields and shows how filled each one is, plus where it's used — which views, formulas and rollups depend on it. It's the fastest way to find the field everyone stopped filling in, and the fastest way to check what a field breaks before you delete it. --- # Collect data with forms https://docs.onivos.com/help/data/forms # Collect data with forms A form is a public page that writes straight into one of your objects — an intake request, a job application, an event signup, a supplier onboarding. No login, no account: a link you share, and records that land in your grid. Forms live at **Data → Forms**, not inside an object's view list. They're their own thing, with their own editor, so a form can be redesigned without touching how your team works in the grid. ## Two ways to start **From an existing object.** You already track *Job applications* and now you want people to apply. Create a form on that object, drag the fields you want onto it, publish. **From scratch.** You don't have the object yet. Create a blank form, add the questions you want to ask, and Onivos builds the object behind it as you go — correctly set up, so it shows up in the grid like any other object. ## Build the form The editor is a canvas with an inspector on the right. - **Add elements.** Each element **binds to a field** on the object. That indirection is what lets a form ask "What's your work email?" while the field is plainly named Email — the question wording and the field name are separate. - **Per-element settings** (in the inspector): label, helper text, whether it's required, its width, a default value, a character limit, a validation pattern, and a visibility rule. - **Style it.** Cover image, logo, theme, an intro description, the submit button's label, and the message people see after they submit. ## Draft, published, closed A form has a status, and the two versions are kept apart on purpose. | Status | What it means | |---|---| | **Draft** | Being edited. Nothing public. | | **Published** | A snapshot of the form is live at its public link. | | **Closed** | The link stops accepting submissions. | Editing a published form edits the **draft**. The live page keeps serving the last published snapshot until you press **Publish** again — so you can rework a form in the middle of a campaign without anyone seeing a half-finished version. The editor tells you when the draft has changes that aren't live yet. ## Share it Publishing gives you a public link. Anyone with the link can submit; nobody needs an Onivos account. ## What happens on submit 1. The answers are checked against the **published** form: required questions, character limits, patterns, and which elements were actually visible. 2. Defaults fill in for anything the form doesn't ask about. 3. A record is created through the **normal write path** — so formulas compute, AI fields queue up, and your automations fire. Which means the useful pattern is: form → record → automation. A new application creates the record, an automation assigns a reviewer, notifies the channel, and sends the acknowledgement email. ## Abuse protection Public forms carry a hidden trap field that bots fill in and people never see, plus a rate limit per form. Both are on by default; there's nothing to configure. Attachment fields aren't available on public forms yet. If you need documents from a submitter, collect an email address and follow up, or point them at a shared upload location. ## Good to know - **A form can't reach a field it wasn't given.** It writes only the fields its elements bind to. - **Renaming a field doesn't break a live form.** The element points at the field, not at its name. - **Deleting a field a live form asks about does.** Check the form before removing a field — Data quality shows you what depends on it. ## Next - Permissions — who on your team sees what arrives. - Views — a Board view over incoming submissions makes a good triage queue. --- # Formulas and AI fields https://docs.onivos.com/help/data/formulas-and-ai-fields # Formulas and AI fields Three field types compute their own value from the rest of the record: **Formula** writes the logic yourself, **AI** asks a model, and **AI image** generates a picture. All three are read-only cells — you change them by changing their inputs. ## Formula fields A formula is a small piece of **JavaScript** that returns a value. The record's fields arrive as input, keyed by field key: Anything JavaScript can express is fair game: ### Dependencies Each formula declares **what it depends on** — the fields that should trigger a recompute. Set them in the field's options. - Declare dependencies and the formula recomputes when one of them changes. This is what you want almost always: it's precise and it's cheap. - Declare none and it recomputes on **every** write to the record. A formula may depend on a lookup or a rollup key, which is what makes the chain in Link records work: line amount → order total → balance. When you add a formula field — or edit its code — every existing record is backfilled, so you never have to touch rows to wake them up. ### When a formula fails A broken formula never blocks a save. The record writes, the cell comes back empty, and the field's error is shown on the cell. Fix the code and recompute. ### Formulas cost credits Formula code runs in a secure runner, and that compute is billed to your **AI credits** like any other compute on the platform. One evaluation per record write covers *all* the formula fields on that record, and a bulk edit is charged as one batch — the cost is per write, not per field. If you run out of credits, Onivos **skips** the compute rather than refusing the save. Your records still write; formula cells keep their last value; the app tells you the compute was skipped. Top up, then open the field's menu and choose **Recompute** to repair the column. The practical consequence: treat a formula cell as possibly stale if you've been near your credit limit. Anything that must be exact at that moment should be recomputed first. ## AI fields An **AI** field asks a model to fill in a cell — a summary of a long note, a category for an incoming request, a detail extracted from unstructured text. | Setting | What it does | |---|---| | **Prompt** | The instruction. Interpolate the record's fields with {{field_key}} — e.g. Summarise this ticket in one sentence: {{description}} . | | **Output** | **Text** for a sentence, **Select** to force one of a list of options (the reliable way to classify), **JSON** for a structured object. | | **Depends on** | The fields that should trigger a regenerate. | | **Auto** | Off by default — see below. | | **Model** | Which model answers. | ### Three behaviours that differ from formulas - **They're asynchronous.** A write doesn't wait on the model. The cell shows **pending** and fills in when the answer arrives, so saving a record is never slow because it has an AI field on it. - **They're manual by default.** Nothing generates until you ask it to. Turn on **Auto** per field if you want it to regenerate whenever its dependencies change. A bulk "generate all" shows you the estimated cost and asks you to confirm before it spends anything. - **The output is structured.** Choosing **Select** constrains the answer to your options — that's the difference between a classifier you can filter and group on, and free text that's *nearly* one of five words. The highest-value AI fields are the boring ones: priority, sentiment, category, "does this mention a refund". Pair **Select** output with a short prompt and you get a column the rest of the platform can automate on. ### Budget AI fields consume credits per generation, and there's a monthly ceiling for them. When the ceiling is reached, generation stops with a visible error on the cell — never a silent stall you have to go looking for. ## AI images An **AI image** field generates a picture from a prompt over the record — a product shot from a description, a header image from a title. It behaves like an AI field (async, manual by default, billed per generation) and the result lands in the cell as a real file you can download or reuse. ## Choosing between them | You want… | Use | |---|---| | Arithmetic, dates, string assembly, conditionals | **Formula** | | An aggregate over linked records | **Rollup** | | A value copied from a linked record | **Lookup** | | Judgement over unstructured text | **AI** | | A generated image | **AI image** | Reach for a formula before an AI field whenever the answer is deterministic — it's faster, cheaper and it can't be wrong. --- # Import, export, history and trash https://docs.onivos.com/help/data/import-export # Import, export, history and trash Getting data in, getting it back out, and undoing what went wrong. ## Import a CSV Open the object, then **Import** in the toolbar. 1. **Upload the file.** Onivos reads the header row and shows you a preview. 2. **Map the columns.** Each CSV column is matched to a field — obvious matches are pre-selected. Leave a column unmapped to skip it. 3. **Optionally pick a dedupe field.** A column like Email or SKU: rows whose value already exists **update** the matching record instead of creating a second one. Without it every row is a new record. 4. **Run it.** The import runs in the background — close the panel and carry on. ### What you get back When it finishes you get a per-row report: how many records were created, how many updated, and every row that failed with the reason. Fix those rows in the source file and re-import just them — the dedupe field makes that safe to repeat. - Up to **5,000 rows** per import. Split a bigger file and run it more than once. - Imported rows go through the **normal write path**, so defaults fill in, required and validation rules apply, formulas compute, and automations fire exactly as if someone had typed the rows in. - Dates: a full timestamp in a **Date** column keeps its day part, so exports from other tools import cleanly. An import of 5,000 rows triggers whatever is watching that object. If you don't want that, pause the automation before you import and re-enable it after. ## Export **Export** in the toolbar downloads the current object as CSV. What you get is what you're looking at: the export honours the active view's filters and the fields you can see. Large objects stream out in batches rather than being assembled in one go, so an export of a big table starts downloading rather than timing out. Exports also respect permissions — you can never export a field you can't read. ## Change history Every field change is recorded. Expand a record and open its **History** to see what changed, from what to what, by whom, and when — including changes made by imports, automations and the API, not just people typing. History is kept for **90 days**. ## Trash Deleting is recoverable. **Trash** in the toolbar lists what's been deleted from this object. | What you deleted | What happens | |---|---| | **A record** | Stashed with its identity intact. Restoring brings back the same record, so links that pointed at it are whole again. | | **A whole object** | The table is set aside, name and all. You can create a new object with the same name immediately, and restore the old one later without a collision. | Both are held for **30 days**, then purged permanently. When a record is purged, the files uploaded into its attachment cells go too — those files belong to that cell. Files you picked from your media library are shared assets and are never deleted by a purge. ## Comments Every record has a comment thread — expand the record and it's beside the fields. Mention a teammate with @ and they're notified. Comments are part of the record's context for the AI copilot too, so "what's the latest on this order" reads them. ## Next - Collect data with forms — for data that arrives from outside your team. - Permissions — before you invite more people in. --- # Custom Data Objects https://docs.onivos.com/help/data/ # Custom Data Objects Custom Data Objects is where your own data lives. You define the shape — an **object** for each kind of thing you track (Projects, Assets, Invoices, Rooms) — and Onivos gives you a fast spreadsheet-style workspace over it, plus the relations, computed fields, views and permissions a real database needs. Everything else in the platform can read it: automations trigger on records, interfaces build apps over them, websites render them as pages, and the AI copilot can query and edit them in plain language. ## The vocabulary | Term | What it is | |---|---| | **Object** | One kind of thing — a table. "Projects", "Equipment", "Applicants". | | **Record** | One row: a single project, one piece of equipment. | | **Field** | One column, with a type (text, date, currency, link to record…). | | **View** | A saved way of looking at the records — Table, Board, Calendar, Gantt, List or Gallery — with its own filters, sort and grouping. | | **Primary field** | The field that speaks for a record. It's what shows on link chips, card titles and search results. | ## Your data and the platform's data Open **Data** in the sidebar and you'll see two kinds of object in the rail: - **Custom objects** — the ones you create. Full control: add, rename, retype and delete fields; delete the whole object. - **System objects** — tables the product pillars own (Contacts, Orders, Conversations and friends). You get the same grid, views, filters and export over them, and you can **add your own custom fields**, but the pillar's own columns keep their shape. That's the point of one platform: a custom "Site visit" object can link straight to a real Contact, and a rollup on that Contact can count its visits. ## Start here Work through these in order — about 20 minutes end to end. the grid, and the primary field. 2. **Field types** — every type, plus defaults, validation, and how to change a field's type safely. 3. **Link records, lookups & rollups** — turn separate tables into a connected model. 4. **Formulas and AI fields** — computed columns, including ones the AI fills in. 5. **Views, filters and grouping** — six view modes and the controls that shape them. 6. **Import and export** — bring a spreadsheet in, get your data out, and recover from mistakes. 7. **Collect data with forms** — a public form that writes straight into an object. 8. **Permissions** — who can see and edit which objects, fields and rows. ## What it's good at - **Scale.** The grid is built for large tables — it loads and paints only what's on screen, so scrolling a ten-thousand-record object stays smooth. Paging, sorting and filtering happen server-side, so a total is always the real total. - **Computed chains.** A line amount (formula) → an order total (rollup) → a balance (formula over rollups) recalculates itself all the way up, in both directions, whichever end you edit. - **Recovery.** Field-level change history and a 30-day trash for both records and whole objects. Press ⌘ K and describe the table you want — "an object for tracking equipment with a status, an owner and a next service date". The copilot creates the object and its fields, and you refine from there. --- # Link records, lookups and rollups https://docs.onivos.com/help/data/link-records # Link records, lookups and rollups A spreadsheet keeps everything in one flat sheet and repeats itself. A database splits it up and connects the pieces. Three field types do the connecting: **Link to record** makes the connection, **Lookup** shows a value across it, and **Rollup** aggregates across it. The worked example below builds the classic chain: *Orders* and *Order lines*, where each line computes its own amount, and the order totals them. ## Link to record Add a field of type **Link to record** and pick the object it points at. One decision matters: | Kind | Meaning | |---|---| | **One** | Each record links to at most one record in the other object. An order line belongs to exactly one order. | | **Many** | Each record links to any number. A project links to several tags. | Pick **one** when the thing really does have a single parent. It's not just stricter — it's what makes the parent's rollups possible, and it stops a child from hanging off two parents at once. Cells then get a record picker: search the target object by its primary field, pick existing records, or create a new one inline without leaving the row. Linked records show as chips carrying the target's primary field. A cell with hundreds of links shows the first twenty chips and a true count. Expand the record to page through the rest — the count is always the real one, not "20+". ### The reverse field When you create a **one** link, tick **Add a field to the other object** (or set its inverse label). That gives the parent a mirrored **has many** field: an Order gets an *Order lines* field listing the lines that point at it. The mirror is a real, live view of the relationship — not a second copy of it. Edit either side and both update. Two behaviours to know when you edit the *parent's* mirrored field: - **Adding a child re-parents it.** A child has exactly one parent, so dragging a line into another order moves it there. - **Removing a child unlinks it — it never deletes it.** The line survives with no order. Deleting is always your explicit call. (If the child's own link field is *required*, the unlink is refused instead of leaving an invalid record behind.) ## Lookup A **Lookup** field shows a field from the linked records — no typing, no drift. On *Order lines*, add a Lookup: - **Through** → the Order link field, - **Field** → Customer on the Order. Every line now shows its order's customer, and it follows the order if the customer changes. A lookup keeps the **format** of the field it borrows. A looked-up price renders as money, not as a bare number, because the currency setting travels with it. ## Rollup A **Rollup** aggregates a field across the records on the other end of a link. Add it on the side that has *many* — the Order, not the line. | Setting | Example | |---|---| | **Through** | The Order lines field | | **Field** | Amount on the line | | **Function** | sum · count · avg · min · max | **Count** in the field-type list is the same field with the function preset to count — use it when you only want "how many". ### Conditions A rollup can be restricted to some of the linked records. Add up to ten conditions — "count tickets where **Status is not** Done", "sum lines where **Cancelled is** unchecked" — using *is · is not · > · ≥ · < · ≤ · contains · is empty · is not empty*. Conditions read the target's own stored fields. A change to a field a condition tests refreshes the rollup, so flipping a ticket to Done drops it out of the count straight away. sum, avg, min and max need numbers. A value that isn't numeric contributes nothing rather than breaking the field, so a rollup that comes back empty usually means it's pointed at a text field. ## The chain, end to end Put together, the example becomes: 1. **Order line → Amount** — a formula: quantity × unit price. 2. **Order → Total** — a rollup: sum of Amount through Order lines. 3. **Order → Balance** — a formula over the rollups: Total − Paid. Edit a quantity on any line and all three recalculate — the line's amount on save, then the order's total, then the balance. It works from either end: deleting a line updates the total too, because the order is told the contributor left. ## Good to know - **Computed fields are never typed into.** Lookup, rollup, formula and AI cells are read-only in the grid; you change them by changing their inputs. - **A field that can no longer compute clears itself.** If you retype or delete a field a lookup reads, the dependent cells empty out rather than keeping a stale value that still looks derived. - **Deleting either side of a link cleans up the other.** Remove a link field and the mirrored field on the other object goes with it. - **Bulk edits propagate.** Filling five hundred lines at once refreshes every parent, same as one edit at a time. ## Next - Formulas and AI fields — the computed fields you write yourself. - Views, filters and grouping — including the is linked to filter. --- # Permissions https://docs.onivos.com/help/data/permissions # Permissions By default every member of your organization can read and edit every object. That is the right setting for a small team and the wrong one the moment you have contractors, a sales team that shouldn't see salaries, or a support agent who should only work their own tickets. Permissions in Custom Data Objects work on three levels, narrowing as you go: **object → field → row**. ## Who's exempt Organization **owners and admins** always have full access. Everything below applies to everyone else. So there is always someone who can fix a rule that locked out the wrong people. ## Object level Open an object's **Permissions** and grant a level per role, or per person for an exception. | Level | Can | |---|---| | **None** | Not see the object at all. It's absent from the rail. | | **Read** | See records; change nothing. | | **Edit** | Create, edit and delete records. | | **Manage** | Everything, plus change the object's fields and settings. | Grant to a **role** first and use per-person grants only for genuine exceptions — role grants are what stays correct as people join and leave. ## Field level Inside an object you can restrict individual fields — hide Salary from everyone but HR, or make Approved by readable but not writable for most people. A field restriction holds everywhere, not just in the grid: - The column isn't shown, and its value isn't in the record's data. - **Filtering or sorting by a field you can't read is refused**, so a hidden field can't be used to infer its own values by narrowing a list. - It's excluded from exports and from what the API returns. ## Row level: own records A grant can be scoped to **own records only** — a person sees just the records they created. This is how you give a whole team of contractors access to one object without letting them read each other's work. "Own records" means *created by you*, which requires the object to record who created each record. Your **custom objects** always do. Some **system objects** — pillar tables like Contacts, Orders and Conversations — predate that column, and on those the own-record scope resolves to *nothing* rather than guessing. If you scope a grant to own records on such an object and the person sees an empty grid, that's why: use a filtered view plus a read grant instead. ## Views and permissions are different things They're often confused, so: - A **view's access setting** — collaborative, personal, locked — controls who can change *the view's own configuration*. - **Permissions** control which records and fields a person may read or write. A view never widens access. Share a locked view with someone who has no grant on the object and they see nothing at all. ## Publishing an object to the outside world Some surfaces show an object's records to people who hold no grants whatsoever — most notably a **website page driven by a data source**. Because there's no member to check, a partial permission can't be projected onto an anonymous audience. So Onivos requires the object to be **unrestricted** before you can wire it to a public surface: no field restrictions, no own-record scope. If the connection is refused, the fix is to publish a *copy* of the object holding only the fields meant to be public, kept in sync by an automation — never to loosen the grants on the real one. ## A worked setup A support team with contractors: | Who | Object grant | Field rules | Scope | |---|---|---|---| | Support lead (role) | Manage | — | All records | | Agent (role) | Edit | Internal cost hidden | All records | | Contractor (person) | Edit | Internal cost, Customer email hidden | Own records | | Finance (role) | Read | — | All records | Contractors work their own tickets and can't see costs; finance can read everything and change nothing; the lead runs the object. ## Good to know - **Changes take effect within about a minute.** Grants are cached briefly for speed, so a revoke may take a moment to reach every open browser tab. - **Permissions apply to every path in.** The grid, views, exports, forms, automations acting on a person's behalf, the copilot, and the API all read the same rules — there's no back door where a restricted field shows up. - **Restrictions never delete data.** Removing a grant hides records; it doesn't touch them. ## Next - Invite your team — roles at the organization level. - Views, filters and grouping — shaping what people see once they're in. --- # Views, filters and grouping https://docs.onivos.com/help/data/views # Views, filters and grouping A **view** is a saved way of looking at an object's records. Same data, six shapes, each with its own filters, sort, grouping and colour rules. Switching a view never changes the records — only what you see and in what order. ## The six modes Pick a mode from the view switcher at the left of the toolbar. | Mode | Best for | Needs | |---|---|---| | **Table** | The default. Editing, bulk work, anything dense. | — | | **Board** | A pipeline. Cards in columns; drag a card to change its value. | A field to stack by (single select works best) | | **Calendar** | Anything with a date. Drag a card to a different day to move it. | A date field | | **Gantt** | Schedules and timelines. Bars from a start to an end. | A start date (an end date is optional — without one you get a milestone) | | **List** | Hierarchies: parents with their children nested underneath. | Levels, set in the levels wizard | | **Gallery** | Anything visual — products, people, properties. | Nothing; it picks an image field for you | The toolbar is **composed by the mode**: a control that doesn't apply to the mode you're in isn't greyed out, it's simply absent. That's why the Board toolbar has "Stack cards by a field" where Table has "Group records". ## Filters Click the **filter** chip. Each condition is *field · operator · value*, and they combine into a group you can nest. The operators available depend on the field's type — the full table is in Field types. Two worth calling out: - **is any of** on a single select — one condition instead of four. - **is linked to / is not linked to** on a link field — "projects linked to this client", without a lookup. Filtering happens on the server, so a filtered view over a large object stays fast and the record count you see is the real one. ## Sort and manual order Sort by clicking a column header, or from the column menu. Sorting is server-side too, which means it sorts *all* the records — not just the ones currently loaded. Clear the sort and you're back to the object's manual row order, which you can drag. ## Grouping The **group** chip buckets records by a field's value, with a header row and a count per bucket. On a Board it's the same control under a different name — stacking cards into columns. Group by anything you like: Onivos *suggests* the fields that group well (selects, checkboxes, dates, links) but doesn't forbid the rest. Just be aware that grouping by a free-text field usually gives you one group per record. Grouping by a field that holds a reference — a user, a contact, a linked record — groups by the person or record's **name**, not by an identifier. ## Colour The **colour** chip paints a stripe on each row or card. Two ways: - **By a select field** — each option's own colour. - **By conditions** — a small list of rules, first match wins. "Red when *Due date* is before today", "amber when *Status is* Blocked". Colour is display-only and evaluated as rows render, so it never costs you a round-trip. ## Show, hide and resize fields On Table and Gallery, the **fields** chip hides columns you don't need. Hiding is per view — your teammates keep theirs. Column widths and order are yours to drag. On Table, the **display** chip sets row height (Short, Medium, Tall, Extra tall) and whether long headers wrap. ## Search The search box filters the current object by keyword. If the object has fields worth reading as language — descriptions, notes, long text — the toggle beside it turns on **semantic search**: results by meaning rather than by exact words, so "can't log in" finds "unable to sign in". ## Saved views Everything above can be saved as a named view. Views live in the view list at the top of the grid, and each carries its own filters, sort, grouping, colour, hidden fields and mode. Each view has one access setting: | Setting | Who sees it | Who can change it | |---|---|---| | **Collaborative** (default) | Everyone | Everyone who can see it | | **Personal** | Only you | Only you | | **Locked** | Everyone | Admins and owners | Use **Locked** for the view a team relies on — the weekly board, the report everyone screenshots — so nobody rearranges it by accident. Use **Personal** for your working scratch view. A view's access setting controls the *view's own configuration*, nothing more. The records inside it always obey your permissions — sharing a view with someone who can't read the object shows them nothing. ## Views live in the URL The object, the mode, the sort, the page and the panel you have open are all in the address bar. So a link to what you're looking at is just the URL — copy it out of the bar and paste it into a chat, and your colleague lands on the same view, scrolled to the same place. ## Working with a lot of records The Table view is built for large objects. It renders only the rows and columns on screen and loads the rest as you scroll, so a ten-thousand-record object opens as fast as a ten-record one. Selection, keyboard navigation, copy and fill still work across the whole set — not just what's painted. Board and Gallery paint one card per record, so on very large objects they show a bounded slice; filter down to a working set and they stay snappy. ## Next - Import and export — get data in and out, and undo mistakes. - Permissions — restrict objects, fields and rows. --- # Create your account https://docs.onivos.com/help/getting-started/create-account # Create your account Getting onto Onivos takes a minute. When you sign up, we create your first **organization** for you automatically, so you land in a workspace ready to use. ## Sign up 1. Go to the Onivos app and choose **Sign up**. 2. Enter your work email and a password, or continue with a supported single sign-on provider. 3. Verify your email if prompted — we send a confirmation link to make sure it's really you. 4. Give your organization a name (usually your company). You can change this later in settings. That's it — you're in. Your new organization comes with a default workspace so you can start immediately. ## What you get on sign-up - A personal **user account** that can belong to many organizations. - Your first **organization**, with you as its owner. - A default **workspace** inside it, where your data and projects live. You start on the Free plan with every pillar available — nothing is locked behind a higher tier. See **Plans & billing** for what changes as you grow. ## Next step Understand how Onivos organizes teams and projects: **Organizations & workspaces →** --- # Welcome to Onivos https://docs.onivos.com/help/getting-started/ # Welcome to Onivos Onivos is a single platform for running your whole business: build your website, automate your work, talk to customers, model your data, market to your audience, ship internal apps, and sell — all over one shared source of truth, with an AI copilot that can act across every pillar. This getting-started track takes you from zero to a working workspace: 1. **Create your account** — sign up and spin up your first organization. 2. **Organizations & workspaces** — how Onivos structures teams and projects. 3. **Invite your team** — bring people in and set their roles. 4. **Plans & billing** — pick a plan; every pillar is included on every plan. 5. **Meet the AI copilot** — the fastest way to do anything: describe it. 6. **Tour the seven pillars** — a quick map of what each part does. Anywhere in Onivos, press ⌘ K to open the command palette. Search, jump to any record, or just describe what you want and let the copilot do it. You'll rarely need to hunt through menus. --- # Invite your team https://docs.onivos.com/help/getting-started/invite-members # Invite your team Onivos is better with your team on it. Invite people to your organization and give them a role that matches what they should be able to do. ## Send an invite 1. Open **Settings → Members** at the organization level. 2. Choose **Invite member**. 3. Enter their email address and pick a **role**. 4. Send. They receive an email link to join your organization. Pending invites show in the same list until they're accepted, so you can always see who hasn't joined yet. ## Roles Roles control what a member can see and change. From most to least access: | Role | Can do | |---|---| | **Owner** | Everything, including billing and deleting the organization. | | **Admin** | Manage members, workspaces, and settings — but not billing ownership. | | **Member** | Do the day-to-day work in the workspaces they're given. | Only owners can change the plan or payment method. Promote a second owner before anyone with billing responsibility goes on leave, so you're never locked out. ## Remove or change a member 1. In **Settings → Members**, find the person. 2. Change their role from the dropdown, or choose **Remove** to revoke access. Changes take effect immediately the next time they load the app. ## Next step Understand what's included and what scales with you: **Plans & billing →** --- # Tour the seven pillars https://docs.onivos.com/help/getting-started/pillars-overview # Tour the seven pillars Onivos is one platform made of seven product pillars, all sharing the same data and the same AI copilot. Here's what each one does and when you'd reach for it. ## The seven pillars 1. **Website Builder** — build and publish sites three ways: with AI, drag & drop, or straight in code. Forms and pages feed the rest of the platform. 2. **Automation** — connect apps and automate repetitive work with a visual, n8n-style builder. Triggers and actions span every other pillar. 3. **Unified Conversation** — one omnichannel inbox that brings email, chat, and social messages together, with AI assist for replies. 4. **Custom Data Objects** — model your business with your own tables and fields, Airtable/HubSpot-style. This is the shared source of truth everything reads. 5. **Unified Marketing** — build audiences from your data and run campaigns and journeys across channels. 6. **App Builder** — assemble internal apps and interfaces on top of your data objects, Retool / Airtable-Interfaces-style. 7. **Ecommerce** — sell online and in person with a webstore, POS, and connected sales channels — no per-transaction fee. ## Plus the connective tissue - **Contacts (CRM)** — a 360° view of every person and company you work with. - **AI Agent / copilot** — the assistant that reads and acts across all of the above (see **Meet the AI copilot**). Because every pillar reads and writes the same underlying data, a contact captured by a website form is instantly available to Automation, the inbox, Marketing, and your store — no syncing, no duplicate records. ## Where to go next Pick the pillar you want to start with from the **Help Center**, or open the app and ask the copilot to set up your first project for you. --- # Plans & billing https://docs.onivos.com/help/getting-started/plans-billing # Plans & billing Onivos is priced as one suite. **Every plan includes every pillar** — you never have to upgrade just to unlock a feature. Higher plans raise your limits and add scale, not access. ## How pricing works - One subscription covers the whole platform — Website Builder, Automation, Inbox, Data Objects, Marketing, App Builder, and Ecommerce. - Plans differ by **limits and volume** (members, records, sends, orders), not by which pillars you can touch. - Start on **Free** and upgrade when you outgrow its limits. Onivos doesn't take a cut of your sales. Ecommerce is metered by order volume on your plan, not by a percentage of revenue. ## Change your plan 1. Open **Settings → Billing** (owners only). 2. Review the current plan and your usage against its limits. 3. Choose **Change plan** and pick the tier you want. 4. Confirm — the change applies right away and billing is prorated. ## Manage payment & invoices 1. In **Settings → Billing**, add or update your **payment method**. 2. Download past **invoices** from the same page for your records. Billing is restricted to organization owners. Admins and members won't see this section — see **Invite your team** for roles. ## Next step Now learn the fastest way to actually get work done: **Meet the AI copilot →** --- # Meet the AI copilot https://docs.onivos.com/help/getting-started/the-copilot # Meet the AI copilot The fastest path to anything in Onivos is to **describe it**. The AI copilot is built into every pillar — it can find things, answer questions, and take actions on your behalf across your website, automations, inbox, data, marketing, apps, and store. ## Open the command palette Press ⌘ K (or Ctrl K on Windows) from anywhere in the app. From there you can: - **Search** every record, page, and setting. - **Jump** straight to any contact, order, automation, or site. - **Ask** the copilot a question in plain language. - **Do** — tell it what you want and let it carry out the steps. ## Ask it to do things The copilot understands the pillars, so you can give it real work: - "Create a contact for Jane at Acme and add a follow-up task for Friday." - "Draft a welcome email campaign for new signups this week." - "Show me orders over $500 from the last 30 days." - "Build an automation that Slacks me when a high-priority conversation comes in." It proposes the action, you confirm, and it runs — no menu-hunting required. The same copilot powers **Ask AI** here in the docs. Ask a how-to question and it answers with links to the exact guide. ## The docked assistant Beyond the palette, a docked assistant panel stays reachable on the right of the app for longer, back-and-forth conversations while you keep working. ## Next step See the full picture of what Onivos can do: **Tour the seven pillars →** --- # Organizations & workspaces https://docs.onivos.com/help/getting-started/workspaces # Organizations & workspaces Onivos has two levels of structure: **organizations** and **workspaces**. Getting this model right early saves you re-organizing later. ## The model - An **organization** is your company or team. It owns billing, members, and organization-wide settings. A user can belong to many organizations. - A **workspace** lives inside an organization and is where the actual work happens — your data objects, sites, automations, conversations, and campaigns. An organization can have several workspaces. Your active **organization + workspace** scopes everything you see. Switch between them with the workspace switcher in the top bar. Use separate workspaces to keep distinct projects, brands, or environments cleanly apart while sharing one bill and one member list at the organization level. ## Switch organization or workspace 1. Click the **workspace switcher** at the top-left of the app. 2. Pick a different organization to change billing and member context. 3. Pick a workspace within it to change the data and projects you're working on. ## Create another workspace 1. Open the workspace switcher and choose **New workspace** (owners and admins). 2. Name it and confirm. 3. It appears in the switcher immediately — your data stays isolated per workspace. ## Next step Bring your team in and decide who can do what: **Invite your team →** --- # Help Center https://docs.onivos.com/help/ # Help Center Welcome to the Onivos Help Center. Onivos is one platform with seven product pillars and an AI copilot that works across all of them. These guides are task-based: each one walks you through a real job, step by step. New here? Start with **Getting started** — it takes you from creating an account to running your first pillar in about ten minutes. ## Browse by pillar Per-pillar guide sections land as they're written. In the meantime, the getting-started track covers the whole suite. - **Custom Data Objects** — your own tables, Airtable/HubSpot-style. - **Automation** — connect apps and automate work, n8n-style. - **Website Builder** — build sites with AI, drag & drop, or code. - **Unified Conversation** — one omnichannel inbox for every channel. - **Unified Marketing** — campaigns, audiences, and journeys. - **App Builder** — interfaces and internal apps over your data. - **Ecommerce** — POS, webstore, and sales channels. Plus **Contacts (CRM)** and the **AI Agent** that ties everything together. ## Can't find it? Press ⌘ K to search every guide, or ask the AI copilot a question and it'll answer with links to the right page. --- # Writing website templates https://docs.onivos.com/help/website/writing-templates # Writing website templates Onivos builds pages two ways: the **visual builder** (drag & drop blocks) and **code mode** — a *coded template* you write by hand. This guide covers code mode: the template language, the data you can read, and how to keep coded pages editable. Code mode uses the **Onivos template language** — HubL-flavoured Jinja, so it reads like the templates you may know from HubSpot or Jinja. Templates can read your site's data and loop/branch over it, but they **cannot run arbitrary JavaScript**, fetch anything, or run forever, so a template is always safe to publish. The full list of tags and filters is the template language reference. Reach for the visual builder for most pages. Switch a page to **code mode** when you want pixel-exact control, are pasting a hand-built HTML section, or need logic the blocks don't cover (loops, conditionals, dynamic data). You can mix both — see Keep regions editable below. ## Your first template A code-mode page is just HTML with template tags sprinkled in. Output a value with a double-brace **output tag**, and branch or loop with {% %} **statements**: Empty values are false, so {% if page.seo.description %} skips the paragraph when there's no description — no empty tags in your output. ## What you can read Every template runs with these objects in scope: | Object | What it holds | |---|---| | site | The site itself: site.name, and raw injection points site.headHtml / site.bodyEndHtml. | | page | The current page: page.title, page.slug, page.lang, and page.seo.description. | | theme | Brand tokens: theme.colors.primary, theme.colors.bg, theme.colors.text, theme.radius, theme.font. | | request | request.path, request.params (a **dynamic** page's path parameters, e.g. /blog/:slug → request.params.slug), request.query, request.locale. | | data | The output of the page's **controller**, when it has one. | | local_dt | The time of the render — {{ local_dt\|datetimeformat("%Y") }} for the footer year. | Anything else a page shows — blog posts, products, data-object records, menus, pricing — it **declares** at the top, and the platform loads it before the page renders: A declaration is checked when you save: the source must exist, its arguments must fit, and you must be allowed to publish what it reads. The page settings' **Data source** picker writes the declaration for a data object for you. ## Filters Filters transform a value — you pipe a value into a filter: - **money** — format a minor-unit amount in the store's currency and locale. - **default** — a fallback when the value is missing (with true, also when it is empty). - **image_url** / **image_tag** — resized image URLs and responsive tags. - **class_names** — build a class string from a list or a { class: condition } map. The standard filters (upper, truncate, format_date, join, …) are all there too. Every value is **escaped for where it lands** — text, attribute, URL, style or script — so you never add an escape filter, and a javascript: link can never reach an href. Use |safe only for markup you trust. ## Theme tokens as CSS variables Your theme's brand tokens are emitted as CSS custom properties on every page, so you can style templates without hardcoding colors — re-skinning the theme restyles them: Available variables: --onv-color-primary, --onv-color-bg, --onv-color-text, --onv-radius, --onv-font. ## Wrap in the site layout, or not A code page can either sit **inside your site layout** (header + footer around it) or **be the whole document** — declared at the top of the code: - **{% extends "layouts/theme.html" %} (the default for new pages):** the theme's header, footer, , and theme CSS wrap your template, and you fill the layout's regions with {% block main %}…{% endblock %} overrides. - **No extends line:** your template is the entire response — start from . Use this to paste a complete, self-contained landing page. The page's own CSS/JS are still injected into / before . ## Keep regions editable with {% dnd_area %} A fully coded page isn't editable in the visual builder — unless you mark **drop areas**. Wrap a part of your template in {% dnd_area %} and give it a name; teammates can then drag blocks into that area visually, while the rest stays locked in code: Blocks placed on the canvas are written into the area as {% dnd_module %} tags, and rows of columns as {% dnd_row %} / {% dnd_column width=6 %} on a 12-column grid — you can edit them in code too. This is the best of both worlds — a locked-down shell with editable pockets. ## Building a reusable layout (advanced) Themes can define a **custom layout** — the outer HTML shell wrapped around every page. A layout defines named {% block %} regions pages override, and places your global header/footer with {% global_partial %}: The global header and footer are edited once and shown on every page; an empty {% block main %} is the content slot pages fill. A page can even override the header/footer blocks for a special landing page. If a custom layout ever errors, the site safely falls back to the default layout — a broken layout never blanks a live page. ## Good to know - **Mistakes are caught when you save.** A template that does not compile is refused with the line and column, and the code editor marks the spot as you type. - **A missing value renders empty** instead of breaking the page — combine it with default for a fallback. Reading a name nothing declares shows a warning in the editor. - **No JavaScript runs in templates.** For interactivity, add page JS in the page's script field; the template only shapes the HTML. - **Whitespace control:** add a hyphen inside a tag ({%- ... -%}) to trim surrounding whitespace when your output spacing matters. Not sure where to start? Open the builder's AI panel and describe the section you want — it generates a coded block you can then refine by hand.