{"openapi":"3.0.3","info":{"title":"City of Detroit Office of Sustainability — MiddleVerse Business API","description":"Our MissionTo advance climate action in Detroit by leading initiatives that reduce emission, increase resilience, and improve residents’ quality of life.The Office of Sustainability is a resource and advocate for a sustainable and resilient Detroit. The Office supports departments city-wide to advance bold climate goals set by the Sustainability Action Agenda​ and the Detroit Climate Strategy. Learn more about out work by checking out our quick links.Have a question?​Contact us at sustainability@detroitmi.govGuiding Documents:Detroit Climate StrategySustainability Action AgendaQuick Links Nature Based Solutions Join our Newsletter Solar Neighborhoods Request a Recycling Bin Sustainability Action Agenda Office of Mobility & Innovation Request a Tree Building Benchmarking Urban Agriculture Tepfirah Rushdan Director, Office of Sustainability sustainability@detroitmi.gov See Interactive Map .dt-green .more-link a {border: 1px solid #fff;} Learn more about the Solar Neighborhood initiative Check out how solar will power city buildings FIND OUT MORE .arpa-link a { text-transform: uppercase; font-weight: 900;} .arpa-ctas p.text-align-center a { background: #004445; color: #fff; display: block; font-weight: 900; font-size: 20px; text-transform: uppercase; padding: 20px;} .arpa-cats .col-lg-4 a { background: #004445; display: inline-block; color: #fff; min-height: 16em; border: none;} .arpa-cats .arpa-amount { float: right; color: #feb70d; font-weight: 900; padding: 15px;} .arpa-cats .arpa-category { font-weight: 900; position: relative; top: 0px;} .arpa-cats .arpa-cat-desc { padding: 10px 15px; position: relative; top: -10px;} .arpa-cats .arpa-category { padding: 15px 15px 5px 15px;} Climate Action Tracking the reduction of Greenhouse Gas Emissions Energy Resources and updates on energy efficiency and solar Resilience and Adaptation Preparing residents for the impacts of climate change Sustainable Mobility Supporting projects that move Detroiters Urban Agriculture Resources for urban farmers across the city Waste Diversion Resources to help reduce what ends up in the landfill​ .header h3{ border-bottom: 5px solid #feb70d; display: inline-block;} .main {font-size: 1.5em;} .big-box-btn .dt-btn a {border: 2px solid #18252a !important;} .big-box-btn.dt-green .dt-btn a {border: 1px solid #fff !important;} .dt-btn {font-weight: 500;} #block-views-block-related-links-block-1, aside.col-lg-3 {display: none;} .main-content.col.col-lg-9 {max-width: 100%; width: 100%;} .region.region-sub-sections .view-content .views-row:nth-last-child(1), .region.region-sub-sections .view-content .views-row:nth-last-child(2), .region.region-sub-sections .view-content .views-row:nth-last-child(3), .region.region-sub-sections .view-content .views-row:nth-last-child(4), .region.region-sub-sections .view-content .views-row:nth-last-child(5), .region.region-sub-sections .view-content .views-row:nth-last-child(6) {}\n\nMachine-readable API for City of Detroit Office of Sustainability on MiddleVerse. Live profile: https://middleverse.ai/b/city-of-detroit-office-of-sustainability-detroit","version":"1.0.0","contact":{"name":"MiddleVerse","url":"https://middleverse.ai"}},"servers":[{"url":"https://middleverse.ai","description":"Production"}],"tags":[{"name":"City of Detroit Office of Sustainability","description":"Community and Government"}],"paths":{"/api/v1/b/city-of-detroit-office-of-sustainability-detroit":{"get":{"tags":["City of Detroit Office of Sustainability"],"operationId":"getBusiness","summary":"Get City of Detroit Office of Sustainability profile, products, services, and hours","responses":{"200":{"description":"Business profile with products, services, hours, and links","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessResponse"}}}},"404":{"description":"Business not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/b/city-of-detroit-office-of-sustainability-detroit/products":{"get":{"tags":["City of Detroit Office of Sustainability"],"operationId":"getProducts","summary":"List products offered by City of Detroit Office of Sustainability","responses":{"200":{"description":"Product list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductsResponse"}}}},"404":{"description":"Business not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/b/city-of-detroit-office-of-sustainability-detroit/services":{"get":{"tags":["City of Detroit Office of Sustainability"],"operationId":"getServices","summary":"List services offered by City of Detroit Office of Sustainability","responses":{"200":{"description":"Service list","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServicesResponse"}}}},"404":{"description":"Business not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/b/city-of-detroit-office-of-sustainability-detroit/availability":{"get":{"tags":["City of Detroit Office of Sustainability"],"operationId":"getAvailability","summary":"Get City of Detroit Office of Sustainability business hours and booked slots","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Range start (YYYY-MM-DD, default today)"},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"},"description":"Range end (YYYY-MM-DD, default +30 days)"}],"responses":{"200":{"description":"Business hours and already-booked slots","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityResponse"}}}},"404":{"description":"Business not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string"}}},"Business":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"canonicalUrl":{"type":"string","format":"uri","description":"Canonical MiddleVerse profile URL"},"businessId":{"type":"string","format":"uri","description":"Stable Schema.org business entity ID"},"description":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"schemaType":{"type":"string","description":"Resolved Schema.org LocalBusiness type"},"phone":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"address":{"type":"object","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"zip_code":{"type":"string","nullable":true},"coordinates":{"type":"object","nullable":true},"claimed":{"type":"boolean"},"verified":{"type":"boolean"},"reservationLinks":{"type":"array","items":{"type":"object","required":["provider","label","url","type","source","attribution"],"additionalProperties":false,"properties":{"provider":{"type":"string","enum":["opentable","resy"]},"label":{"type":"string","enum":["OpenTable","Resy"]},"url":{"type":"string","format":"uri","description":"HTTPS provider handoff with MiddleVerse source attribution"},"type":{"type":"string","enum":["external_handoff"]},"source":{"type":"string","enum":["business_connected"]},"attribution":{"type":"object","properties":{"utmSource":{"type":"string","enum":["middleverse"]},"utmMedium":{"type":"string","enum":["ai_referral"]},"utmCampaign":{"type":"string","enum":["middleverse_listing"]},"aiSource":{"type":"string","nullable":true}}}}},"description":"Connected OpenTable/Resy external handoffs; not live availability or confirmed bookings"}}},"Product":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"price":{"type":"number","nullable":true},"sale_price":{"type":"number","nullable":true},"currency":{"type":"string","nullable":true}}},"Service":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"category":{"type":"string","nullable":true},"price":{"type":"number","nullable":true},"currency":{"type":"string","nullable":true},"duration_minutes":{"type":"integer","nullable":true},"bookable_online":{"type":"boolean","nullable":true}}},"Links":{"type":"object","properties":{"self":{"type":"string"},"profile":{"type":"string"},"bookings":{"type":"string"},"products":{"type":"string"},"services":{"type":"string"},"openapi":{"type":"string"}}},"BusinessResponse":{"type":"object","properties":{"success":{"type":"boolean"},"business":{"$ref":"#/components/schemas/Business"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"services":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"hours":{"type":"object","nullable":true},"links":{"$ref":"#/components/schemas/Links"}}},"ProductsResponse":{"type":"object","properties":{"success":{"type":"boolean"},"business":{"type":"string"},"count":{"type":"integer"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"links":{"$ref":"#/components/schemas/Links"}}},"ServicesResponse":{"type":"object","properties":{"success":{"type":"boolean"},"business":{"type":"string"},"count":{"type":"integer"},"services":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"links":{"$ref":"#/components/schemas/Links"}}},"AvailabilityResponse":{"type":"object","properties":{"success":{"type":"boolean"},"business":{"type":"string"},"businessHours":{"type":"object","nullable":true},"bookedSlots":{"type":"array","items":{"type":"object"}},"status":{"type":"string"},"links":{"$ref":"#/components/schemas/Links"}}}}}}