Data API

Querying rows

Filter with column=op.value, pick columns with select, sort with order, and page with limit and offset. All of it in the query string.

Filters

Any query parameter that is not reserved (select, order, limit, offset) is a filter: column=op.value. Multiple filters combine with AND.

Operators
OperatorMeaningExample
eqEqualsplan=eq.pro
neqNot equalsplan=neq.free
gt / gteGreater than (or equal)age=gte.18
lt / lteLess than (or equal)price=lt.100
likePattern match (case-sensitive)name=like.M%25
ilikePattern match (case-insensitive)name=ilike.m%25
isnull, true, or falsearchived_at=is.null
Pro customers whose name starts with M
GET https://example-project.api.cubibase.com/rest/v1/customers?plan=eq.pro&name=ilike.m%25
apikey: cb_pub_EXAMPLE_ONLY
Authorization: Bearer <USER_JWT>

Choosing columns

select takes a comma-separated list of 1 to 64 columns. Without it, every column is returned.

Only names and emails
GET https://example-project.api.cubibase.com/rest/v1/customers?select=name,email
apikey: cb_pub_EXAMPLE_ONLY
Authorization: Bearer <USER_JWT>

Sorting

order takes column.asc or column.desc, up to three columns separated by commas.

Newest plans first, then name
GET https://example-project.api.cubibase.com/rest/v1/customers?order=plan.desc,name.asc
apikey: cb_pub_EXAMPLE_ONLY
Authorization: Bearer <USER_JWT>

Pagination

ParameterDefaultMaximumNotes
limit201000Rows per page
offset0100000Rows to skip
Page 3, 25 rows per page
GET https://example-project.api.cubibase.com/rest/v1/customers?order=name.asc&limit=25&offset=50
apikey: cb_pub_EXAMPLE_ONLY
Authorization: Bearer <USER_JWT>

Reading one row

GET /rest/v1/{table}/{id} reads a single row by primary key. A missing row — or one the user’s policy hides — returns 404 not_found.

One customer
GET https://example-project.api.cubibase.com/rest/v1/customers/8c1a0b2e-7d44-4a11-9c31-0b51a6e4d901
apikey: cb_pub_EXAMPLE_ONLY
Authorization: Bearer <USER_JWT>

Additional resources