Skip to main content

CityCode API

Minneapolis Code of Ordinances, for your agents

Grounded, citation-backed answers over Minneapolis Code of Ordinances — as a single authenticated POST. Build it into any agent in minutes. Start free, subscribe when you scale.

One request

curl -X POST https://citycodeassistant.com/api/v1/citycode/query \
-H "Authorization: Bearer cck_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"question": "What is the maximum height for a detached accessory structure?"}'

Pricing

Free

Start building in minutes.

  • 25 API queries / day
  • Grounded, citation-backed answers
  • Full OpenAPI spec
  • For evaluation & low volume

Pro

Unlimited queries · billed monthly.

  • Unlimited API queries
  • Grounded, citation-backed answers
  • Priority throughput
  • Self-serve billing & invoices

Price shown at checkout.

Reference

Authentication

Pass your key as a bearer token: Authorization: Bearer cck_live_…. Keys are created and revoked in your dashboard. The full key is shown once at creation — store it securely.

Endpoints

POST/api/v1/citycode/queryAsk a municipal-code question (auth required).
GET/api/v1/citycode/healthLiveness probe (no auth).
GET/api/v1/citycode/openapi.jsonMachine-readable OpenAPI 3.1 spec.

Errors

401 unauthorizedMissing or invalid API key.
400 validation_errorBody missing `question` or it exceeds 2000 chars.
429 RATE_LIMITEDFree-tier daily limit reached — subscribe to Pro.
500 internal_errorTransient service error — retry with backoff.

Every error returns JSON { "error", "message" }. Branch on the stable error code.

Ready to build?

Get an API key
Indexed from public municipal sources. General information only — not legal, engineering, or professional advice. Last indexed 2026-06-15.
Answers and figures are AI-generated or hand-transcribed and may be inaccurate or out of date. Independently verify against the current code and with the authority having jurisdiction before construction or filing. Use is at your own risk.
A reference work by Telesto Tech · Denver, CO
citycode