Skip to main content
By default, entries visitors send to your widgets (votes, ratings, form fields) are stored in Widgetic’s database. Partners can optionally point Widgetic at a Neon database they control instead. Your own storage bucket (required) is separate: this page is only about visitor entry tables. Like the storage bucket, the Neon database is set with the API: the dashboard has no setting for it.
Set this before customers collect data. Widgetic never moves data between databases. Adding a Neon destination is refused while any composition already holds data in Widgetic’s database (PARTNER_DATABASE_HOLDS_DATA).

What you send

PUT /partners/{partnerId}/data-database with { "connectionString": "postgresql://..." } and a key with full access. The string is shown once in Neon under Connect; Widgetic stores it encrypted and never returns the password. Only Neon endpoints (ep-….neon.tech) are accepted.
Widgetic verifies the role can create schemas, write and read a row, then drops the test schema. Failure answers 422 PARTNER_DATABASE_UNVERIFIED with error.details.reason (for example ACCESS_DENIED).

Operate

Each composition’s tables live in schema comp_<compositionId>. When your database is unreachable, visitor entries answer 503 ENTRY_DATABASE_UNAVAILABLE (there is no silent fallback to Widgetic’s database). Reset the Neon role password and send a new string when credentials change. CLI equivalents: widgetic api partners set-partner-data-database, get-partner-data-database, verify-partner-data-database, remove-partner-data-database (how a command maps to an endpoint).

What stays with Widgetic

Composition metadata, table declarations, webhook entry.created events (ids and context, not field values), and analytics. Widgetic servers open your database only to serve entry reads and writes for your compositions.

Storage

Required S3-compatible bucket for uploads

Compositions

databaseSchema and reading entries