Skip to main content

Jurisdiction

1. Introduction

This API allows users to retrieve data from the Infrastructure Module, facilitating data collection and filtering infrastructure and GIS data.

Learn about the infrastructure related to jurisdiction and municipality in this video:

TES Cloud Integration Part 2: Jurisdictions


2. Authentication

Obtain an authentication token by following the steps outlined in the authentication section. This token will be used in the request header for subsequent API calls.


3. Sending a Request

GET requests should be made to the Infrastructure endpoint. Ensure the token from the Authentication step is included in the request header.

Sample Request Header:

Authorization: Bearer [authentication_token]
Content-Type: application/json

4. Sample Response

{
"id": "e3a305bf-4b87-4d99-bfc6-03146e99f66b",
"errorMessages": [],
"responseCode": 200,
"results": {
"municipalities": [
{
"id": "755a45f3-73f7-f5bd-6b25-efeb9f504387",
"name": "Richmond Hill"
},
{
"id": "755a46ad-c3fe-f716-efd4-08a74f9a4387",
"name": "Vaughan"
},
{
"id": "755a4f66-d611-0a71-b7d3-146d7d0a4387",
"name": "Toronto"
},
{
"id": "755a4b3a-fe8b-894e-a2e2-8b6e22424387",
"name": "Georgina Island"
},
{
"id": "755a4b53-497e-8776-5bad-6c729a8e4387",
"name": "Whitchurch-Stouffville"
},
{
"id": "755a416e-d0be-64c5-9400-e5e61ef84387",
"name": "Aurora"
},
{
"id": "755a42ed-cc19-53e8-a482-a9ddf4284387",
"name": "Markham"
},
{
"id": "755a4534-4e91-c2b6-7b8e-2c8136004387",
"name": "Newmarket"
},
{
"id": "755a4541-03e4-b8de-f3a5-af1705654387",
"name": "Peel Region"
},
{
"id": "755a4587-79f7-efd3-720b-94311fe44387",
"name": "East Gwillimbury"
},
{
"id": "755a466d-0e98-8bcb-4671-f67892474387",
"name": "King"
},
{
"id": "755a4860-d6e2-8590-4985-ac44b3af4387",
"name": "Georgina"
}
],
"jurisdictions": [
{
"id": "755a4fce-60f9-4d3f-8139-dc0da3454387",
"name": "Township"
},
{
"id": "755a4746-c614-4ce6-8f4f-a4faa5d24387",
"name": "Regional municipality"
},
{
"id": "755a4839-702d-4f89-93c7-2262f7774387",
"name": "Federal"
},
{
"id": "755a49a3-d7a5-4527-9e79-597e39354387",
"name": "Municipal (excl. Twp. Rd.)"
},
{
"id": "755a4391-dfa3-4dd6-9569-125d12914387",
"name": "Private property"
},
{
"id": "755a45e8-ffb2-4cad-b3e9-1c9858bb4387",
"name": "Other"
},
{
"id": "755a4589-6415-4e9d-917c-ffc7dea04387",
"name": "Provincial Highway"
},
{
"id": "755a48d3-de71-490c-91ee-ffdfa0f34387",
"name": "County or district"
}
]
}
}

Integration Sample

You can access the samples here.