Skip to content
Documentation menu
docs / api / post-adr-check
ADR

POST/adr/check

Access and price

AuthAn API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Needs a full key; a browser (maps) key is refused.
Price1 call per request. Class: premium. Published as unit_rules.default in /pricing.json.
PremiumAlways: ADR compliance is Premium by path

What it does

ADR tunnel-entry compliance check.

An API key, as Authorization: Bearer snk_… or ?api_key=snk_…. Metered. Price: 1 call per request.

Call it

bash
curl -fsS -X POST "https://api.mapmap.ai/adr/check" \
  -H "Authorization: Bearer $MAPMAP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adr":{"dimensions":{"gross_weight_t":40,"height_m":4,"length_m":16.5,"width_m":2.55},"hazmat":false,"tunnel_code":"C/E"},"tunnel_category":"D"}'

Request body

application/json · AdrCheckRequest

ADR vehicle profile plus the tunnel category to check

FieldTypeRequiredDescription
adrAdrVehicleProfileyesThe vehicle profile and dangerous-goods declaration.
tunnel_categorystringyesThe ADR category of the tunnel to check.

Example: A request assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "adr": {
    "dimensions": {
      "gross_weight_t": 40,
      "height_m": 4,
      "length_m": 16.5,
      "width_m": 2.55
    },
    "hazmat": false,
    "tunnel_code": "C/E"
  },
  "tunnel_category": "D"
}

Responses

200Compliance decision under the worst-case ADR 8.6.4 reading
FieldTypeRequiredDescription
reasonstringnoPresent when blocked: a human-readable explanation citing ADR 8.6.4.
statusstringyesallowed or blocked.

Example: A response assembled from this schema's own field examples, enums, defaults and types; not a recorded call

json
{
  "status": "blocked"
}
400Invalid profile or tunnel category

application/problem+json · Problem

401Missing or invalid API key. Also: No key, or a missing, malformed, unknown, revoked or expired one (unauthorized); the body carries signup, docs and a one-call hint for a free key

application/problem+json · Problem

402Beyond the included volume with no way to pay this call: an x402 body naming how to pay (provisional key past its allowance, prepaid balance below the price, or a rejected X-PAYMENT). Not problem+json

application/json · X402PaymentRequired

403The key may not call this: a browser key outside its scope (scope-insufficient), a request from an origin the key does not allow (origin-not-allowed), or an account restriction (forbidden)

application/problem+json · Problem

413The request declares a body larger than 1048576 bytes (plain text, not problem+json)

text/plain

429Quota or rate limit exceeded. Also: Per-key rate limit (rate-limited, with Retry-After), or monthly quota exhausted with no payment path (quota-exceeded)

application/problem+json · Problem

504The request did not finish within the gateway's request deadline (request-timeout)

application/problem+json · Problem

Error bodies follow the shared problem model documented on API conventions.

Generated from https://api.mapmap.ai/openapi.json on 2026-11-12 · operationId post_check