Territories let you divide your canvassing area into named geographic zones and assign them to individual reps. Each territory stores a polygon as an array of coordinate pairs, a total property count, and an optional assignee. You can use the territories API to automate territory creation from your own mapping tools, sync assignments from a dispatch system, or simply read back the shapes your team has drawn in the web dashboard.
List territories
Returns all active territories for your company, ordered newest first.
Response
Returns an array of territory objects directly (not paginated).
Display name of the territory.
Array of [lng, lat] coordinate pairs forming a closed ring. Minimum 3 points.
Estimated number of properties within this territory.
ID of the user assigned to this territory, or null if unassigned.
ISO 8601 creation timestamp.
ISO 8601 last-updated timestamp.
Create a territory
All fields are optional. name defaults to "Untitled Territory", polygon defaults to [], and totalProperties defaults to 0 if omitted.
Request body
Display name. Defaults to "Untitled Territory" if not provided.
Array of [lng, lat] coordinate pairs. Must have at least 3 points to define a valid polygon.
Integer count of properties inside the territory boundary.
ID of the user to assign this territory to. Pass null to leave unassigned.
Returns 201 with the created territory object on success.
Get a territory
Returns a single territory. Returns 404 if it does not exist or belongs to a different company.
Path parameters
Update a territory
All body fields are optional. Only the fields you send are updated.
Path parameters
Request body
Replacement polygon. Must have at least 3 [lng, lat] pairs.
New assignee user ID. Pass null to unassign.
Delete a territory
Deletes the territory. The record is excluded from list responses immediately but is not permanently destroyed.
Path parameters
Returns { "id": <number> } on success.