---
search:
  tags:
    - customers
    - GET
seo:
  description: >-
    Group active customers with addresses into canvassing… Reference for the GET
    /workspaces/{organizationId}/customers/territories endpoint in the Pile API.
sidebar:
  label: List customer territories
  badge: GET
title: List customer territories
type: openapi-operation
---
Group active customers with addresses into canvassing territories (neighborhood field, then borough / postal code / city parsed from the address). Stops inside each territory sort by street name then house number so a field rep gets a ready-to-walk route list per neighborhood.

`GET /workspaces/{organizationId}/customers/territories`

**Responses**

- `200` — Canvassing territories with ordered stops

Response example, 200:

```json
{
  "territories": [
    {
      "key": "string",
      "label": "string",
      "count": 0,
      "dueCount": 0,
      "stops": [
        {
          "id": "string",
          "name": "string",
          "address": "string",
          "phone": "string",
          "streetName": "string",
          "houseNumber": 0,
          "priorityScore": 0,
          "nextStepDueAt": "string"
        }
      ]
    }
  ]
}
```
