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.
| Field | Type | Notes |
|---|---|---|
id | string | The record's id. |
created_date | string, date-time | When the record was created. |
updated_date | string, date-time | When the record was last changed. |
created_by_id | string | The user who created the record. |
Your own fields arrive as JSON values according to their type.
| Field type | In JSON |
|---|---|
string, text | string |
number, integer | number |
boolean | boolean |
enum | string, one of the allowed values |
date | string, for example "2026-04-05" |
datetime | string, for example "2026-04-05T10:12:00Z" |
array | array |
object | object |
List records#
/{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"const data = awaitapi("/Order?limit=20&status=new&sort=-created_date");data = api("/Order?limit=20&status=new&sort=-created_date")var res = await client.GetStringAsync("Order?limit=20&status=new&sort=-created_date");{"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#
/{Collection}/{id}curl "https://apipublic.yeshbe.com/api/v1/Order/1042" \ -H "Authorization: Bearer $YESHBE_APP_KEY"const data = awaitapi("/Order/1042");data = api("/Order/1042")var res = await client.GetStringAsync("Order/1042");{"success":true,"data":{"id":"1042","customer":"Dana Levi","total":120,"status":"new","created_date":"2026-04-05T10:12:00Z"}}Count records#
/{Collection}/countCounts 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"const data = awaitapi("/Order/count?status=new");data = api("/Order/count?status=new")var res = await client.GetStringAsync("Order/count?status=new");{"success":true,"data":{"count":340}}Create a record#
/{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"}'const data = awaitapi("/Order", { method: "POST", body: JSON.stringify({ "customer": "Dana Levi", "total": 120, "status": "new" }) });data = api("/Order", method="POST", body={"customer": "Dana Levi", "total": 120, "status": "new"})var body = new StringContent( @"{""customer"":""Dana Levi"",""total"":120,""status"":""new""}", Encoding.UTF8, "application/json"); var res = await client.PostAsync("Order", body);{"success":true,"data":{"id":"1042","customer":"Dana Levi","total":120,"status":"new","created_date":"2026-04-05T10:12:00Z"}}Create many records#
/{Collection}/bulkSend 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"}]'const data = awaitapi("/Order/bulk", { method: "POST", body: JSON.stringify([ { "customer": "Dana Levi", "total": 120, "status": "new" }, { "customer": "Noam Cohen", "total": 75, "status": "paid" } ]) });data = api("/Order/bulk", method="POST", body=[{"customer": "Dana Levi", "total": 120, "status": "new"}, {"customer": "Noam Cohen", "total": 75, "status": "paid"}])var body = new StringContent( @"[{""customer"":""Dana Levi"",""total"":120,""status"":""new""},{""customer"":""Noam Cohen"",""total"":75,""status"":""paid""}]", Encoding.UTF8, "application/json"); var res = await client.PostAsync("Order/bulk", body);{"success":true,"data":{"created":[{"index":0,"id":1042},{"index":1,"id":1043}],"failed":[],"createdCount":2,"failedCount":0}}Update a record#
/{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"}'const data = awaitapi("/Order/1042", { method: "PUT", body: JSON.stringify({ "customer": "Dana Levi", "total": 120, "status": "paid" }) });data = api("/Order/1042", method="PUT", body={"customer": "Dana Levi", "total": 120, "status": "paid"})var body = new StringContent( @"{""customer"":""Dana Levi"",""total"":120,""status"":""paid""}", Encoding.UTF8, "application/json"); var res = await client.PutAsync("Order/1042", body);{"success":true,"data":{"id":"1042","customer":"Dana Levi","total":120,"status":"paid","created_date":"2026-04-05T10:12:00Z"}}Delete a record#
/{Collection}/{id}curl -X DELETE "https://apipublic.yeshbe.com/api/v1/Order/1042" \ -H "Authorization: Bearer $YESHBE_APP_KEY"const data = awaitapi("/Order/1042", { method: "DELETE" });data = api("/Order/1042", method="DELETE")var res = await client.DeleteAsync("Order/1042");{"success":true,"data":{"id":1042,"deleted":true}}