---
title: "Get Shared Project Views"
method: GET
path: "/api/v1/share/{share_token}/views"
tags: ["share"]
---

# Get Shared Project Views

`GET /api/v1/share/{share_token}/views`

Get all views for a shared project.

Per-view state is keyed by layer id (filters, column visibility/order,
layer visibility), so state for share-restricted (parcel) layers is
stripped from each view — otherwise a shared view leaks the parcel
layer's column keys and the user's filter values even though the layer
is omitted from the shared layer list.

Args:
    share: Validated ProjectShare from token
    share_service: ProjectShareService for fetching view data
    layer_service: Service resolving which layers are share-restricted

Returns:
    List of views with filters converted to client display units

Raises:
    HTTPException: 404 if project not found

## Path parameters

- `share_token` string, required

## Response `200`

Successful Response

- ViewsGetResponse — Response model for getting project views. Attributes: views: List of view models
  - `views` ViewModelOutput[], required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable
    - `layerFilters` object
    - `mapFilters` MapFilterModel — Model for a map filter (spatial filter)
      - `geometries` object[], required
      - `type` 'intersects', required
    - `layerColumnVisibility` object
    - `layerColumnOrder` object
    - `layerColumnPinned` object
    - `layerColumnSort` object
    - `layerColumnWidths` object
    - `layerGroupByColumn` object
    - `layerVisibility` object, nullable
    - `layerViz` object, nullable
    - `basemap` string, nullable
    - `currentLayerId` string, nullable
    - `isEditable` boolean, nullable
    - `showFavoritesOnly` boolean
    - `version` integer

## 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)
