curl --request GET \
--url https://api.myhamlet.com/v1/locations/{uuid}/government-bodies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.myhamlet.com/v1/locations/{uuid}/government-bodies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.myhamlet.com/v1/locations/{uuid}/government-bodies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.myhamlet.com/v1/locations/{uuid}/government-bodies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.myhamlet.com/v1/locations/{uuid}/government-bodies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.myhamlet.com/v1/locations/{uuid}/government-bodies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.myhamlet.com/v1/locations/{uuid}/government-bodies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "c30d2f7e-9a1b-4c5d-8e6f-0a1b2c3d4e5f",
"location_uuid": "5f2b0c3a-1d4e-4a8b-9f6d-2a1c3e4b5d6f",
"parent_uuid": "a7c1e4d2-3b5f-4e6a-8c9d-1f2e3a4b5c6d",
"type": "CITY_COUNCIL",
"name": "City Council",
"created_at": "2025-01-10T00:00:00.000Z",
"updated_at": "2026-04-18T12:05:00.000Z"
}
],
"next_cursor": "eyJ1IjoiMjAyNi0wNS0wMSAxODoyMjoxMCIsImkiOjQyfQ"
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}List a location's government bodies
Returns a cursor-paginated list of the government bodies (city councils, planning commissions, …) for one location, ordered by last update (oldest first) so you can sync incrementally. Page forward by passing the previous response’s next_cursor as cursor. Pass updated_since to return only bodies changed at or after that time; it composes with the cursor. Returns 404 if the location does not exist or your API key is not entitled to it.
curl --request GET \
--url https://api.myhamlet.com/v1/locations/{uuid}/government-bodies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.myhamlet.com/v1/locations/{uuid}/government-bodies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.myhamlet.com/v1/locations/{uuid}/government-bodies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.myhamlet.com/v1/locations/{uuid}/government-bodies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.myhamlet.com/v1/locations/{uuid}/government-bodies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.myhamlet.com/v1/locations/{uuid}/government-bodies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.myhamlet.com/v1/locations/{uuid}/government-bodies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"uuid": "c30d2f7e-9a1b-4c5d-8e6f-0a1b2c3d4e5f",
"location_uuid": "5f2b0c3a-1d4e-4a8b-9f6d-2a1c3e4b5d6f",
"parent_uuid": "a7c1e4d2-3b5f-4e6a-8c9d-1f2e3a4b5c6d",
"type": "CITY_COUNCIL",
"name": "City Council",
"created_at": "2025-01-10T00:00:00.000Z",
"updated_at": "2026-04-18T12:05:00.000Z"
}
],
"next_cursor": "eyJ1IjoiMjAyNi0wNS0wMSAxODoyMjoxMCIsImkiOjQyfQ"
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found."
}
}Authorizations
Path Parameters
Query Parameters
Inclusive lower bound on updated_at (ISO-8601 with a UTC Z or numeric offset, e.g. 2026-05-01T18:22:10Z). Returns only records changed at or after this time, ordered and paged exactly like a normal request — pass it alongside cursor to sync incrementally. A malformed or offset-less timestamp returns 400.
"2026-05-01T18:22:10Z"