Platform
The database we host, in one file
A sample-data workspace or an agent's sandbox runs on a database SchemaStack hosts, so "your data is already in your own database" did not hold for them. Owners and admins can now download the whole database as plain SQL that restores into any PostgreSQL 15 or newer.
The export is a snapshot, not the exit makes one argument: the way out of SchemaStack is not an export button, because your data was in a PostgreSQL database you own all along. For most workspaces that is true. For two kinds it was not.
A sample-data workspace runs on a database SchemaStack creates for it, filled from a sample store. An agent's sandbox, the workspace an agent gets when it signs itself up, runs on an empty one. Both databases live on SchemaStack's server, and nobody is given a login for them. Until 20 November the only way to get data out of them was exporting one view at a time as a CSV.
Now there is a file.
What you download
On a workspace whose database SchemaStack hosts, Workspace → Settings → Database shows a Hosted Database card with Download database (.sql). You get the whole database in one file named after the workspace and the date: every table with its keys, constraints and indexes, and every row.
It is made with pg_dump as plain SQL, with --no-owner and --no-privileges. That is what makes it portable. The file contains no OWNER TO and no GRANT, which would name roles that exist on our server and not on yours. Whoever runs the restore owns what it creates.
createdb orders
psql -d orders -f sandbox-2026-11-26.sqlTo check the "any PostgreSQL 15 or newer" claim, we took the sample store, dumped it with the same pg_dump version and flags as production, and restored it into an empty PostgreSQL 15 and an empty PostgreSQL 17, with the restore set to stop at the first error. Neither stopped. Both came out with the same nine tables, the same row count in each, the same 25 constraints and the same 15 indexes.
Written first, sent second
The file is written to disk on our side before any of it is sent. That costs a moment before the download begins, and buys one guarantee: if pg_dump fails halfway, you get an error rather than a file that ends mid-table and looks finished.
Only owners and admins of the organisation can download. On a workspace that runs on your own database the answer is 409: that database is already yours, so you back it up with your own tools.
What it doesn't do (yet)
- Your SchemaStack configuration does not come along. The file is the PostgreSQL database and nothing else. Display names, widgets, formula columns, display groups, presets, row styles and validation rules live in SchemaStack's own database. Constraints that are in your database, such as keys,
NOT NULLandUNIQUE, are in the file; rules our API enforces, such as a pattern or a required field on a nullable column, are not. There is no export of the configuration either: the data ownership guide said it could be exported as JSON or YAML, and that was not true. The guide has been corrected. - It stops after 120 seconds. A database that takes longer to dump fails with "The download took longer than 120 seconds and was stopped", and there is no way to raise the limit yourself.
- It needs a person. The download takes a signed-in session; no MCP key or Workspace API key can fetch it. An agent cannot download its own sandbox, and nothing downloads it for you on a schedule.
- It is a copy, not a move. Downloading changes nothing on our side: the workspace keeps running on the hosted database.
- One format. Plain SQL only, so no
pg_restorecustom format with parallel or selective restore.
The data ownership guide covers what leaving looks like for every kind of workspace, and bring the database you already have covers pointing a workspace at a database of your own.
Verified 26 Nov 2026: The endpoint is covered by AgentSignupIntegrationTest.hostedDatabaseDownload, green 2026-11-26 — an owner gets a pg_dump file with CREATE TABLE and COPY statements and no OWNER TO, and the same workspace switched to its own database is refused with 409. The restore was checked by hand on 2026-11-26 with the version production uses — the sample store dumped by pg_dump 16.16 with the endpoint's flags (--no-owner --no-privileges --format=plain), then restored with psql -f and ON_ERROR_STOP=1 into an empty PostgreSQL 15.19 and an empty PostgreSQL 17.12. Both finished without an error and matched the source on all nine tables' row counts, 25 constraints and 15 indexes. The 120-second limit and the temporary file are read from HostedDatabaseDump. That no export of SchemaStack's own configuration exists was checked against the API and both apps..