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
curl "https://api.onivos.com/objects/inspections/records?limit=100&sort=due_date:asc" \
-H "Authorization: Bearer onv_live_xxxxxxxx"{
"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.
| 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:
[
{ "field": "status", "op": "eq", "value": "open" },
{ "field": "priority", "op": "in", "value": ["high", "urgent"] },
{ "field": "closed_at", "op": "empty" }
]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
/objects/{key}/recordsA page of rows. Cursor-first: pass cursor from the previous page, or page for offset mode.Try it/objects/{key}/records/{id}One record, with resolved relation labels.Try it/objects/{key}/records/searchText search tuned for pickers and lookups.Try it/objects/{key}/records/{id}/links/{fieldKey}The records on the other side of a relation field.Try it/objects/{key}/records/{id}/historyChange history for a record.Try it/objects/{key}/aggregateGrouped aggregation. fn is count, or sum:/avg:/min:/max:/filled: plus a field key.Try itAggregate
GET /objects/orders/aggregate?groupBy=status&fn=sum:total_amount&filters=…| 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:
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"] } }
}'/objects/{key}/recordsCreate a row. Values live under fields, keyed by field key.Try it/objects/{key}/records/{id}Partial update — only the keys in fields change.Try it/objects/{key}/records/bulkUp to 500 cell updates in one call — the fill/paste path.Try it/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/objects/{key}/records/{id}Soft-delete to trash.Try it/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/objects/{key}/records/{id}/reorderMove a row in the manual order. Both null = the list edge.Try it/objects/{key}/records/{id}/generate/{fieldKey}Recompute one AI cell.Try itRelations 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
/objects/{key}/records/{id}/commentsRead the comment thread on a row.Try it/objects/{key}/records/{id}/commentsAdd a comment.Try it/objects/{key}/records/{id}/comments/{commentId}Edit your own comment.Try it/objects/{key}/records/{id}/comments/{commentId}Delete your own comment.Try it/objects/{key}/records/{id}/comments/{commentId}/translateTranslate a comment.Try itImport, export and trash
/objects/{key}/importStart an import: upload rows and get a mapping preview.Try it/objects/{key}/import/{importId}/startCommit the mapped import.Try it/objects/{key}/import/{importId}Import progress and row-level errors.Try it/objects/{key}/exportExport the object, honouring filters.Try it/objects/{key}/trashSoft-deleted rows.Try it/objects/{key}/trash/{trashId}/restoreRestore one row from trash.Try itPermissions 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.