Kruno Maps API

Open the map

Getting a key

The API lets your company's own systems (billing, reporting, a GIS sync) read your map data. It is read-only.

  • An administrator of your company opens User admin → Apps → New app, gives it a name and chooses which layers it may read (or everything its owner can read).
  • The key (gak_ followed by 43 characters) is shown once. Store it like a password, in your system's secret store, never in code or a shared document. Only a fingerprint of it is kept on our side, so nobody can show it again.
  • An app reads with its owner's rights, never more: if the owner loses access to a layer, so does the app. The key works only while the owner holds a licence in your company.
  • Lost or leaked key: Rotate gives a new one and the old one stops at once. Revoke ends the app for good.
  • Your company can have as many active app keys as it has licences.

Authentication

Send the key in the Authorization header of every request, over HTTPS:

Only the routes on this page answer an app key. Any other route answers 404, as if it did not exist. A layer the app was not given answers 404 too. A missing, wrong, rotated or revoked key answers 401.

Do not retry a 401 in a loop: fix the key. Many failed requests from one address are blocked for a while.

Limits

  • Per key: 120 requests per minute and 20,000 per day (your platform administrator can change them for your company).
  • Over a limit the answer is 429 with a Retry-After header (seconds). Wait that long, then go on.
  • Opening the change stream (GET /api/v1/changes/stream) counts as one request, however long it stays open. A stream ends by itself after about 30 minutes; connecting again is the next request. Keep one stream open rather than opening many.
  • Exports and NDJSON streams also share a few long-read slots: when they are all busy the answer is 503 busy with Retry-After.
  • Large reads: page through with limit/after, or stream with stream=ndjson, rather than many small calls.
import time, requests

def get(url, **kw):
    while True:
        r = requests.get(url, headers={"Authorization": "Bearer " + KEY}, timeout=120, **kw)
        if r.status_code in (429, 503):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r

Paging

GET /api/v1/layers/{key}/features pages by key: limit (default 1,000, at most 10,000) and after = the next of the previous answer. next is null on the last page. Rows added or removed between pages never make a page repeat or skip a row that existed all along. With order=field,-field the next belongs to that order.

To read everything at once, stream=ndjson sends one feature per line with no paging.

Filters

The feature list, /count, /extent and /values take the same filters, combined with AND:

ParameterMeaning
f.status=Activefield equals the value (field names are exact and case-sensitive)
f.size:in=48F,96Fone of the values; also :ne, :gt, :gte, :lt, :lte, :like, :ilike
f.note:null=truefield is empty (or false: not empty)
bbox=-81.2,38.1,-81.0,38.3features in a box (west, south, east, north; bbox_srid 4326 by default)
intersects=POLYGON((...))features touching a WKT or GeoJSON geometry
fields=id,nameonly these properties; geom_format=none leaves the geometry out
srid=4326coordinates in WGS 84 longitude/latitude (default), or 3857

An unknown field or parameter is a 400 that names it.

Errors

Errors are application/problem+json:

{"type": "about:blank", "title": "Not Found", "status": 404, "code": "layer_not_found", "detail": "no such layer"}

Use code in your program (it is stable), detail in your logs.

StatusWhat to do
400Fix the request (bad_filter, bad_parameter, ...).
401The key is missing, wrong, rotated or revoked, or its owner has no licence. Do not retry.
404No such route, layer or feature, or one the app may not read.
429Over a limit: wait Retry-After seconds.
503Busy or starting: wait Retry-After seconds.
5xxOur side: retry later with a growing pause.

Versioning

Everything under /api/v1 stays stable: we may add routes, parameters and fields to answers, never remove or change them. Your code should ignore fields it does not know. A breaking change comes only as /api/v2, announced in advance, with /api/v1 kept running alongside for a transition period.

AI / MCP: connect your AI assistant

Your own AI assistant (Claude, ChatGPT, Microsoft Copilot, Cursor, VS Code, your own agents) can work with your map data through the Model Context Protocol (MCP): answer questions, search and analyse, and, if your company allows it, edit features and undo changes. Nothing to install on your side.

  • Your company decides. AI access is off until an administrator switches it on (User admin → AI access), at the level read, or read and edit, optionally only for some groups.
  • The assistant is you. It never does more than you may do yourself in Kruno Maps, never sees another company's data, and every change it makes is recorded as yours "via" the assistant and can be undone.
  • Switching AI access off, or disconnecting, stops the assistant at once.

Apps that can sign in (most of them)

Add a custom connector (or "MCP server") with this address and click Connect:

Our sign-in page opens (password or e-mail link, as usual), then asks you to allow the app for one of your companies. That is all. Where the app lets you choose, pick the transport Streamable HTTP and sign-in OAuth.

ChatGPT: write actions need a Business, Enterprise or Edu workspace; on other plans ChatGPT may offer only reading tools. That is ChatGPT's rule, not ours.

Tools without sign-in: a personal AI token

For your own scripts, agents and tools that cannot sign in by themselves, make a personal AI token below (only when your company allows personal AI tokens) and send it in the Authorization header. An AI token works only at the MCP address, never on the rest of the API, and an ordinary API token or app key does not work at the MCP address.

Your AI tokens and connections

Loading…

Loading the route reference…

Changelog

DateChange
2026-11-25AI / MCP: connect your own AI assistant; personal AI tokens.
2026-11-17First version: app keys and the read-only v1 routes on this page.