---
title: "Preview Territory"
method: POST
path: "/api/v3/territories/preview"
tags: ["Territories"]
---

# Preview Territory

`POST /api/v3/territories/preview`

Stateless resolve → count + 25-row sample. No writes, auth-only.

## Request body

- UserProfileInstitutionFilter
  - `id` string, uuid, nullable
  - `visibility` 'private' | 'organization'
  - `type` 'institution_type' | 'institution_list', required
  - `payload` union, required
    - InstitutionTypePayload
      - `name` string, nullable
      - `institution_type` string, nullable
      - `account_types` string[], nullable
      - `states` string[], nullable
      - `counties` string[], nullable
      - `cities` string[], nullable
      - `population_min` integer, nullable
      - `population_max` integer, nullable
      - `search_query` string, nullable
    - InstitutionListPayload
      - `institution_ids` string[]
      - `name` string, required
      - `original_filename` string, nullable
      - `original_filter` InstitutionTypePayload
        - `name` string, nullable
        - `institution_type` string, nullable
        - `account_types` string[], nullable
        - `states` string[], nullable
        - `counties` string[], nullable
        - `cities` string[], nullable
        - `population_min` integer, nullable
        - `population_max` integer, nullable
        - `search_query` string, nullable

## Response `200`

Successful Response

- TerritoryPreviewResponse
  - `count` integer, required
  - `sample` TerritoryAccountItem[], required
    - `unique_id` string, required
    - `name` string, nullable, required
    - `city` string, nullable, required
    - `state` string, nullable, required
    - `county` string, nullable, required
    - `population` number, nullable, required
    - `source_table` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/nationgraph/apis/nationgraph-api.md) · [All operations](https://skmtc.net/nationgraph/apis/nationgraph-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nationgraph/nationgraph-api/revisions/85804e68d86d/schema)
