Skip to content

Records

List, get, count, create, update and delete the records in an app's collections.

Every collection in your app gets the same set of endpoints, under the collection's name. The examples on this page use a collection called Order with three fields: customer, total and status. Replace Order with one of your own collections.

What a record looks like#

A record holds the fields you defined, plus four that YeshBe adds.

FieldTypeNotes
idstringThe record's id.
created_datestring, date-timeWhen the record was created.
updated_datestring, date-timeWhen the record was last changed.
created_by_idstringThe user who created the record.

Your own fields arrive as JSON values according to their type.

Field typeIn JSON
string, textstring
number, integernumber
booleanboolean
enumstring, one of the allowed values
datestring, for example "2026-04-05"
datetimestring, for example "2026-04-05T10:12:00Z"
arrayarray
objectobject

List records#

GET/{Collection}

Returns one page of records. Add filters, a search term, a sort order or a field list as query parameters. See Filter, sort and page.

curl "https://apipublic.yeshbe.com/api/v1/Order?limit=20&status=new&sort=-created_date" \ -H "Authorization: Bearer $YESHBE_APP_KEY"
Response
{"success":true,"data":{"items":[{"id":"1042","customer":"Dana Levi","total":120,"status":"new","created_date":"2026-04-05T10:12:00Z"}],"page":1,"limit":20,"total":340,"pages":17}}

Get a record#

GET/{Collection}/{id}
curl "https://apipublic.yeshbe.com/api/v1/Order/1042" \ -H "Authorization: Bearer $YESHBE_APP_KEY"
Response
{"success":true,"data":{"id":"1042","customer":"Dana Levi","total":120,"status":"new","created_date":"2026-04-05T10:12:00Z"}}

Count records#

GET/{Collection}/count

Counts the records that match, without returning them. Takes the same filters as the list.

curl "https://apipublic.yeshbe.com/api/v1/Order/count?status=new" \ -H "Authorization: Bearer $YESHBE_APP_KEY"
Response
{"success":true,"data":{"count":340}}

Create a record#

POST/{Collection}

The body is validated against the collection's definition. Send every required field.

curl -X POST "https://apipublic.yeshbe.com/api/v1/Order" \ -H "Authorization: Bearer $YESHBE_APP_KEY" \ -H "Content-Type: application/json" \ -d '{"customer":"Dana Levi","total":120,"status":"new"}'
Response
{"success":true,"data":{"id":"1042","customer":"Dana Levi","total":120,"status":"new","created_date":"2026-04-05T10:12:00Z"}}

Create many records#

POST/{Collection}/bulk

Send an array of records. The response says which were created and which failed, by their position in the array.

curl -X POST "https://apipublic.yeshbe.com/api/v1/Order/bulk" \ -H "Authorization: Bearer $YESHBE_APP_KEY" \ -H "Content-Type: application/json" \ -d '[{"customer":"Dana Levi","total":120,"status":"new"},{"customer":"Noam Cohen","total":75,"status":"paid"}]'
Response
{"success":true,"data":{"created":[{"index":0,"id":1042},{"index":1,"id":1043}],"failed":[],"createdCount":2,"failedCount":0}}

Update a record#

PUT/{Collection}/{id}
curl -X PUT "https://apipublic.yeshbe.com/api/v1/Order/1042" \ -H "Authorization: Bearer $YESHBE_APP_KEY" \ -H "Content-Type: application/json" \ -d '{"customer":"Dana Levi","total":120,"status":"paid"}'
Response
{"success":true,"data":{"id":"1042","customer":"Dana Levi","total":120,"status":"paid","created_date":"2026-04-05T10:12:00Z"}}

Delete a record#

DELETE/{Collection}/{id}
curl -X DELETE "https://apipublic.yeshbe.com/api/v1/Order/1042" \ -H "Authorization: Bearer $YESHBE_APP_KEY"
Response
{"success":true,"data":{"id":1042,"deleted":true}}