Records/Create record(s)

Create record(s)

Body is `{ fields }` for one row or `{ records: fields[] }` for bulk (max 50). Successful create enqueues Automations `record.created` (`source=api`). FILE JSON in fields is rejected (`file.use_upload`).

POST/tables/{tableId}/records

Authorization

AuthorizationRequiredBearer <token>

Authorization: Bearer onn_live_…. Prefix lookup (first 12 characters) plus argon2id. Scopes are tables:read and tables:write (write implies read).

In: header

Request Body

application/jsonRequired
bodyRequiredobject | object

Path Parameters

tableIdRequiredstring

Table UUID (not alias_id).

Format: "uuid"
curl -X POST "https://api.onnie.ai/api/public/v1/tables/497f6eca-6276-4993-bfeb-53cbbbba6f08/records" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "fields": {}
  }'

Created record or bulk records

{
  "record": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "table_id": "ac92386a-00cc-4818-bf43-1a666d5a5e67",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "fields": {}
  }
}