Skip to content

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 ​

bash
curl "https://api.onivos.com/objects/inspections/records?limit=100&sort=due_date:asc" \
  -H "Authorization: Bearer onv_live_xxxxxxxx"
json
{
    "data": {
        "rows": [
            {
                "id": "175041000000000900",
                "fields": { "title": "Roof check", "due_date": "2026-08-14", "status": "open" }
            }
        ],
        "total": 84210,
        "approx": true,
        "page": 1,
        "limit": 100,
        "nextCursor": "eyJzIjoiMjAyNi0wOC0xNCIsImlkIjoiMTc1MDQxMDAwMDAwMDAwOTAwIn0"
    }
}

This list has its own envelope

Rows arrive in rows, not items, and paging is cursor-first. That is the documented exception to the standard list contract — see Pagination.

ParameterTypeDefaultDescription
limitinteger50Page size, max 200.
cursorstring—Continue from a previous page's nextCursor.
pageinteger—Offset mode instead of cursor mode. Supplying it stops nextCursor being returned.
sortstringmanual row orderfieldKey: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.
filtersJSON array—See below.
searchstring—Text search across searchable fields.
searchKeysstring—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:

json
[
    { "field": "status", "op": "eq", "value": "open" },
    { "field": "priority", "op": "in", "value": ["high", "urgent"] },
    { "field": "closed_at", "op": "empty" }
]

Clauses combine with AND.

OperatorValueMeaning
eq · neqscalarEquals / does not equal.
gt · gte · lt · ltescalarOrdered comparison — numbers, dates, datetimes.
containsstringCase-insensitive substring. % and _ are literal, not wildcards.
inarrayAny of these values. Maximum 50 entries.
empty · notEmpty—No value / has a value. Takes no value.
linkedTo · notLinkedTorecord idFor 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 ​

GET/objects/{key}/recordsA page of rows. Cursor-first: pass cursor from the previous page, or page for offset mode.Try it
GET/objects/{key}/records/{id}One record, with resolved relation labels.Try it
GET/objects/{key}/records/{id}/historyChange history for a record.Try it
GET/objects/{key}/aggregateGrouped aggregation. fn is count, or sum:/avg:/min:/max:/filled: plus a field key.Try it

Aggregate ​

GET /objects/orders/aggregate?groupBy=status&fn=sum:total_amount&filters=…
ParameterDescription
groupByA stored field to group on. Omit it for a single grand total.
fncount (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.
rollup1 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 [].
filtersThe 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:

bash
curl -X POST https://api.onivos.com/objects/inspections/records \
  -H "Authorization: Bearer onv_live_xxxxxxxx" \
  -H "Idempotency-Key: inspection-8841" \
  -H "Content-Type: application/json" \
  -d '{
        "fields": { "title": "Roof check", "due_date": "2026-08-14", "status": "open" },
        "linksDelta": { "property": { "add": ["175041000000000123"] } }
      }'
POST/objects/{key}/recordsCreate a row. Values live under fields, keyed by field key.Try it
PATCH/objects/{key}/records/{id}Partial update — only the keys in fields change.Try it
PATCH/objects/{key}/records/bulkUp to 500 cell updates in one call — the fill/paste path.Try it
POST/objects/{key}/records/bulkCreate up to 200 rows in one call. A row that is refused comes back in failed by index; the rest are created.Try it
DELETE/objects/{key}/records/{id}Soft-delete to trash.Try it
POST/objects/{key}/records/bulk-deleteSoft-delete up to 500 rows to trash in one call. Ids you cannot delete come back in missing.Try it
PATCH/objects/{key}/records/{id}/reorderMove a row in the manual order. Both null = the list edge.Try it
POST/objects/{key}/records/{id}/generate/{fieldKey}Recompute one AI cell.Try it

Relations take either form: an id array in fields replaces the whole set, while linksDelta — { "<fieldKey>": { "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 ​

GET/objects/{key}/records/{id}/commentsRead the comment thread on a row.Try it
POST/objects/{key}/records/{id}/commentsAdd a comment.Try it
PATCH/objects/{key}/records/{id}/comments/{commentId}Edit your own comment.Try it
DELETE/objects/{key}/records/{id}/comments/{commentId}Delete your own comment.Try it
POST/objects/{key}/records/{id}/comments/{commentId}/translateTranslate a comment.Try it

Import, export and trash ​

POST/objects/{key}/importStart an import: upload rows and get a mapping preview.Try it
POST/objects/{key}/import/{importId}/startCommit the mapped import.Try it
GET/objects/{key}/import/{importId}Import progress and row-level errors.Try it
GET/objects/{key}/exportExport the object, honouring filters.Try it
GET/objects/{key}/trashSoft-deleted rows.Try it
POST/objects/{key}/trash/{trashId}/restoreRestore one row from trash.Try it

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.