Skip to main content

CityCode API

Minneapolis municipal code, for your agents

Grounded, citation-backed answers over the Minneapolis code — 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