{"openapi":"3.1.0","info":{"title":"Sabal API","description":"Roof measurement reports for Florida. Authenticate with `Authorization: Bearer <api key>`.","version":"1.0"},"paths":{"/api/v1/reports":{"post":{"tags":["reports"],"summary":"Api Crear","description":"Create a roof report. Processing usually takes under a minute; poll `GET /api/v1/reports/{report_id}` or use webhooks.","operationId":"api_crear_api_v1_reports_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NuevoInforme"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Creado"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["reports"],"summary":"Api Lista","operationId":"api_lista_api_v1_reports_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/{report_id}":{"get":{"tags":["reports"],"summary":"Api Ver","description":"Report in the v1 contract. While `needs_review`, measurements are `null` and `to_verify[]` explains why.","operationId":"api_ver_api_v1_reports__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/{report_id}/pdf":{"get":{"tags":["reports"],"summary":"Api Pdf","operationId":"api_pdf_api_v1_reports__report_id__pdf_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/companies":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_companies_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"companies","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_companies_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"companies","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/service-areas":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_service_areas_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"service-areas","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_service_areas_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"service-areas","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/rate-cards":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_rate_cards_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"rate-cards","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_rate_cards_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"rate-cards","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bookings":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_bookings_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"bookings","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_bookings_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"bookings","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bid-requests":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_bid_requests_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"bid-requests","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_bid_requests_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"bid-requests","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bids":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_bids_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"bids","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_bids_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"bids","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reviews":{"post":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_reviews_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"reviews","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase 2 (planned)"],"summary":" Plan","operationId":"_plan_api_v1_reviews_post","parameters":[{"name":"_r","in":"query","required":false,"schema":{"default":"reviews","title":" R"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Creado":{"properties":{"report_id":{"type":"string","title":"Report Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["report_id","status"],"title":"Creado"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"NuevoInforme":{"properties":{"address":{"type":"string","maxLength":300,"minLength":5,"title":"Address","examples":["1012 McKinnon Ave, Oviedo, FL 32765"]},"property_type":{"type":"string","pattern":"^(residential|commercial)$","title":"Property Type","default":"residential"},"external_ref":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"External Ref","description":"Your own reference (returned in webhooks)."},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat","description":"Optional: point on the roof to measure (confirms the building)."},"lng":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lng"}},"type":"object","required":["address"],"title":"NuevoInforme"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}