---
title: "List locations"
method: GET
path: "/v1/location"
tags: ["Locations"]
---

# List locations

`GET /v1/location`

## Query parameters

- `limit` integer
- `cursor` string, nullable
- `reference_key` string, nullable
- `market_id` string, nullable

## Response `200`

OK

- ListLocationsResponse
  - `locations` LocationWithAttributesExternalSchema[], required
    - `id` string, required
    - `address_1` string, required
    - `address_2` string, nullable, required
    - `city` string, required
    - `state` string, required
    - `zip_code` string, required
    - `lat` number, nullable, required
    - `lon` number, nullable, required
    - `reference_key` string, nullable, required — Optional unique identifier for this location in your system.
    - `market_id` string, nullable, required — ID of the market this location belongs to.
    - `market_name` string, nullable, required — Deprecated: prefer market_id. Name of the geographic market this location belongs to.
    - `custom_fields` object, nullable, required — Arbitrary key-value metadata. Supports partial updates.
    - `attributes` AttributeValueExternalSchema[] — Attribute values recorded for the property. Only attributes with recorded values appear; cleared values are omitted. Replace the entire list when syncing instead of merging by `slug`.
      - `attribute_id` string, required — ID of the attribute definition. It remains the same when the recorded value changes.
      - `attribute_slug` string, required — Stable key for the attribute within your organization. Use it to match attributes; display names can change.
      - `value_type` string, required — The attribute's declared type, which fixes how `value` is encoded. Current types are `bool`, `int`, `float`, `decimal`, `string`, `dimension_2d`, and `json_object`. A `decimal` is serialized as a string to preserve precision. A `dimension_2d` is a `[length, width]` pair, with the unit given in `unit`. New types may be added; handle unrecognized types.
      - `value` union, required — The recorded value, encoded according to `value_type`. A null value means the value was recorded as explicitly none, distinct from the attribute being absent from the list.
        - boolean
        - integer
        - number
        - string
        - JsonValue[]
          - unknown
        - object
      - `unit` string, nullable, required — Unit of measure for `value`, e.g. `inches` for a `dimension_2d`. Null when the value carries no unit.
      - `reasoning` string, nullable, required — Short explanation of how the value was determined. Null when none was recorded.
      - `evidence` ImageEvidenceExternalSchema[] — Images supporting the value, in ranked order, captured by the visit that last recorded it (`recorded_by_visit_id`).
        - `type` 'image'
        - `image_id` string, required — Use with the Get Image endpoint to retrieve the image file.
        - `reference_key` string, nullable
        - `visit_id` string, nullable — The visit this image was captured during.
        - `is_selected` boolean — Whether this image was explicitly selected as evidence.
        - `is_starred` boolean — Whether this image was starred as the primary evidence photo.
      - `recorded_by_visit_id` string, nullable, required — The most recent completed visit that recorded this value, including a visit that recorded it unchanged. Null when the value was recorded outside a visit.
      - `recorded_at` string, date-time, nullable, required — When the value was last recorded: the recording visit's completion time, or the time of the write for a value recorded outside a visit.
  - `next_cursor` string, nullable, required

---

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