Documentation menu
GET/v1/territories/{id}/index.json
Access and price
| Auth | An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused. |
|---|---|
| Price | 1 call per request. Class: standard. Published as unit_rules.default in /pricing.json. |
What it does
Custom regions are not listed in the country index: each is a
one-territory channel signed by the region key, so one caller's areas
never appear in another's catalogue. A device passes these bytes and
get_region_index_sig to install_from_channel /
check_for_update exactly as it would the country index.
Call it
curl -fsS -X GET "https://api.mapmap.ai/v1/territories/{id}/index.json" \
-H "Authorization: Bearer $MAPMAP_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes | Custom-region territory id, region- plus 16 hex characters |
Responses
| Field | Type | Required | Description |
|---|---|---|---|
| format_version | integer | no | Index format version. |
| generated_at | string | no | When the index was generated. |
| territories | object[] | no | Territories: id, display_name, latest_version,
data_updated, and versions with each version's
manifest_path, data_timestamp and total_bytes. |
Example: Recorded from the hosted gateway on 2026-11-05 with a test key: GET /v1/territories/region-826ac4cb2eb8175a/index.json (an internal test region); lists trimmed to their first items
{
"format_version": 1,
"generated_at": "2026-10-30T22:28:56.729007062Z",
"territories": [
{
"data_updated": "2026-10-28",
"display_name": "Custom region (Russia)",
"id": "region-826ac4cb2eb8175a",
"latest_version": "2026.1030.2001",
"versions": [
{
"data_timestamp": "2026-10-28T21:21:02Z",
"manifest_path": "territories/region-826ac4cb2eb8175a/2026.1030.2001/manifest.json",
"total_bytes": 148280600,
"version": "2026.1030.2001"
}
]
}
]
}unauthorized); the body carries signup, docs and a one-call hint for a free keyapplication/problem+json · Problem
X-PAYMENT). Not problem+jsonapplication/json · X402PaymentRequired
scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)application/problem+json · Problem
application/problem+json · Problem
rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)application/problem+json · Problem
request-timeout)application/problem+json · Problem
Error bodies follow the shared problem model documented on API conventions.
Also under Offline territories
Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId get_region_index