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.
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, webhookentry.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.
Related
Storage
Required S3-compatible bucket for uploads
Compositions
databaseSchema and reading entries