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
https://api.onivos.comThere 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:
curl https://api.onivos.com/contacts \
-H "Authorization: Bearer onv_test_xxxxxxxx"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:
{
"data": {
"id": "175041000000000001",
"display_name": "Jane Cooper",
"lifecycle_stage": "lead"
}
}A list response puts the page inside the same envelope:
{
"data": {
"items": [{ "id": "175041000000000001" }],
"total": 248,
"page": 1,
"limit": 25
}
}Failures replace data with error:
{
"error": {
"code": "NOT_FOUND",
"message": "Contact not found"
}
}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
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 |
Not every app surface is on the API
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-Keyand a retry can never create a duplicate — Idempotency. - Rate limits are per group. Every limited response carries
RateLimit-*headers — Rate limits. PATCHis partial,PUTis a replacement. Where both exist,PUToverwrites the whole resource with what you send.- Deletes are usually soft. A deleted record leaves lists and returns
404by id, but is recoverable from trash where the pillar supports it.