Skip to content

Serve a binding's preview snapshot (committed definition)

GET
/api/workspaces/{workspaceId}/apps/{id}/bindings/{name}/snapshot
curl --request GET \
--url http://localhost:8080/api/workspaces/example/apps/example/bindings/example/snapshot \
--cookie auth_session=<auth_session>

The first N rows of the committed binding’s stored parquet, in build order (schema + total row count), for useQuery(name, { snapshot: true }) to paint before DuckDB-WASM loads. 404 when the binding was never built, was built before snapshots existed, or has a column type a snapshot cannot carry — callers wait for the parquet.

workspaceId
required
string
id
required
string
name
required
string

Successful response

Media typeapplication/json
object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
error
string

Example

{
"message": "Operation completed",
"error": "Error message"
}

Invalid request

Media typeapplication/json
object
success
boolean
error
string

Example

{
"error": "Error message"
}

Internal server error

Media typeapplication/json
object
success
boolean
error
string

Example

{
"error": "Error message"
}