Skip to main content
PostgREST-style API for your project database.

Authentication

Same X-API-Key header as other Platform APIs.

Query rows

GET /platform/v1/db/{table}

Filters

Add query parameters with operators:
OperatorExampleDescription
eqstatus=eq.activeEquals
gtage=gt.18Greater than
gteage=gte.18Greater or equal
ltprice=lt.100Less than
lteprice=lte.100Less or equal
likename=like.%john%Pattern match
instatus=in.(active,pending)In list
is.nulldeleted_at=is.nullIs null

Select columns

?select=id,name,email

Order

?order=created_at.desc

Pagination

?limit=20&offset=40

Example

curl "https://api.kapso.ai/platform/v1/db/users?status=eq.active&limit=10" \
  -H "X-API-Key: YOUR_API_KEY"

Get single row

GET /platform/v1/db/{table}/{id}

Insert rows

POST /platform/v1/db/{table}
{
  "name": "John",
  "email": "john@example.com"
}
Bulk insert by passing an array.

Update rows

PATCH /platform/v1/db/{table}?{filters} Updates all rows matching filters.

Upsert

PUT /platform/v1/db/{table}?{filters}

Delete rows

DELETE /platform/v1/db/{table}?{filters} Deletes all rows matching filters.