---
title: "Export Layer Features"
method: GET
path: "/api/v1/table/{layer_id}/export"
tags: ["table"]
---

# Export Layer Features

`GET /api/v1/table/{layer_id}/export`

Stream the filtered layer rows as CSV or XLSX.

Replaces the page-scoped client-side export for SSR-backed layers.
Row shaping mirrors ``client/src/components/Table/csvExportUtils.ts``
— contact/tenant sub-field expansion, reasoning columns, and a
``Favorited`` column when requested. Exceeding
``settings.MAX_EXPORT_ROWS``, or the exporting workspace's cumulative
parcel-export budget, returns 413 before any byte streams.

Licensed-parcel exports additionally tee each streamed row's
``feature_id`` into the ``layer_export_features`` provenance log,
persisted by the same completion hook that finalizes the audit row.

## Query parameters

- `token` string, nullable — Firebase ID token for MVT authentication
- `startRow` integer, nullable
- `endRow` integer, nullable
- `sortModel` string, nullable
- `filterModel` string, nullable
- `filterId` string, uuid, nullable
- `groupKeys` string, nullable
- `rowGroupCols` string, nullable
- `searchText` string, nullable
- `geometry` string, nullable
- `favoritesOnly` boolean, nullable
- `format` 'csv' | 'xlsx', nullable
- `columns` string, nullable
- `includeReasoning` boolean, nullable
- `includeProvenance` boolean, nullable
- `selectedContactFields` string, nullable
- `includeFavorites` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/maia-analytics/apis/maia-api.md) · [All operations](https://skmtc.net/maia-analytics/apis/maia-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia-analytics/maia-api/versions/c5094ff58a23/schema)
