Analysis Preview Endpoint
const url = 'https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/analysis/preview/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"distance_meters":1,"mask":{},"mask_dataset_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","operation":"buffer"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/analysis/preview/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "distance_meters": 1, "mask": {}, "mask_dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "operation": "buffer" }'Run a parameterized PostGIS operation and return a GeoJSON preview.
Synchronous, read-only, and capped: results are for on-map preview, not persistence — use the materialize endpoint to save output as a dataset.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”Parameters for a synchronous analysis preview.
Deliberately flat (no discriminated union) so SDK generators keep the endpoint; per-operation requiredness is enforced by the validator.
Responses
Section titled “ Responses ”Successful Response
GeoJSON FeatureCollection preview of an analysis operation.
object
object
Example generated
{ "bbox": [ 1 ], "feature_count": 1, "geojson": {}, "source_feature_count": 1, "truncated": true}Bad request — invalid payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request