Skip to main content
Setup in the dashboard: App Data guide
App Data exposes custom database tables defined in your project dashboard. Requires the App Data feature (app_data) — Growth plan and above. Access per table is configured in the dashboard (e.g. public read, authenticated write). The SDK respects those presets; unauthorized calls return API errors.

getDataModels()

List tables (models) available to the current visitor.
Call this first to discover valid modelKey values and field schemas.

listRecords(modelKey, options?)

getRecord(modelKey, recordId)

Use on detail pages with dynamic slugs or when you have an ID from a list.

createRecord(modelKey, dataJson)

Typically requires signed-in visitor or public-write preset.

updateRecord(modelKey, recordId, dataJson)

deleteRecord(modelKey, recordId)

Schema validation

dataJson must match the table schema defined in the dashboard. Invalid fields or types are rejected with validation errors.

Dashboard configuration

Configure tables under Project → Data (or App Data). Set field types, validation, and API access presets before calling SDK methods from generated pages.