Skip to main content
POST
Import a batch of typed records

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

table_id
string<uuid>
required

Body

application/json
import_id
string<uuid>
required

One UUID per import into this table. Reuse it across batches and retries, including after a lost response. UUID letters are case-insensitive.

offset
integer
required

Zero-based absolute position of the first row in the original input. The last row position (offset + rows.length - 1) must also be a JavaScript safe integer.

Required range: 0 <= x <= 9007199254740991
rows
object[]
required

Each object maps fields on the target table directly to typed values. Each normalized row is limited to 64 KiB.

Required array length: 1 - 500 elements

Response

Batch committed, including a fully replayed batch. Advance the input offset by inserted + existing.

The two counts sum to the submitted row count. A successful batch commits atomically.

inserted
integer
required

Positions first written by this call.

Required range: 0 <= x <= 500
existing
integer
required

Positions committed by an earlier call, including records a person later edited or deleted.

Required range: 0 <= x <= 500