Skip to content
Documentation menu
docs / conventions · raw .md

API conventions

The cross-cutting rules that every endpoint follows: base URL, authentication, coordinate order, units, quotas, and the error envelope. Other pages link here rather than repeating any of it. The machine-readable contract is always GET /openapi.json on your deployment; where prose and OpenAPI disagree, OpenAPI wins.

Base URL and availability

The hosted gateway's base URL is https://api.mapmap.ai.

Status, honestly: the hosted gateway is live: sign up for a key and every endpoint on these pages works today. Everything also runs identically against a self-hosted deployment of the same gateway: same endpoints, same error envelope, same keys. Examples throughout the docs use an exported base so they work against either:

sh
export BASE=https://api.mapmap.ai   # or your own deployment's origin
export API_KEY=snk_...

Authentication

Metered endpoints take an API key (prefix snk_) either way:

ini
Authorization: Bearer snk_...      # preferred
?api_key=snk_...                   # query parameter, for clients that
                                   # cannot set headers (e.g. tile URLs)

The Authorization header wins when both are present. A missing, malformed, unknown, revoked or expired key is a 401 problem (urn:sn-gateway:problem:unauthorized) whose detail says which.

Unauthenticated endpoints (no key needed):

  • GET /, GET /health, GET /openapi.json, GET /llms.txt, GET /terms, GET /v1/platform and GET /v1/apps/{app}/status
  • POST /v1/keys (self-serve signup) and the magic-link verification it sends: GET and POST /v1/keys/verify, POST /v1/keys/verify/details and POST /v1/keys/verify/deny
  • OAuth for agent clients: GET /.well-known/oauth-authorization-server, POST /oauth/register and POST /oauth/token
  • GET /styles/{spec} and GET /styles/{spec}/theme: compiled style reads are public so browser map clients can reference them by bare URL (the GET /styles listing is key-authenticated and scoped to your own styles, and publishing styles is authenticated and metered)
  • GET /fonts/{fontstack}/{range} and GET /sprite/{file}: glyphs and sprites, fetched by bare URL from compiled styles, and GET /avatars/{version}/{path}: vehicle-avatar artwork

Each endpoint's page under /docs/api states whether it needs a key, whether a browser (maps) key may call it, and what it costs.

GET /v1/keys/self is key-authenticated but free: it consumes no quota, no credit and no rate limit, so agents can poll their own key state.

