App data API
Read and write the records and users of one app from your own code.
The App data API serves what's inside a single app: the records in its collections and the people who sign in to it. Managing the account itself, such as workspaces, apps and versions, is the job of the Platform API.
https://apipublic.yeshbe.com/api/v1The app key#
This API has its own key. The key belongs to one app and is created with the app, not on the API keys page. You'll find it in the API tab of your app.
Send it as a bearer token on every request.
Authorization: Bearer Set up a client#
The examples in this reference use a small helper so each one stays short. Define it once.
curl "https://apipublic.yeshbe.com/api/v1/Order" \ -H "Authorization: Bearer $YESHBE_APP_KEY"constBASE = "https://apipublic.yeshbe.com/api/v1"; constKEY = process.env.YESHBE_APP_KEY; asyncfunctionapi(path, options = {}) { const res = awaitfetch(BASE + path, { ...options, headers: { "Authorization": "Bearer " + KEY, "Content-Type": "application/json", ...options.headers } }); const json = await res.json(); if (!json.success) thrownewError(json.error); return json.data; }import os, requests BASE = "https://apipublic.yeshbe.com/api/v1" KEY = os.environ["YESHBE_APP_KEY"] defapi(path, method="GET", body=None): r = requests.request( method, BASE + path, headers={"Authorization": f"Bearer {KEY}"}, json=body ) data = r.json() ifnot data["success"]: raise Exception(data["error"]) return data["data"]var client = new HttpClient(); client.BaseAddress = new Uri("https://apipublic.yeshbe.com/api/v1/"); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("YESHBE_APP_KEY"));Responses#
Every response has the same shape. Check success first, then read data or error.
{"success":true,"data":{}}{"success":false,"error":"A sentence that says what went wrong."}Find out what the app accepts#
Which collections exist depends on the app. Ask before writing against it.
/_schemacurl "https://apipublic.yeshbe.com/api/v1/_schema" \ -H "Authorization: Bearer $YESHBE_APP_KEY"const data = awaitapi("/_schema");data = api("/_schema")var res = await client.GetStringAsync("_schema");The same definitions are available from the Platform API at GET /apps/{id}/schema.
Reference for your own app#
The API tab of your app shows this reference filled in with your own collections and fields. From there you can also copy the whole reference as text for an AI assistant.
Reference#
- Records List, get, count, create, update and delete records.
- Filter, sort and page Narrow a list down to the records you want.
- Users Manage the people who sign in to the app.