{"openapi":"3.0.3","info":{"title":"InMyCity API","version":"1.0.0","description":"Multi-domain civic intelligence API. All responses include source lineage and tier metadata. Authenticate with a Supabase JWT (Bearer token).","contact":{"email":"hello@inmycity.app"}},"servers":[{"url":"https://inmycity-api-staging.onrender.com/api/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Supabase session access_token from sign-in"}}},"paths":{"/places/search":{"get":{"summary":"Search places by text","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","default":10}}],"responses":{"200":{"description":"Place search results"}}}},"/places/{placeId}/metrics":{"get":{"summary":"Multi-domain place metrics bundle","parameters":[{"name":"placeId","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Safety, economy, forecast, anomalies with attribution"}}}},"/data/query":{"get":{"summary":"Query incident records by scope, domain, and date range","description":"Requires Platform Developer or Analyst+ plan. Monthly limits: developer 50000, pro 10000, business 200000.","parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","enum":["block","tract","city","county","state","metro","nation"]}},{"name":"scopeId","in":"query","required":true,"schema":{"type":"string"}},{"name":"domain","in":"query","required":true,"schema":{"type":"string","enum":["crime","fio","fire","311","permits","assessments","payroll"]}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Records with attribution block"}}}},"/data/count":{"get":{"summary":"Count-only variant of /data/query","responses":{"200":{"description":"Total count with attribution"}}}},"/data/products/neighborhood-safety":{"get":{"summary":"Neighborhood Safety Bundle","description":"Multi-domain civic counts (crime, fire, FIO, 311, permits, property assessments) for a geographic scope and date/fiscal range, with full source lineage.","responses":{"200":{"description":"Multi-domain bundle with per-domain attribution"}}}},"/trust/sources":{"get":{"summary":"Warehouse freshness and source catalog","security":[],"responses":{"200":{"description":"Source SLA status"}}}}},"x-products":[{"id":"neighborhood-safety","version":"1.1","name":"Neighborhood Safety Bundle","description":"Multi-domain civic counts (crime, fire, FIO, 311, permits, property assessments) for a geographic scope and date/fiscal range, with full source lineage.","domains":["crime","fire","fio","311","permits","assessments"]}],"x-rate-limits":{"free":0,"resident":0,"developer":50000,"pro":10000,"business":200000,"enterprise":null}}