/admin/* endpoints (self-host only) use a separate static operator token as a bearer credential, never an snk_ key.

One optional header: SDKs may send X-MapMap-User to meter monthly active users on identity-owned keys. It is fail-open: MAU billing can never block or 402 a request.

Keyless demo access

A deployment can open a small, unauthenticated demo lane with SN_DEMO_RPM (requests per minute). It is off by default (0) on a self-host, and it is enabled on the hosted gateway at https://api.mapmap.ai, so the calls below work with no key at all. Everything else on the hosted gateway still needs one.

Requests with no API key to a fixed demo-safe whitelist are admitted instead of 401:

  • GET /route/v1/* (OSRM-compatible routing, all profiles)
  • GET /geocode
  • GET /geocode/reverse
  • GET /geocode/suggest
  • GET /geocode/retrieve

Every other endpoint, and any non-GET method (including POST /route), still returns 401 without a key.

Two limits apply, both keyed per client IP (the rightmost X-Forwarded-For hop, the one the proxy in front of the gateway wrote, else the peer address; the leftmost hop is caller-supplied and is never trusted):

  • a token bucket at SN_DEMO_RPM requests/minute, over which the answer is 429 rate-limited with Retry-After;
  • an optional daily cap, SN_DEMO_DAILY (0 disables it), over which the answer is 429 demo-daily-exceeded with Retry-After to UTC midnight and a pointer to free-key signup.

Premium work is never served keyless. A keyless call that engages the truck profile, vehicle dimensions, hazmat or an ADR tunnel_code is refused with a 401 naming the features it engaged, before the daily cap is spent, so the attempt costs you nothing.

Demo requests are never metered, billed, or drawn against any quota or prepaid ledger. Keyed requests are unaffected and are always metered to their own identity. The lane is a taste, not a tier: mint a free key (POST /v1/keys) for anything you intend to run more than once.

Coordinates and units

Bare coordinate pairs are always lon,lat: in the compatible URL path (/route/v1/{profile}/{lon},{lat};{lon},{lat}) and in GeoJSON output (isochrone contours). JSON request bodies use named fields instead: {"lat": 51.5, "lon": -0.1}.

Two exceptions take latitude first, and their own parameter docs say so: GET /v1/boundaries?near=lat,lon, and POST /v1/camera-incidents, whose near and camera_position are [lat, lon] arrays because the body is shared with the MCP tool of the same name.

WhereUnit
GET /route/v1/... responsesdistance metres, duration seconds
POST /matrix responsesdurations seconds, distances metres (null = unreachable)
POST /route responsestime seconds; length in the request's units (kilometres unless you ask for miles)
POST /isochrone contourstime in minutes or distance in kilometres (request)
Vehicle dimensionsmetres (height_m, width_m, length_m)
Vehicle weightsmetric tonnes (gross_weight_t, axle_load_t)
Vehicle speedkm/h
Offline download allowanceMiB per calendar month

Route geometry is encoded polyline: precision 6 on the native POST /route response's shape, precision 5 on the compatible GET /route/v1/... endpoint (matching each format's convention).

Waypoints per route: 500, on POST /route and on GET /route/v1/... alike. The routing engine takes only 20 per call, so a longer list is cut into consecutive stretches, routed concurrently and spliced into one continuous route: legs, manoeuvres and the summary are a true concatenation, not an approximation, because the engine already computes a multi-waypoint route as one independent search per pair of consecutive break waypoints and the cuts are only ever taken at those. Billing follows: one call per started block of 20 waypoints, so a 20-waypoint route is the single call it always was and a 500-waypoint route is 25.

Three shapes cannot be split faithfully and are refused with 422 route-not-splittable rather than approximated: a run of more than 20 consecutive through/via/break_through waypoints (the engine forbids a u-turn across those, and separate calls cannot), a time-dependent route (date_time type 0, 1 or 2: the engine carries each leg's arrival time into the next leg's departure, which separate calls cannot), and a request for alternates (an alternate is a variation of the whole journey, not of one leg). All three are fine at 20 waypoints or fewer, where nothing is split.

Avoiding areas and points

Three endpoints let you cut roads out of the search for one request, which is how you ask "if we shut this, what breaks" without editing your own copy of the map and rebuilding tiles.

FieldShapeMeaning
exclude_polygonsarray of rings, each an array of [lon, lat] pairsRoads intersecting any ring are removed from the search.
exclude_locationsarray of {lat, lon, heading?, heading_tolerance?, radius?} objectsEach point is mapped to its nearest road, and that road is removed (see below for one direction, a radius, and junctions).

Accepted on POST /route, POST /isochrone and POST /matrix. On the compatible GET /route/v1/{profile}/{coordinates} they are query parameters: exclude_polygons as a JSON array of rings, exclude_locations as ;-separated lon,lat pairs. Not accepted on /optimise, /route/along, /v1/fuel/along or /v1/charging/along, which ignore them.

Each exclude_locations point is matched to the road graph by the same search as POST /locate, so it takes the same optional fields:

  • heading (degrees clockwise from north) and heading_tolerance (degrees either side, default 60): close only the direction of travel within the tolerance. Without a heading the road is closed both ways. Measured: an exclusion at heading 210 (tolerance 45) on a two-way street made a route driving that way answer 400 with the engine's error 442 (no path) while the opposite direction still routed; at heading 30 it was the other way round.
  • radius (metres, default 0): close every road within the radius, not just the closest one. That takes both carriageways of a divided road, and any cross street within the radius too.
  • Junctions: a point within about 5 m of a junction snaps to the junction itself and closes every road meeting there, the cross street included. To close one street, put the point a little way along it, or give a heading along it.
json
"exclude_locations": [
  { "lat": 50.8253872, "lon": -0.1371350, "heading": 90, "heading_tolerance": 30 },
  { "lat": 50.8226, "lon": -0.1399, "radius": 15 }
]

Limits, each a 400 when exceeded:

LimitValue
Rings per request50
Total ring vertices per request500
exclude_locations per request50
Total ring perimeter per request10 km
Smallest ring area1 m² (a smaller ring is refused as degenerate)
sh
curl -fsS -X POST "$BASE/matrix" \
  -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "sources": [{ "lat": 52.192, "lon": -2.221 }],
  "targets": [{ "lat": 52.207, "lon": -2.243 }],
  "costing": "auto",
  "exclude_polygons": [[[-2.2245, 52.1918], [-2.2231, 52.1918], [-2.2231, 52.1929], [-2.2245, 52.1929]]]
}'

Two things worth knowing before you build on it. An exclusion is a hard cut, not a penalty, so it cannot express "avoid if reasonable"; and where an exclusion makes a destination unreachable, POST /matrix returns null for that cell while POST /route returns a 400 problem document rather than an empty route. Exclusions do not change what a request bills.

Result limits and paging

List answers are bounded rather than paged: limit sets how many results come back, and each endpoint's page under /docs/api states its default and maximum (for example GET /geocode takes at most 10, and GET /v1/jobs defaults to 20 and takes at most 100). One endpoint pages: GET /v1/voice/bank returns up to 1,000 clips per page with a next_after hash, which you send back as after for the next page.

Quotas and rate limits

Quotas are per identity (your email), shared across all of that identity's keys; issuing more keys does not multiply the quota.

LimitValue
Provisional key (before email verification)1,000 calls total, expires after 72 h
Verified free tier50,000 included calls per calendar month (a premium truck/ADR call draws 20; commercial use allowed)
Rate limit (self-served keys)60 requests per minute
Tile requests (/tiles/…), on their own bucket3,000 per minute per key; 60,000 for a browser (maps) key, which is also held to 6,000 per minute per client address
Voice clip synthesis (POST /v1/voice/clips), on its own bucket20 per minute per key
Active keys per identity5
Key issuances per IP3 per day

Beyond the free tier, calls draw prepaid credit at a per-call price with two classes: standard (car/van/bus/bike/pedestrian routing, matrix, isochrone, map matching; from 0.05p/call) and premium (anything truck/ADR: "costing": "truck", a top-level adr object, "hazmat": true, /adr/check, or the truck profile / truck query parameters on the compatible endpoint; from 1p/call). Included volume (the free tier and plans) is denominated in standard calls: one premium call draws 20 included calls, matching the price ratio; pay-as-you-go money is always priced by each class's own schedule. Requests bill by size where size varies: a matrix bills one call per started block of 25 elements (sources × targets, max 10,000 per request), an isochrone one call per contour (max 4), an optimisation 10 calls per started 2,500-pair block of its internal location-by-location matrix (10 up to 50 locations, 40 at 100, 160 at the 200-location cap), an along-route search a flat 10 calls (/route/along, /v1/fuel/along and /v1/charging/along, whatever max_results you ask for, up to the 25-candidate cap), /elevation one call per started block of 25 points, and /elevation/along a flat 5 calls. Prices step down with monthly volume; see /pricing.

Money rule: a request answered with a client error (4xx) is never charged to prepaid credit; the debit is refunded. Included quota follows a narrower rule: a 4xx that rejects the request itself (malformed, or over a cap) is returned to your quota, while a 4xx that followed real engine work, such as a NoRoute, still counts.

Hitting a limit gives you one of two 429s, or a 402; see the decision table below.

Errors

Every JSON endpoint answers errors as RFC 9457 application/problem+json, with one exception: the compatible GET /route/v1/... endpoint answers its own routing errors (InvalidQuery, InvalidValue, NoRoute, NoSegment, always 400) in the OSRM {"code": ...} error envelope, because compatible clients dispatch on code. Auth, quota and payment errors keep the shared formats even on the compatible path: 401 and 429 are problem+json, and beyond-tier 402s use the x402 body.

An example body: a monthly quota exhausted where the gateway has no payment offer to make, which is an operator-issued key, or a free-tier account on a deployment without machine payments. On the hosted service a free-tier account past its quota gets a 402 instead (see "402 or 429?" below):

json
{
  "type": "urn:sn-gateway:problem:quota-exceeded",
  "title": "Monthly quota exceeded",
  "status": 429,
  "detail": "monthly quota exceeded (50000/50000)",
  "quota": 50000,
  "used": 50000,
  "resets_at": "2026-12-01T00:00:00Z",
  "upgrade": "https://mapmap.ai/pricing",
  "upgrade_url": "https://mapmap.ai/pricing",
  "usage_url": "https://mapmap.ai/account",
  "topup": "https://mapmap.ai/account"
}

resets_at is the calendar-month reset. A period_ends field is added when the account has its own billing period.

type is a stable URN you can dispatch on; detail is for humans. Some problems carry extra machine-readable fields, noted below.

type (urn:sn-gateway:problem: +)StatusMeaningFix
unauthorized401Missing, malformed, unknown, revoked or expired keySend Bearer snk_...; reissue at POST /v1/keys
admin-unauthorized401Wrong admin token (self-host)Check the operator token
forbidden403Key valid but not permitted, e.g. a provisional key attempting a bulk territory-layer downloadVerify your email
bad-request400Invalid body or parametersdetail says what
costing-conflict400Your own costing_options contradict the adr profile; conflicting_fields lists themRemove the conflicting fields or make them agree
tos-not-accepted400Signup without "accept_tos": true; tos echoes the terms URLFetch the terms, re-submit with accept_tos: true
invalid-email400Rejected email (syntax or disposable domain)Use a real address
not-found404Unknown resourceCheck the id/path
key-cap409Identity already has the maximum active keys (max_active_keys)Revoke one or reuse an existing key
no-identity-ledger409Admin credit aimed at an operator-issued keyCredit the identity instead
invalid-theme422Style theme failed validation; problems lists each offending keyCorrect the named slot/layer and resubmit
optimisation-too-large422Problem exceeds the fair-use location cap of 200 unique locations (max_locations, locations)Split the problem
optimisation-beyond-solver422Optimisation problem inside the location caps but too large for the solver's cost arithmetic (solver_cost_terms); not billedSplit the problem
matrix-too-large422Matrix over the 10,000-element cap (max_pairs, max_square_locations, sources, targets, pairs)Split the request
matrix-span-too-large422The furthest source-to-target pair is beyond the engine's matrix span: 1,500 km on the hosted deployment, 400 km on a stock self-host (SN_ENGINE_MAX_MATRIX_DISTANCE_M; max_span_km, span_km)Narrow the study area; splitting the request does not help, because that pair is in whichever block it lands in
route-not-splittable422More waypoints than the engine takes in one call, and the route cannot be split faithfully: a long through/via run, a time-dependent (date_time type 0/1/2) route, or a request for alternatesdetail says which; make a boundary waypoint a break, drop date_time/alternates, or shorten the route
quota-exceeded429Monthly quota exhausted with no payment offer: an operator-issued key, an email-less key, or a free-tier account on a deployment without machine payments (quota, used, resets_at). The hosted service answers a free-tier account with 402 insteadTop up credit, upgrade, add an email to an email-less key, or wait for resets_at
rate-limited429Per-minute limit fired; retry_after seconds, also sent as a Retry-After headerBack off and retry
issuance-velocity429Too many key issuances from your IP today (limit_per_day)Come back tomorrow
internal500Unexpected failure; detail is logged server-side, never leakedRetry; report if persistent
upstream-error400/502Routing backend (or Photon geocoder) rejected the request (400 for an upstream 4xx, 502 otherwise; upstream_status)Check the request; else retry
geocoding-not-enabled501/geocode on a deployment with neither SN_GEOCODE_DIR nor SN_PHOTON_URL (self-host)Operator sets one of them
optimisation-not-enabled503Deployment has no VROOM sidecar configured (self-host)Operator sets SN_VROOM_URL
upstream-unavailable503Routing backend unreachableRetry
upstream-timeout504Routing backend timed outRetry

Every problem code

The table above explains the codes you are most likely to meet. This one lists every type the gateway can return, with its status and title, read from the gateway's error model (crates/sn-gateway/src/error.rs). Two of them answer in a body of their own rather than problem+json: payment-required and download-allowance-exceeded (the two 402s below). POST /oauth/token answers RFC 6749 error objects instead of any of these. One status comes from the server rather than the error model: 413, in plain text, when a request declares a body larger than 1 MiB. Each endpoint's page under /docs/api lists the statuses that endpoint can return.

type (urn:sn-gateway:problem: +)StatusTitle
bad-request400Bad request
costing-conflict400Conflicting costing options
fallback-unsupported400Fallback engine cannot honour this request
invalid-avoid400Avoid/exclude values rejected
invalid-email400Invalid email address
invalid-key-options400Key options rejected
invalid-latest400Bad request
invalid-run400Bad request
tos-not-accepted400Terms of service not accepted
unknown-voice400Unknown voice
unsupported-lang400Unsupported geocoding language
upstream-error400 or 502Upstream routing error
admin-unauthorized401Admin authentication failed
demo-premium-requires-key401Premium routing needs a key
unauthorized401Unauthorised
download-allowance-exceeded402Offline download allowance exceeded
payment-required402Payment required
forbidden403Forbidden
origin-not-allowed403Origin not allowed
scope-insufficient403Key scope insufficient
aurora-unavailable404Not found
not-found404Not found
run-not-found404Not found
method-not-allowed405Method not allowed
account-deletion-blocked409Account cannot be deleted yet
account-has-email409Account has an email
admin-conflict409Conflicts with the account's current state
email-in-use409Email already has an account
key-cap409Active key limit reached
key-has-email409Key already has an email
no-identity-ledger409No identity ledger
voice-not-ready409Voice not ready
webhook-secret-missing409No webhook signing secret
places-too-many413Too many places
batch-too-large422Batch too large
cluster-too-large422Clustering request too large
coverage-too-large422Coverage request too large
email-undeliverable422Email address cannot receive mail
invalid-places422Places validation failed
invalid-theme422Theme validation failed
matrix-span-too-large422Matrix spans too far
matrix-too-large422Matrix too large
no-roads-near-origin422No roads near this point
not-guidance-sentence422Not a guidance sentence
optimisation-beyond-solver422Optimisation problem too large for the solver
optimisation-too-large422Optimisation problem too large
region-area-too-large422Custom region refused
region-bbox-too-large422Custom region refused
region-crosses-territories422Custom region refused
region-no-data422Custom region refused
region-not-covered422Custom region refused
region-too-big422Custom region refused
region-unknown-boundary422Custom region refused
region-unknown-source422Custom region refused
route-not-splittable422Route cannot be split
console-link-velocity429Console link requests rate-limited
demo-daily-exceeded429Keyless demo cap reached
feedback-velocity429Integration-retro limit reached
global-issuance-velocity429Issuance temporarily rate-limited
issuance-velocity429Issuance velocity exceeded
jobs-pending-limit429Too many jobs in flight
map-issue-velocity429Map-issue report limit reached
quota-exceeded429Monthly quota exceeded
rate-limited429Rate limit exceeded
signin-velocity429Sign-in requests rate-limited
internal500Internal server error
admin-boundaries-not-enabled501Admin boundary lookup not enabled
boundaries-not-enabled501Boundaries by name not enabled
camera-incidents-not-enabled501Camera-verified incidents not enabled
cameras-not-enabled501Camera alerts not enabled
charging-not-enabled501EV charge-point search not enabled
clearance-not-enabled501Clearance not enabled
console-not-enabled501Console sign-in not enabled
coverage-not-enabled501Coverage planning not enabled
elevation-not-enabled501Elevation not enabled
events-not-enabled501Live Earth events not enabled
fuel-not-enabled501Fuel-price search not enabled
geocoding-not-enabled501Geocoding not enabled
incidents-not-enabled501Traffic-incident alerts not enabled
oauth-not-enabled501OAuth not enabled
observations-not-enabled501Route observations not enabled
way-positions-not-enabled501Way positions not enabled
reverse-filtering-not-enabled501Reverse filtering not enabled / Geocode index unreadable
space-weather-not-enabled501Space weather not enabled
structured-search-not-enabled501Structured search not enabled
suggest-not-enabled501Search-as-you-type not enabled
timezone-not-enabled501Timezone lookup not enabled
transit-not-enabled501Live bus positions not enabled / Bus stops and timetables not enabled
valhalla-only-feature501Not supported by this routing engine
voice-not-enabled501Voice guidance clips not enabled
weather-frames-not-enabled501Weather frames not enabled
weather-not-enabled501Weather-along-route not enabled
mail-unavailable503Mail delivery unavailable
observations-archive-unreadable503Basemap archive unreadable
optimisation-not-enabled503Optimisation not enabled
regions-not-enabled503Custom regions not enabled
upstream-unavailable503Upstream unavailable
request-timeout504Request timeout
upstream-timeout504Upstream timeout

The two 402s (not problem+json)

Two payment errors deliberately use plain application/json bodies instead of the problem envelope, because machine clients parse them directly:

  1. Payment required: the x402 wire format (x402Version, accepts, error). Returned when a request beyond the free tier cannot be paid: a provisional key past its 1,000 calls, a credited identity whose balance is below the per-call price, or a failed X-PAYMENT verification. Full shape and payment flows: machine payments.

  2. Download allowance exceeded: an offline territory-layer download would exceed the identity's monthly MiB allowance:

    json
    {
      "code": "download_allowance_exceeded",
      "allowance_mib": 8192,
      "used_mib": 2100,
      "message": "offline map download allowance exhausted; upgrade to a plan or the SDK licence for production downloads",
      "upgrade": "https://mapmap.ai/pricing"
    }
    

402 or 429?

You getWhen
402 (x402 body)A provisional key past its call allowance; a verified free-tier identity past its monthly quota wherever machine payments are configured, which includes the hosted service, whether or not it has ever bought credit; a credited identity with insufficient balance on any deployment; a rejected X-PAYMENT header
429 quota-exceededAn operator-issued key or an email-less key exceeds its quota; or, only on a deployment without x402 (machine payments), a free-tier identity that has never bought credit exceeds its monthly quota
429 rate-limitedAny key exceeds its per-minute rate limit (Retry-After header set)
402 (download body)An offline layer download would exceed the monthly MiB allowance

Rule of thumb: 429 means stop or wait; 402 means there is a way to pay: verify your email, top up, or attach an x402 payment. A client of the hosted service has to handle 402 as its out-of-quota signal: a verified free key past 50,000 calls gets a 402, never a 429 quota-exceeded. The full table by key state is in machine payments.

ADR and tunnel codes

ADR (the European agreement on carriage of dangerous goods by road; tunnel codes B–E restrict which tunnels a hazmat load may use). This section is the canonical reference the other pages link to.

Routing requests declare the load with a top-level adr object ("costing": "truck" required):

json
{
  "adr": {
    "dimensions": {
      "height_m": 4.0,
      "width_m": 2.55,
      "length_m": 16.5,
      "gross_weight_t": 40.0,
      "axle_load_t": 11.5,
      "axle_count": 5
    },
    "tunnel_code": "D",
    "hazmat": true
  }
}

axle_load_t and axle_count are optional. On the compatible GET /route/v1/... endpoint the same facts travel as query parameters: height, width, length, weight, hazmat, tunnel_code.

Semantics, worst-case by design:

  • "hazmat": false: the tunnel matrix does not apply; every tunnel is permitted (dimensional limits still apply).
  • "hazmat": true with no tunnel_code: treated as the most restrictive non-quantity code (B), since the load's code is unknown.
  • "tunnel_code": "(—)": the ADR "no restriction" entry, explicitly allowed through all tunnels.
  • Quantity- and tank-conditional codes (B1000C, B/D, ...) are read worst-case: the API cannot know your net explosive mass or whether the goods travel in tanks, so it assumes the restrictive reading.

If your request's own costing_options.truck values disagree with what the adr profile implies, the request is rejected with a 400 costing-conflict listing the fields; set them in one place or make them agree.

Tunnel categories (posted on the tunnel, A least to E most restrictive):

CategoryRestricts
ANo restrictions for dangerous goods
BGoods which may lead to a very large explosion
C... or a large explosion, or a large toxic release
D... or a large fire
EAll dangerous goods except UN 2919, 3291, 3331, 3359 and 3373

Tunnel restriction codes (assigned to the load, ADR 8.6.4):

CodePassage forbidden through
BCategories B, C, D and E
B1000CCategory B above 1,000 kg total net explosive mass per transport unit; always C, D and E
B/DCategories B and C when carried in tanks; always D and E
B/ECategories B, C and D when carried in tanks; always E
CCategories C, D and E
C5000DCategory C above 5,000 kg total net explosive mass per transport unit; always D and E
C/DCategory C when carried in tanks; always D and E
C/ECategories C and D when carried in tanks; always E
DCategories D and E
D/ECategory D when carried in bulk or in tanks; always E
ECategory E
(—)Nothing; allowed through all tunnels

To check a load without routing, POST /adr/check takes the same adr profile plus a tunnel_category ("A"–"E") and returns the entry decision for that tunnel; see the API reference.

Next steps