Skip to content

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.com

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:

bash
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:

json
{
    "data": {
        "id": "175041000000000001",
        "display_name": "Jane Cooper",
        "lifecycle_stage": "lead"
    }
}

A list response puts the page inside the same envelope:

json
{
    "data": {
        "items": [{ "id": "175041000000000001" }],
        "total": 248,
        "page": 1,
        "limit": 25
    }
}

Failures replace data with error:

json
{
    "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 ​

ConceptShapeNotes
Idsstring64-bit, time-ordered ids. Always strings — they exceed the safe integer range in JavaScript, so never parse one as a number.
TimestampsstringUTC, ISO 8601 (2026-08-02T09:14:33.512Z). Send UTC; you always receive UTC.
Moneyinteger + stringMinor units (cents) plus a currency code. Never a float.
EnumsstringLowercase 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.

GroupScope prefixCoversReference
Contacts (CRM)contactsContacts, companies, deals, pipelines, tasks, tickets, segments, tagsContacts & CRM
Data schemadata-schemaCustom objects, fields, views, permissionsData schema
Data Object recordsdataRows in your custom objects, import/export, aggregateRecords
WebsitewebsiteSites, pages, forms, domains, redirects, themes, menusWebsites & pages
Content (blog)contentBlog articlesBlog content
MediamediaFile uploads, folders, tagsMedia files
ConversationconversationInbox, conversations, channels, routing, SLAsConversations
Messaging (outbound)messagingSending and editing messages in a conversationConversations
AutomationautomationWorkflows, runs, connectionsAutomation
MarketingmarketingBroadcasts, journeys, programs, suppressionsMarketing
AIaiAgents, knowledge, tools, evaluationsAI agents
CommercecommerceCatalog, inventory, orders, payments, shipping, promotionsCommerce
AccountaccountOrganizations, markets, members, invitations, billing, keysAccount
MCP (AI clients)mcpThe MCP endpoint AI clients connect toMCP

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-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.