The Entities API is in beta. Its endpoints and responses may change.
rls. The Entities API lets you read and change those schemas, and count the records and users an app holds.
Use the Entities API to:
- Read an app’s entity schemas, one at a time or all together.
- Add, replace, or remove an entity.
- Make an app’s live schema match its source in one call, as a deploy does.
- Count an entity’s records, or the app’s users.
Prerequisites
- A personal API key. See Authentication to get one. These endpoints share the App Management API’s
api_keyheader and base URL. - An app you can edit, and permission to take the action you are calling.
App ID
Endpoints that act on a specific app include the app’s ID in the URL path asapp_id.
To get your app ID:
- Go to app.base44.com.
- Open your app in the app editor.
- Copy the app ID from the editor URL:
"https://app.base44.com/apps/<app_id>/editor".
Schema writes do not change your code
This makes the API a good fit for a deploy step that pushes a schema Base44 should serve now, and a poor fit for a lasting schema edit.The User entity
User is built in, so it does not behave like an entity you defined:
- You cannot create it. Use Update entity schema with
Userto add custom fields to it. - Reading it returns only the custom fields you added, not the built-in ones, and returns a 404 when there are none.
- Custom fields cannot redeclare
emailorfull_name, which Base44 manages. - Counting users has its own endpoint, Count app users.
Usernever reaches Count entity records.
Row-level security applies to counts
Both count endpoints return what the calling credential can read. An entity whoserls rules narrow reads returns a smaller number than it actually holds, and nothing in the response says a rule applied.