Versions and schema
Read an app's versions, its live schema and its stored collections with the Platform API.
Every published state of an app is a version. The API always reads the version that is live in production. Drafts are visible only in the dashboard preview.
List versions#
GET
/apps/{id}/versionsversions:readproduction_id tells you which version is currently live.
curl "https://apipublic.yeshbe.com/api/platform/v1/apps/341/versions" \ -H "Authorization: Bearer $YESHBE_KEY"const res = awaitfetch("https://apipublic.yeshbe.com/api/platform/v1/apps/341/versions", { headers: { "Authorization": `Bearer ${process.env.YESHBE_KEY}` } }); const { success, data, error } = await res.json();import os, requests res = requests.get( "https://apipublic.yeshbe.com/api/platform/v1/apps/341/versions", headers={"Authorization": f"Bearer {os.environ['YESHBE_KEY']}"}, ) payload = res.json(){"success":true,"data":{"items":[{"ID":88,"created_at":"2026-05-02T08:00:00"}],"production_id":88}}Get the schema#
GET
/apps/{id}/schemaschema:readThe entity definitions of the live version. This is what tells you which collections the App data API will accept.
curl "https://apipublic.yeshbe.com/api/platform/v1/apps/341/schema" \ -H "Authorization: Bearer $YESHBE_KEY"const res = awaitfetch("https://apipublic.yeshbe.com/api/platform/v1/apps/341/schema", { headers: { "Authorization": `Bearer ${process.env.YESHBE_KEY}` } }); const { success, data, error } = await res.json();import os, requests res = requests.get( "https://apipublic.yeshbe.com/api/platform/v1/apps/341/schema", headers={"Authorization": f"Bearer {os.environ['YESHBE_KEY']}"}, ) payload = res.json(){"success":true,"data":{"version_id":88,"entities":[{"name":"orders","properties":{"total":{"type":"number"},"status":{"type":"string"}},"required":["total"]}]}}List collections#
GET
/apps/{id}/collectionsschema:readThe stored collections, as opposed to the declared ones in the schema.
curl "https://apipublic.yeshbe.com/api/platform/v1/apps/341/collections" \ -H "Authorization: Bearer $YESHBE_KEY"const res = awaitfetch("https://apipublic.yeshbe.com/api/platform/v1/apps/341/collections", { headers: { "Authorization": `Bearer ${process.env.YESHBE_KEY}` } }); const { success, data, error } = await res.json();import os, requests res = requests.get( "https://apipublic.yeshbe.com/api/platform/v1/apps/341/collections", headers={"Authorization": f"Bearer {os.environ['YESHBE_KEY']}"}, ) payload = res.json(){"success":true,"data":{"items":[{"id":7,"name":"orders"}]}}