OriginChainDB
Database endpoints

Retrieve a row

Fetches one row by its primary key.

GET /v1/tenants/{tenant}/rows/{schema}/{pk}

Open a single record by its keyThis returns one row rather than a filtered list.
  1. Select the tableUse the registered schema ID.
  2. Supply the primary keyLocate the exact record to read.
  3. Read its column valuesKeep a returned version for a later conditional write.

Before you start

Use your database bearer token.

Connection setup

Use an existing table and primary key. Save _oc_row_version if you plan a conditional update.

Path parameters

FieldTypeRequired
tenantstringRequired
schemastringRequired
pkstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Read the result

The body is the row's column values. If a row version is returned, keep it for a conditional write. The lookup uses one primary key; it is not a filtered list query.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd