{"openapi":"3.1.0","info":{"title":"PermitIntel Data API","version":"1.0.0","description":"Building-permit records from the cities and counties that issue them, contractor license verification and permit-activity profiles, and derived roof age and material.\n\nMetering: plans are metered in records (one object returned). Metered responses carry X-Records-Request and X-Records-Remaining; at the monthly ceiling a call returns 402 records_limit_exceeded and nothing is billed. Trial keys see the first 20 results of any search (the full count is still reported where a route reports one; offset or cursor past the first 20 returns 400 trial_result_window) and spend at most 250 records a day, API and Permit Search CSV together; past that a call returns 429 trial_daily_limit_exceeded until 12:00 AM ET (X-Records-Daily-Limit, -Remaining and -Reset carry it). Unrecognised query parameters return 400 unknown_param rather than being ignored.\n\nPermit data reflects records PermitIntel has ingested and is not represented as a complete record of all permits. Every count, total and activity figure is a floor and a scope: permit offices publish on their own schedules and some publish almost nothing, so an empty result means we hold nothing matching, not that nothing happened. Each response carries its own `disclosure` string; quote it rather than this one.","contact":{"name":"PermitIntel","url":"https://permitintel.ai/docs"},"termsOfService":"https://permitintel.ai/terms","license":{"name":"PermitIntel data use: see Terms of Service","url":"https://permitintel.ai/terms"}},"externalDocs":{"description":"API reference","url":"https://permitintel.ai/docs"},"servers":[{"url":"https://permitintel.ai"}],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"tags":[{"name":"Permits","description":"Permit records: search, poll for changes, fetch one."},{"name":"Contractors","description":"Contractor licenses with permit-activity profiles."},{"name":"Verification","description":"License, workers-comp insurance and certification checks."},{"name":"Monitoring","description":"Always-on watches on a license, with webhook or polled events."},{"name":"Supply","description":"Scored supplier accounts and the supplier workspace (book, reps, territories)."},{"name":"Roof","description":"Derived roof age, material and structure, and permit-derived property risk."},{"name":"Coverage","description":"What we hold: jurisdiction codes, per-state coverage and grouped totals."},{"name":"Planning","description":"Planning-board and council agenda items before a permit, with where we read them."},{"name":"Account","description":"Your usage and the API's measured availability."}],"paths":{"/api/v1/contractors":{"get":{"operationId":"getContractors","summary":"Find contractors by license, name, or by the permits filed in a place","description":"Place mode (city= with state=, county= with state=, or jurisdiction=, plus the required permit window permit_from= and permit_to=, optional specialty=) ranks the contractors named on the permits filed in that place in that window, and returns only contractors who pulled a permit in it; a place without a window answers 400 permit_window_required with an example_url; each row carries place_activity with an at-least-N-since-date statement, and an empty list carries zero_row_reason (place_not_served, no_trade_permits, no_named_contractor, filters_excluded_all). name= without a place searches Florida DBPR license holders. One record per contractor. Phone, email and website takeout counts one distinct contractor business group per billing period; repeat retrievals are free. Trials allow 250 for the whole trial. At the contact allowance, records still return without contacts and contacts_withheld supplies the reason and upgrade URL. Permit contact includes with from/updated_since older than 7 days (or no lower bound), and permit detail lookups, withhold contacts on rows with an issue/application date older than 7 days. Portal viewing remains unmetered. CSV files cap at 5,000 records. A key linked to a Supplier Portal workspace spends that plan's records, shared with exports.","tags":["Contractors"],"parameters":[{"name":"license","in":"query","required":false,"description":"Exact license number. Selects license mode and returns a single `contractor`.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"With license=: the issuing state, to disambiguate a license number held in two states. With city= or county=: the state of that place (required when more than one state has a place of that name; place_ambiguous lists them). Refused alone or with name= only (filter_unsupported_in_mode).","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"name","in":"query","required":false,"description":"Business-name search.","schema":{"type":"string","minLength":3}},{"name":"specialty","in":"query","required":false,"description":"Trade to rank by, from the permits filed in the place: roofing, hvac, electrical, plumbing, pool, solar, windows_doors, fence, demolition or general. Common spellings are accepted (ac, air conditioning, heating, pv, pool & spa, roofer, gc, building). Work we do not classify permits by (landscaping, irrigation, drywall ...) answers 400 specialty_not_ranked. Needs a place.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County the work is in, with state=. Ranks contractors from the permits filed in that county's largest jurisdictions (query.place lists which).","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"City the work is in, matched exactly to our jurisdictions (not the contractor's mailing city). Give state=, or it is inferred only when one state has a place of that name.","schema":{"type":"string"}},{"name":"jurisdiction","in":"query","required":false,"description":"Exact jurisdiction code from /api/v1/jurisdictions, e.g. TX-DALLAS-DALLAS. Ranks contractors from that jurisdiction's permits.","schema":{"type":"string"}},{"name":"permit_from","in":"query","required":false,"description":"First day of the permit window, YYYY-MM-DD. Required with a place (city=, county= or jurisdiction=): only contractors who pulled a permit in the place between permit_from and permit_to are returned. The window spans at most 366 days. Missing: 400 permit_window_required with an example_url.","schema":{"type":"string","format":"date"}},{"name":"permit_to","in":"query","required":false,"description":"Last day of the permit window, YYYY-MM-DD, on or after permit_from. Required with a place. A date after today reads through today (query.permit_window says so).","schema":{"type":"string","format":"date"}},{"name":"sort","in":"query","required":false,"description":"Rank by activity. In place mode every sort reads the permits filed in the place in the permit window (permits, value or last permit date).","schema":{"type":"string","enum":["permits","permits_12mo","value","value_12mo","last_active"]}},{"name":"min_permits","in":"query","required":false,"description":"Floor on permit count (in place mode: permits in the place in the window).","schema":{"type":"integer","minimum":0}},{"name":"min_permits_12mo","in":"query","required":false,"description":"Floor on 12-month permit count.","schema":{"type":"integer","minimum":0}},{"name":"include_name_only","in":"query","required":false,"description":"Place mode: true also lists contractors identified only by the name on the permit. By default a place ranking lists license- and registration-linked contractors.","schema":{"type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Rows per page. Default 25, maximum 100.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"description":"Offset paging.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorList"}}}},"400":{"description":"Error codes: trial_result_window, unknown_param, filter_unsupported_in_mode, bad_state, missing_query, place_required, permit_window_required, bad_date, bad_window, window_too_long, place_ambiguous, specialty_not_ranked, unknown_specialty, license_ambiguous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["trial_result_window","unknown_param","filter_unsupported_in_mode","bad_state","missing_query","place_required","permit_window_required","bad_date","bad_window","window_too_long","place_ambiguous","specialty_not_ranked","unknown_specialty","license_ambiguous"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/contractors/{license}":{"get":{"operationId":"getContractorsByLicense","summary":"One contractor profile","description":"What ?license= returns plus links.permits and the ten most recent permits. Phone, email and website takeout counts one distinct contractor business group per billing period; repeat retrievals are free. Trials allow 250 for the whole trial. At the contact allowance, records still return without contacts and contacts_withheld supplies the reason and upgrade URL. Permit contact includes with from/updated_since older than 7 days (or no lower bound), and permit detail lookups, withhold contacts on rows with an issue/application date older than 7 days. Portal viewing remains unmetered. CSV files cap at 5,000 records. A key linked to a Supplier Portal workspace spends that plan's records, shared with exports.","tags":["Contractors"],"parameters":[{"name":"license","in":"path","required":true,"description":"Contractor license number.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractorDetail"}}}},"400":{"description":"Error codes: unknown_param, bad_license, license_ambiguous.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","bad_license","license_ambiguous"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: search_timeout, auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_timeout","auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/coverage":{"get":{"operationId":"getCoverage","summary":"What we hold, by state","description":"Free of records. Keyless callers get the summary; a key adds per-jurisdiction rows.","tags":["Coverage"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coverage"}}}}},"security":[{},{"bearerAuth":[]},{"apiKeyHeader":[]}],"x-metered":false}},"/api/v1/jurisdictions":{"get":{"operationId":"getJurisdictions","summary":"Jurisdiction codes you can query","description":"Free of records. Without a key the body carries counts and filters but not the code list.","tags":["Coverage"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"county","in":"query","required":false,"description":"County code, e.g. FL-MIAMI_DADE.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Substring search over codes and names.","schema":{"type":"string","minLength":2}},{"name":"limit","in":"query","required":false,"description":"Rows per page. Maximum 1000.","schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"offset","in":"query","required":false,"description":"Offset paging.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JurisdictionList"}}}},"400":{"description":"Error codes: unknown_param, bad_state, bad_county, query_too_short.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","bad_state","bad_county","query_too_short"]}},"security":[{},{"bearerAuth":[]},{"apiKeyHeader":[]}],"x-metered":false}},"/api/v1/monitors":{"get":{"operationId":"getMonitors","summary":"List your monitors","description":"One record per monitor.","tags":["Monitoring"],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorList"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"post":{"operationId":"postMonitors","summary":"Watch a license","description":"Upserts on (key, license). Webhook deliveries are signed X-PermitIntel-Signature: sha256=HMAC(webhook_secret, body); the secret is returned once.","tags":["Monitoring"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"license":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["license_lapse","insurance_lapse","new_permit","cert_expiry"]},"description":"Default license_lapse, insurance_lapse, new_permit."},"webhook_url":{"type":"string","format":"uri","pattern":"^https://"}},"required":["license"]}}}},"responses":{"201":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorCreated"}}}},"400":{"description":"Error codes: unknown_param, missing_license, invalid_events, invalid_webhook.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_license","invalid_events","invalid_webhook"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","key_not_eligible","product_not_in_plan"]},"429":{"description":"Error codes: monitor_cap_reached, rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["monitor_cap_reached","rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/monitors/{id}":{"delete":{"operationId":"deleteMonitorsById","summary":"Stop watching","tags":["Monitoring"],"parameters":[{"name":"id","in":"path","required":true,"description":"Monitor id (uuid) on /monitors, permit id (integer) on /permits.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorDeleted"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","key_not_eligible","product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/monitors/{id}/events":{"get":{"operationId":"getMonitorsByIdEvents","summary":"Poll a monitor's events","description":"One record per event.","tags":["Monitoring"],"parameters":[{"name":"id","in":"path","required":true,"description":"Monitor id (uuid) on /monitors, permit id (integer) on /permits.","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Only events detected at or after this date or timestamp.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Default 100, maximum 500.","schema":{"type":"integer","minimum":1,"maximum":500}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorEventList"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/permits":{"get":{"operationId":"getPermits","summary":"Search or poll permits","description":"Seven modes, chosen by which parameter you send: feed (updated_since), browse (jurisdiction), address, contractor, zip, city (with state), labels (work_category, tag and/or property_type, optionally with county or jurisdiction; OR within one parameter, AND across them; tag=-x excludes a tag and keeps unlabelled permits; a request with only exclusions needs jurisdiction and is walked). labels lists the permits our classification labels mark, newest first, and label_filter says how they were matched (label_store: every match, read by id from the label store; jurisdiction_walk: one jurisdiction walked newest first, label_window says how far). Every row in every mode carries trade_family, work_category, work_category_occupancy and work_tags (null = not labelled; exclude=labels drops them). zip, city and browse list permits with an issue date first (newest first), then permits with no issue date (newest application date first; permits with neither date are not served, query.dateless_excluded); each row carries date_basis (issued | applied | none) and query.undated_excluded says whether undated permits are part of the request. from/to filter issue_date only, so they keep a page dated-only. Each parameter's x-modes lists the modes that honour it; any other mode answers 400 filter_unsupported_in_mode rather than silently ignoring it. One record per permit returned. Phone, email and website takeout counts one distinct contractor business group per billing period; repeat retrievals are free. Trials allow 250 for the whole trial. At the contact allowance, records still return without contacts and contacts_withheld supplies the reason and upgrade URL. Permit contact includes with from/updated_since older than 7 days (or no lower bound), and permit detail lookups, withhold contacts on rows with an issue/application date older than 7 days. Portal viewing remains unmetered. CSV files cap at 5,000 records. A key linked to a Supplier Portal workspace spends that plan's records, shared with exports.","tags":["Permits"],"parameters":[{"name":"address","in":"query","required":false,"description":"Street address, prefix-matched. Minimum 4 characters. Modes: address.","schema":{"type":"string","minLength":4},"x-modes":["address"]},{"name":"contractor","in":"query","required":false,"description":"Contractor business name (min 3 chars) or an exact license number. Modes: contractor.","schema":{"type":"string","minLength":3},"x-modes":["contractor"]},{"name":"updated_since","in":"query","required":false,"description":"ISO 8601 timestamp. Returns every permit whose record changed at or after it, oldest change first. This is the polling parameter: unlike from/to it sees a permit backfilled today with a 2019 issue date. Modes: feed.","schema":{"type":"string","format":"date-time"},"x-modes":["feed"]},{"name":"new_only","in":"query","required":false,"description":"With updated_since, restrict to NEW permits: first ingested since that timestamp, ordered by when we first ingested them, and dated (issue date, else application date) no more than 30 days before that ingest. A permit counts as new only on its issue or application date: a permit with only an application date is included and labelled date_basis=applied, and a permit with neither (a finalize or expiry date alone does not count) is never new. Historical backfills, public-records loads of old permits and undated permits are left out; pass history=include to get them. Indexed with jurisdiction, county, state or no place filter. Modes: feed.","schema":{"type":"boolean"},"x-modes":["feed"]},{"name":"history","in":"query","required":false,"description":"With new_only: exclude (default) or include. include also returns permits we first ingested in the window but that were issued or applied for more than 30 days before we ingested them (history backfills), and permits with no issue or application date, which new_only never counts as new. Modes: feed.","schema":{"type":"string"},"x-modes":["feed"]},{"name":"open_only","in":"query","required":false,"description":"Leave closed permits out of the feed: status_stage finaled, expired or withdrawn, or a finaled/closed source status. Same as exclude_stage=finaled,expired,withdrawn. Modes: feed.","schema":{"type":"boolean"},"x-modes":["feed"]},{"name":"exclude_stage","in":"query","required":false,"description":"Comma-separated status_stage values to leave out of the feed: applied, issued, finaled, expired, withdrawn, unknown. Modes: feed.","schema":{"type":"string"},"x-modes":["feed"]},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from meta.next_cursor. Pass it back to get the next page. Stable across inserts; prefer it to offset. Modes: feed.","schema":{"type":"string"},"x-modes":["feed"]},{"name":"state","in":"query","required":false,"description":"Two-letter state code. Required in city mode; disambiguates a ZIP; the feed's own state filter. Refused in address, contractor and browse mode, which read a view that does not carry the column -- see the note under Polling. Modes: feed, zip, city.","schema":{"type":"string"},"x-modes":["feed","zip","city"]},{"name":"county","in":"query","required":false,"description":"County jurisdiction prefix, e.g. FL-MIAMI_DADE. Matches every jurisdiction under it. Narrows another query; it cannot browse on its own, because a prefix range cannot be walked in date order. With work_category or tag it narrows a labels request. Modes: feed, address, contractor, labels.","schema":{"type":"string"},"x-modes":["feed","address","contractor","labels"]},{"name":"jurisdiction","in":"query","required":false,"description":"Exact jurisdiction code, in the form STATE-COUNTY-PLACE: FL-ORANGE-ORLANDO, CA-SAN_FRANCISCO. Case-insensitive. A code we hold nothing under answers 200 with a did_you_mean block naming codes we do hold, so never read an empty page as an empty market. Call /api/v1/jurisdictions rather than guessing. On its own it selects browse mode. Modes: feed, browse, address, contractor, labels.","schema":{"type":"string"},"x-modes":["feed","browse","address","contractor","labels"]},{"name":"trade","in":"query","required":false,"description":"One or more trade slugs, comma-separated. Matched against our permit classifier for roofing, hvac, electrical, pool, solar, windows_doors and fence; matched on keywords over permit_type, work_class and type_of_work for general, plumbing and demolition. Every trade-filtered response reports which matcher ran as trade_source. In browse mode the search is bounded to a 180-day window, reported as a top-level trade_window object on the response (not under meta). Feed mode applies trade with no window, but always matches it on keywords -- see trade_source. Accepted slugs: roofing, hvac, electrical, plumbing, pool, solar, windows_doors, fence, demolition, general. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string"},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"trade_confidence","in":"query","required":false,"description":"any (default) or high. Applies only to classifier-matched trades. 'high' keeps trade signals found in the permit's type/class fields and drops those found only in its description. It's narrower and more precise, and returns zero rows in jurisdictions whose only signal is the description. Not available in feed mode, which matches every trade on keywords. Modes: browse, address, contractor, zip, city, labels.","schema":{"type":"string","enum":["any","high"]},"x-modes":["browse","address","contractor","zip","city","labels"]},{"name":"trade_match","in":"query","required":false,"description":"classifier (default) or keywords. 'keywords' pins the request to the pre-2026-09-30 substring matcher for every requested trade. Not available in feed mode, which always matches on keywords and reports so in trade_source. Modes: browse, address, contractor, zip, city, labels.","schema":{"type":"string","enum":["classifier","keywords"]},"x-modes":["browse","address","contractor","zip","city","labels"]},{"name":"work_type","in":"query","required":false,"description":"Raw substring match on the source's own work wording. Use trade for a normalized filter. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string"},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"description","in":"query","required":false,"description":"Words to find in the permit's work description, such as a brand or equipment (Tesla, Carrier, heat pump). Every word must appear, in any order and any case; put a phrase in double quotes to match it as written. Up to 5 words of 2 or more characters; % and _ match literally. Use trade for a normalized filter. Modes: browse, address, contractor, zip, city, labels.","schema":{"type":"string"},"x-modes":["browse","address","contractor","zip","city","labels"]},{"name":"status","in":"query","required":false,"description":"Substring match on the source's permit status. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string"},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"min_value","in":"query","required":false,"description":"Minimum declared permit value in USD, a whole number of dollars (0 or more, digits only). Anything else is refused with bad_min_value rather than ignored. A permit whose value the source does not publish never matches. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"integer","minimum":0},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"min_job_value","in":"query","required":false,"description":"Alias of min_value: minimum declared permit (job) value in USD, whole dollars, digits only. Send one or the other; both with different values is a 400 (min_value_conflict). Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"integer","minimum":0},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"from","in":"query","required":false,"description":"issue_date on or after YYYY-MM-DD. A permit with no issue date never matches, so a request carrying from or to serves dated permits only. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string","format":"date"},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"to","in":"query","required":false,"description":"issue_date on or before YYYY-MM-DD. A permit with no issue date never matches, so a request carrying from or to serves dated permits only. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string","format":"date"},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"undated","in":"query","required":false,"description":"include (default), exclude or only. zip, city and jurisdiction pages list permits with an issue date first (newest issue date first), then permits with no issue date (newest application date first). Every row carries date_basis: issued, applied or none; permits with neither date are not served in these modes (query.dateless_excluded). exclude serves the dated permits only; only starts the page at the first undated permit, which is how to reach them in a place holding more than 1,000 dated permits. Undated permits are never served when from or to is set, because those filter on issue_date. Modes: browse, zip, city.","schema":{"type":"string"},"x-modes":["browse","zip","city"]},{"name":"right_of_way","in":"query","required":false,"description":"include (default), exclude or only. Right-of-way permits (record_kind right_of_way: driveway aprons, sidewalks, utility cuts in the public right-of-way) are served in contractor, address, jurisdiction (browse), label, zip and city modes and carry record_kind_label \"Right-of-way\". Permanent sign permits (record_kind sign, record_kind_label \"Permanent sign\") are served in the same modes. exclude drops right-of-way permits and keeps permits and sign permits. only returns right-of-way permits only, in contractor, address, jurisdiction (browse) and label modes; zip and city accept include and exclude but refuse only with right_of_way_not_served. The change feed (updated_since) returns permits only: right-of-way and sign permits are not in it, and right_of_way=only there is refused with right_of_way_not_served. Modes: contractor, address, browse, labels, zip, city.","schema":{"type":"string"},"x-modes":["contractor","address","browse","labels","zip","city"]},{"name":"city","in":"query","required":false,"description":"A city. On its own WITH 'state' it selects city mode: that city's permits, newest issue date first, then undated permits by application date (see 'undated'). Inside another mode it narrows the result (substring match on the permit's own city column). Not available in feed mode, which is ordered on a table that does not carry the column. Modes: city, zip, browse, address, contractor.","schema":{"type":"string"},"x-modes":["city","zip","browse","address","contractor"]},{"name":"zip","in":"query","required":false,"description":"A 5-digit ZIP. On its own it selects zip mode: that ZIP's permits, newest issue date first, served by the (site_zip, issue_date) index, then undated permits by application date (see 'undated'). Inside another mode it narrows the result. Not available in feed mode, which is ordered on a table that does not carry the column. Modes: zip, city, browse, address, contractor.","schema":{"type":"string"},"x-modes":["zip","city","browse","address","contractor"]},{"name":"work_category","in":"query","required":false,"description":"What kind of work the permit is, comma-separated: new_construction, addition, addition_or_alteration, alteration_remodel, interior_alteration, exterior_alteration, repair_replace, roofing_reroof, demolition, accessory_structure, sitework_exterior_improvement, trade_only, administrative, non_building, unknown. Read from our work-category labels (Florida; today new construction in Miami-Dade). On its own it selects the permits so labelled, newest first; add county or jurisdiction to narrow. Every label-filtered response reports how it was matched as label_filter. Modes: labels.","schema":{"type":"string"},"x-modes":["labels"]},{"name":"tag","in":"query","required":false,"description":"Work tags, comma-separated (a permit can carry several; a permit matches if it carries ANY listed tag): roofing, electrical, fence, windows_doors, pool_hot_tub, gas, generator, concrete_paving, fire_sprinkler, fire_alarm, sign, right_of_way, water_heater, heat_pump, solar_thermal, ev_charger, foundation, demolition, kitchen, bathroom, grading, residential, single_family. Only tags whose rule passed a 30-permit check (29/30 or better) are served; held tags (hvac, plumbing, solar, battery, remodel, addition, adu, deck_patio, elevator, landscaping, multifamily, commercial, shed, shutters, site_work) are refused with the reason. Proposed tags flooring_tile and kitchen_bath are accepted with status 'proposal; production backfill pending' and no ship score: they are read from Florida permit descriptions, tile-only jobs often do not need a permit, and until the backfill is ruled the store holds none of them, so a request answers zero rows with zero_row_reason. Prefix a tag with '-' to exclude it (tag=kitchen,-flooring_tile): an exclusion drops permits the store labels with that tag and KEEPS permits with no tag row, which are unknown rather than 'without' and are counted in label_filter.exclusion.unlabelled_kept. A request with only exclusions needs 'jurisdiction' and is a bounded walk (label_window). Asking for and excluding one tag is a 400 (tag_conflict). Florida permits so far. Combined with work_category or property_type, every parameter must match (AND); see label_filter.semantics. Modes: labels.","schema":{"type":"string"},"x-modes":["labels"]},{"name":"property_type","in":"query","required":false,"description":"The property's use, comma-separated (OR within the list): residential, single_family. Read from the county assessor's land-use code through the parcel tags, never from permit text or occupancy wording, so a permit whose parcel we have not linked is unknown and does not match. Florida permits only so far: a request scoped to another state answers zero rows with zero_row_reason property_type_not_available_here, and label_filter.property_type_coverage names the covered states. multifamily and commercial are refused with property_type_held and their reason until their check passes. Required together with tag and work_category (AND). On its own it selects labels mode; a large type such as residential needs 'jurisdiction' and is walked. To leave a type out, exclude its tag (tag=-commercial). Modes: labels.","schema":{"type":"string"},"x-modes":["labels"]},{"name":"exclude","in":"query","required":false,"description":"Comma-separated keys to leave off every row. labels drops trade_family, work_category, work_category_occupancy and work_tags, and the label lookups behind them. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string"},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"include","in":"query","required":false,"description":"Comma-separated extras. contractor_contact nests the licensed contractor's business name, phone, email and verified website. current_owner adds current_owner_of_record: the current owner of record (county PVA roll, roll dated …), in its own field with its source, roll date and lookup date. It is NOT the owner at permit time (that stays property.owner_name). Metered like a contractor contact: 1 record per property owner per billing period, subject to the contact allowance and the 7-day issue/application window. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"string","enum":["contractor_contact","current_owner","owner_contact"]},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"limit","in":"query","required":false,"description":"Rows per page. Default 50, maximum 200. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"integer","minimum":1,"maximum":200},"x-modes":["feed","browse","address","contractor","zip","city","labels"]},{"name":"offset","in":"query","required":false,"description":"Offset paging, kept for back-compatibility. Use cursor in feed mode. Modes: feed, browse, address, contractor, zip, city, labels.","schema":{"type":"integer","minimum":0},"x-modes":["feed","browse","address","contractor","zip","city","labels"]}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermitList"}}}},"400":{"description":"Error codes: trial_result_window, unknown_param, filter_unsupported_in_mode, state_unsupported_in_mode, missing_query, bad_updated_since, bad_cursor, cursor_mode_mismatch, bad_history, history_needs_new_only, unknown_stage, bad_date, bad_undated, undated_conflicts_with_date_range, right_of_way_not_served, bad_state, bad_county, bad_zip, city_requires_state, address_too_short, contractor_too_short, unknown_include, unknown_exclude, unknown_trade, unknown_trade_confidence, unknown_trade_match, unknown_work_category, unknown_tag, tag_held, tag_conflict, unknown_property_type, property_type_held, bad_property_type, bad_min_value, min_value_conflict, label_filter_needs_jurisdiction, unknown_jurisdiction, pagination_exhausted, feed_filter_too_slow, feed_filter_too_broad.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["trial_result_window","unknown_param","filter_unsupported_in_mode","state_unsupported_in_mode","missing_query","bad_updated_since","bad_cursor","cursor_mode_mismatch","bad_history","history_needs_new_only","unknown_stage","bad_date","bad_undated","undated_conflicts_with_date_range","right_of_way_not_served","bad_state","bad_county","bad_zip","city_requires_state","address_too_short","contractor_too_short","unknown_include","unknown_exclude","unknown_trade","unknown_trade_confidence","unknown_trade_match","unknown_work_category","unknown_tag","tag_held","tag_conflict","unknown_property_type","property_type_held","bad_property_type","bad_min_value","min_value_conflict","label_filter_needs_jurisdiction","unknown_jurisdiction","pagination_exhausted","feed_filter_too_slow","feed_filter_too_broad"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: jurisdiction_lookup_failed, city_lookup_failed, search_timeout, auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["jurisdiction_lookup_failed","city_lookup_failed","search_timeout","auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/permits/{id}":{"get":{"operationId":"getPermitsById","summary":"One permit by id","description":"The same object as a search row. The contractor's contact is nested only with include=contractor_contact; the current owner of record (county PVA roll, roll dated …) only with include=current_owner, in current_owner_of_record, never in property.owner_name. One record. Phone, email and website takeout counts one distinct contractor business group per billing period; repeat retrievals are free. Trials allow 250 for the whole trial. At the contact allowance, records still return without contacts and contacts_withheld supplies the reason and upgrade URL. Permit contact includes with from/updated_since older than 7 days (or no lower bound), and permit detail lookups, withhold contacts on rows with an issue/application date older than 7 days. Portal viewing remains unmetered. CSV files cap at 5,000 records. A key linked to a Supplier Portal workspace spends that plan's records, shared with exports.","tags":["Permits"],"parameters":[{"name":"id","in":"path","required":true,"description":"Monitor id (uuid) on /monitors, permit id (integer) on /permits.","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"owner_contact adds the property owner's contact exactly as printed on that permit, opt-in, 1 record per distinct owner per billing period, null where the permit prints none or the state is not served. contractor_contact nests the contractor's contact, exactly as on the list route: only when you ask for it, 1 record per contractor per billing period, subject to contact allowance and the 7-day issue/application window. Without it the permit is served with no contact and no contact charge. current_owner adds current_owner_of_record, the current owner of record (county PVA roll, roll dated …) in its own field with source, roll date and lookup date; it is NOT the owner at permit time (property.owner_name) and is metered like a contractor contact, 1 record per property owner per billing period. Any other value answers 400 unknown_include.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermitDetail"}}}},"400":{"description":"Error codes: unknown_param, unknown_include, bad_permit_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","unknown_include","bad_permit_id"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: search_timeout, auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["search_timeout","auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/planning-signals":{"get":{"operationId":"getPlanningSignals","summary":"List planning-board and council agenda items","description":"Items on planning-board and council agendas, the step before a permit: rezonings, plats, variances, site plans, planned unit developments, conditional uses, comprehensive-plan changes, development agreements and other development items. Each one is an item a board put on an agenda, not a decision. Most past items carry no recorded outcome. Browse (default): newest meeting first, then undated items. Feed (updated_since): oldest change first. Cursor paging only. The outcome field is the status printed on the latest document we read for the item. A past meeting that still reads scheduled means we haven't read its minutes, not that the item was heard and nothing happened. Treat it as unknown. We read the agendas of the places the coverage call lists, and nowhere else. A place that isn't listed isn't read, so an empty answer for it tells you nothing about whether projects are filed there. We don't read every board or meeting in a listed place either, so every count is a minimum, not a total. Every response carries coverage; a place we don't read answers 200 with coverage.status not_covered and zero_row_reason place_not_covered. Included on every Data API plan (Starter, Growth, Scale and Enterprise) and on the free trial. Each signal returned costs 1 record. One signal by id costs 1 record; a 404 costs nothing. The coverage call costs nothing, and so does a request for a place we don't read.","tags":["Planning"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code. A state we don't read answers coverage.status not_covered, never a bare empty list. Modes: browse, feed.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"county","in":"query","required":false,"description":"County code in the STATE-COUNTY form the rest of the API uses, or the county name. Comma list, up to 10. A name we can't resolve is 400 unknown_county with did_you_mean. Modes: browse, feed.","schema":{"type":"string"}},{"name":"place","in":"query","required":false,"description":"One or more place names exactly as the coverage call lists them, comma-separated, up to 10. No substring matching. A name we don't read comes back in coverage.places_not_read with a reason. Modes: browse, feed.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Comma list of signal types: rezoning, plat, comp_plan, other, site_plan, variance, conditional_use, pud, development_agreement. Default: all of them. Modes: browse, feed.","schema":{"type":"string"}},{"name":"outcome","in":"query","required":false,"description":"Comma list of outcomes as printed: scheduled, approved, recommended_approval, continued, denied, recommended_denial, unknown. Modes: browse, feed.","schema":{"type":"string"}},{"name":"meeting_from","in":"query","required":false,"description":"Meeting date on or after, YYYY-MM-DD. An item with no meeting date never matches a date range (query.undated_excluded says so). Modes: browse, feed.","schema":{"type":"string","format":"date"}},{"name":"meeting_to","in":"query","required":false,"description":"Meeting date on or before, YYYY-MM-DD. Modes: browse, feed.","schema":{"type":"string","format":"date"}},{"name":"min_units","in":"query","required":false,"description":"Proposed dwelling units, at least N. Only items that state a unit count can match (query.filled_only then lists unit_count). Modes: browse, feed.","schema":{"type":"integer","minimum":1}},{"name":"min_acres","in":"query","required":false,"description":"Site acres, at least N (decimal). Only items that state acres can match (query.filled_only then lists acres). Modes: browse, feed.","schema":{"type":"number","exclusiveMinimum":0}},{"name":"has_address","in":"query","required":false,"description":"true keeps only items with a street address. Default false: a text amendment with no address is still a signal. Modes: browse, feed.","schema":{"type":"boolean"}},{"name":"q","in":"query","required":false,"description":"Keyword search: 1 to 5 words separated by spaces, each 2 to 60 letters, digits, ' & / # or -. Every word must appear, in any case, in the item's agenda text, street address or applicant. A word we would not search exactly as typed is 400 bad_keyword. Modes: browse, feed.","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"ISO timestamp or date. Selects the change feed: every item whose record changed at or after it, oldest change first. Modes: feed.","schema":{"type":"string","format":"date-time"}},{"name":"cursor","in":"query","required":false,"description":"meta.next_cursor from the previous page, unchanged. The only way to page; there is no offset. Modes: browse, feed.","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Reserved: include takes no values on this endpoint yet. Any value is refused with 400 include_not_available or unknown_include, never silently ignored. Modes: browse, feed.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows per page. Default 50, maximum 200. Modes: browse, feed.","schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanningSignalList"}}}},"400":{"description":"Error codes: unknown_param, duplicate_param, empty_param, bad_state, unknown_county, conflicting_scope, too_many_values, type_not_served, unknown_type, unknown_outcome, bad_date, bad_date_range, bad_number, bad_boolean, bad_keyword, bad_timestamp, unknown_include, include_not_available, bad_limit, bad_cursor, trial_result_window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","duplicate_param","empty_param","bad_state","unknown_county","conflicting_scope","too_many_values","type_not_served","unknown_type","unknown_outcome","bad_date","bad_date_range","bad_number","bad_boolean","bad_keyword","bad_timestamp","unknown_include","include_not_available","bad_limit","bad_cursor","trial_result_window"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: trial_pending_approval, not_in_plan, plan_inactive, outside_plan_regions, scoped_key_needs_county, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["trial_pending_approval","not_in_plan","plan_inactive","outside_plan_regions","scoped_key_needs_county","product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: records_meter_unavailable, search_timeout, auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_meter_unavailable","search_timeout","auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/planning-signals/{id}":{"get":{"operationId":"getPlanningSignalsById","summary":"One agenda item by id","description":"The same object as a list row, as planning_signal, with the coverage of its place. An id we don't serve answers 404 not_found and costs nothing, the same as an id we never held. A hit costs 1 record.","tags":["Planning"],"parameters":[{"name":"id","in":"path","required":true,"description":"Planning signal id (uuid), as in planning_signals[].id.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanningSignalDetail"}}}},"400":{"description":"Error codes: unknown_param, bad_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","bad_id"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: trial_pending_approval, not_in_plan, plan_inactive, outside_plan_regions, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["trial_pending_approval","not_in_plan","plan_inactive","outside_plan_regions","product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: records_meter_unavailable, search_timeout, auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_meter_unavailable","search_timeout","auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/planning-signals/coverage":{"get":{"operationId":"getPlanningSignalsCoverage","summary":"Where we read planning-board agendas","description":"Free of records. Without a key: counts by county. With a key: every place we read, with first and last meeting dates and the last successful read. We read the agendas of the places the coverage call lists, and nowhere else. A place that isn't listed isn't read, so an empty answer for it tells you nothing about whether projects are filed there. We don't read every board or meeting in a listed place either, so every count is a minimum, not a total.","tags":["Planning"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code, to narrow the list.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"county","in":"query","required":false,"description":"County code or name, comma list, to narrow the list.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanningSignalCoverage"}}}},"400":{"description":"Error codes: unknown_param, duplicate_param, empty_param, bad_state, unknown_county, conflicting_scope, too_many_values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","duplicate_param","empty_param","bad_state","unknown_county","conflicting_scope","too_many_values"]},"401":{"description":"Error codes: invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["invalid_api_key","trial_expired"]},"403":{"description":"Error codes: trial_pending_approval, not_in_plan, plan_inactive.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["trial_pending_approval","not_in_plan","plan_inactive"]},"429":{"description":"Error codes: rate_limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, records_meter_unavailable, upstream_unavailable, search_timeout.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","records_meter_unavailable","upstream_unavailable","search_timeout"]}},"security":[{},{"bearerAuth":[]},{"apiKeyHeader":[]}],"x-metered":false}},"/api/v1/properties/{address}/risk-insurance":{"get":{"operationId":"getPropertiesByAddressRiskInsurance","summary":"Permit-derived risk signals for an address","tags":["Roof"],"parameters":[{"name":"address","in":"path","required":true,"description":"URL-encoded street address; may carry city, state and ZIP.","schema":{"type":"string"}},{"name":"city","in":"query","required":false,"description":"City, to disambiguate the address.","schema":{"type":"string"}},{"name":"zip","in":"query","required":false,"description":"5-digit ZIP, to disambiguate the address.","schema":{"type":"string","pattern":"^\\d{5}$"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskInsurance"}}}},"400":{"description":"Error codes: unknown_param, missing_address, address_too_short.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_address","address_too_short"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/rollups":{"get":{"operationId":"getRollups","summary":"Grouped permit totals by county, ZIP or jurisdiction","tags":["Coverage"],"parameters":[{"name":"group","in":"query","required":true,"description":"Grouping grain. No default.","schema":{"type":"string","enum":["county","zip","jurisdiction"]}},{"name":"state","in":"query","required":false,"description":"Required with group=county; also a scope for group=jurisdiction.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"county","in":"query","required":false,"description":"County code such as FL-MIAMI_DADE. Required with group=zip; also a scope for group=jurisdiction.","schema":{"type":"string"}},{"name":"jurisdiction","in":"query","required":false,"description":"Exact jurisdiction code, only with group=jurisdiction.","schema":{"type":"string"}},{"name":"trade","in":"query","required":false,"description":"One or more trade slugs, comma-separated (roofing, hvac, electrical, plumbing, pool, solar, windows_doors, fence, general, or a rollup category).","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Always refused with filter_unsupported_in_mode: the aggregate is month-grain. Use window, or /api/v1/permits.","schema":{"type":"string"}},{"name":"to","in":"query","required":false,"description":"Always refused with filter_unsupported_in_mode: the aggregate is month-grain. Use window, or /api/v1/permits.","schema":{"type":"string"}},{"name":"window","in":"query","required":false,"description":"Which window ranks rows. Default 12mo.","schema":{"type":"string","enum":["12mo","all"]}},{"name":"limit","in":"query","required":false,"description":"Default 200, maximum 1000.","schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"offset","in":"query","required":false,"description":"Offset paging.","schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollupList"}}}},"400":{"description":"Error codes: unknown_param, filter_unsupported_in_mode, missing_group, bad_group, missing_state, missing_county, missing_scope, bad_state, bad_county, bad_window, bad_trade.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","filter_unsupported_in_mode","missing_group","bad_group","missing_state","missing_county","missing_scope","bad_state","bad_county","bad_window","bad_trade"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/roof/{address}":{"get":{"operationId":"getRoofByAddress","summary":"Roof age and material for an address","description":"One record per matched lookup. A match also uses 1 of the plan's roof allowance, shared with /v1/roof/batch (trial 20 for the whole trial, Starter 1,000, Growth 10,000, Scale 50,000 a month), then prepaid roof credits; with neither left it answers 402 roof_allowance_exhausted with the credit-pack link. A miss uses nothing. A null roof means the address is not in covered data, not that no roof work occurred.","tags":["Roof"],"parameters":[{"name":"address","in":"path","required":true,"description":"URL-encoded street address; may carry city, state and ZIP.","schema":{"type":"string"}},{"name":"zip","in":"query","required":false,"description":"5-digit ZIP; required unless the address string carries one.","schema":{"type":"string","pattern":"^\\d{5}$"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoofState"}}}},"400":{"description":"Error codes: unknown_param, missing_address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_address"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: roof_allowance_exhausted, records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["roof_allowance_exhausted","records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: quota_check_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["quota_check_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/roof/{address}/evidence":{"get":{"operationId":"getRoofByAddressEvidence","summary":"The permits behind a roof answer","tags":["Roof"],"parameters":[{"name":"address","in":"path","required":true,"description":"URL-encoded street address; may carry city, state and ZIP.","schema":{"type":"string"}},{"name":"zip","in":"query","required":false,"description":"5-digit ZIP; required unless the address string carries one.","schema":{"type":"string","pattern":"^\\d{5}$"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoofEvidence"}}}},"400":{"description":"Error codes: unknown_param, missing_address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_address"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/roof/batch":{"post":{"operationId":"postRoofBatch","summary":"Roof lookups for up to 1,000 addresses","tags":["Roof"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["items"],"properties":{"items":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"object","required":["address"],"properties":{"address":{"type":"string"},"zip":{"type":"string"}}}}}}}}},"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoofBatchResult"}}}},"400":{"description":"Error codes: unknown_param, invalid_json, missing_items, too_many_items, missing_address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","invalid_json","missing_items","too_many_items","missing_address"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: batch_volume_exhausted, records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["batch_volume_exhausted","records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: quota_check_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["quota_check_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/roof/coverage":{"get":{"operationId":"getRoofCoverage","summary":"Roof data coverage by jurisdiction","tags":["Roof"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"grade","in":"query","required":false,"description":"Coverage grade.","schema":{"type":"string","enum":["A","B","C"]}},{"name":"county","in":"query","required":false,"description":"County name or code.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoofCoverage"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]}},"security":[{},{"bearerAuth":[]},{"apiKeyHeader":[]}],"x-metered":false}},"/api/v1/roof/structure":{"get":{"operationId":"getRoofStructure","summary":"Roof structure (shape) for a property","tags":["Roof"],"parameters":[{"name":"address","in":"query","required":false,"description":"Street address. One of address+zip, parcel+jurisdiction is required.","schema":{"type":"string"}},{"name":"zip","in":"query","required":false,"description":"5-digit ZIP.","schema":{"type":"string","pattern":"^\\d{5}$"}},{"name":"parcel","in":"query","required":false,"description":"Parcel number.","schema":{"type":"string"}},{"name":"jurisdiction","in":"query","required":false,"description":"Jurisdiction code, with parcel.","schema":{"type":"string"}},{"name":"insurance","in":"query","required":false,"description":"true to queue an aerial read when none is on file (paid, non-trial keys).","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoofStructure"}}}},"400":{"description":"Error codes: unknown_param, missing_target.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_target"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: enqueue_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["enqueue_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/status":{"get":{"operationId":"getStatus","summary":"Measured API availability","tags":["Account"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}},"security":[],"x-metered":false}},"/api/v1/supply/accounts":{"get":{"operationId":"getSupplyAccounts","summary":"Scored contractor accounts for a territory","description":"Demand by trade, momentum, activity grade, territory rank and workers-comp; contacts only with include=contractor_contact. Demand figures are permit-activity proxies; the grade is not a credit score. One record per account. Phone, email and website takeout counts one distinct contractor business group per billing period; repeat retrievals are free. Trials allow 250 for the whole trial. At the contact allowance, records still return without contacts and contacts_withheld supplies the reason and upgrade URL. Permit contact includes with from/updated_since older than 7 days (or no lower bound), and permit detail lookups, withhold contacts on rows with an issue/application date older than 7 days. Portal viewing remains unmetered. CSV files cap at 5,000 records. A key linked to a Supplier Portal workspace spends that plan's records, shared with exports.","tags":["Supply"],"parameters":[{"name":"county","in":"query","required":false,"description":"County name or code, e.g. FL-MIAMI_DADE or Broward.","schema":{"type":"string"}},{"name":"zip","in":"query","required":false,"description":"5-digit ZIP territory.","schema":{"type":"string","pattern":"^\\d{5}$"}},{"name":"trade","in":"query","required":false,"description":"Primary trade.","schema":{"type":"string","enum":["roofing","hvac","electrical","plumbing","pool","solar","windows_doors","fence","demolition","general"]}},{"name":"momentum","in":"query","required":false,"description":"90 days versus the prior 90.","schema":{"type":"string","enum":["growing","steady","declining"]}},{"name":"grade","in":"query","required":false,"description":"Activity grade.","schema":{"type":"string","enum":["A","B","C","D"]}},{"name":"sort","in":"query","required":false,"description":"Default value_12mo.","schema":{"type":"string","enum":["value_12mo","permits_12mo","momentum","roofing_12mo","permits","last_active"]}},{"name":"format","in":"query","required":false,"description":"csv returns the territory as a spreadsheet.","schema":{"type":"string","enum":["json","csv"]}},{"name":"min_permits_12mo","in":"query","required":false,"description":"Floor on 12-month permit count.","schema":{"type":"integer","minimum":0}},{"name":"limit","in":"query","required":false,"description":"Maximum 500.","schema":{"type":"integer","minimum":1,"maximum":500}},{"name":"offset","in":"query","required":false,"description":"Offset paging.","schema":{"type":"integer","minimum":0}},{"name":"include","in":"query","required":false,"description":"contractor_contact adds each account's phones, emails, website, address and serviceability email/phone: only when you ask for it, 1 record per contractor per billing period, subject to the contact allowance. Without it the accounts are served with no contact and no contact charge. Any other value answers 400 unknown_include.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyAccountList"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Error codes: unknown_param, unknown_include, conflicting_territory.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","unknown_include","conflicting_territory"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: contacts_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["contacts_failed","query_failed"]},"503":{"description":"Error codes: zip_lookup_failed, auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["zip_lookup_failed","auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/supply/book":{"get":{"operationId":"getSupplyBook","summary":"List your book of business","description":"Each row enriched with live demand, momentum and grade. Phone, email and website takeout counts one distinct contractor business group per billing period; repeat retrievals are free. Trials allow 250 for the whole trial. At the contact allowance, records still return without contacts and contacts_withheld supplies the reason and upgrade URL. Permit contact includes with from/updated_since older than 7 days (or no lower bound), and permit detail lookups, withhold contacts on rows with an issue/application date older than 7 days. Portal viewing remains unmetered. CSV files cap at 5,000 records. A key linked to a Supplier Portal workspace spends that plan's records, shared with exports.","tags":["Supply"],"parameters":[{"name":"status","in":"query","required":false,"description":"Pipeline status filter (GET).","schema":{"type":"string","enum":["prospect","contacted","active","won","lost"]}},{"name":"rep_id","in":"query","required":false,"description":"Rep id filter (GET).","schema":{"type":"string","format":"uuid"}},{"name":"watch","in":"query","required":false,"description":"Only watched accounts (GET).","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookList"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"post":{"operationId":"postSupplyBook","summary":"Save an account to the book","tags":["Supply"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"license":{"type":"string"},"status":{"type":"string","enum":["prospect","contacted","active","won","lost"],"description":"Default prospect."},"rep_id":{"type":["string","null"],"format":"uuid"},"notes":{"type":["string","null"]},"watch":{"type":"boolean","description":"true puts the account on a monitor (new_permit, license_lapse, insurance_lapse)."},"webhook_url":{"type":"string","format":"uri"}},"required":["license"]}}}},"responses":{"201":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookEntryResult"}}}},"400":{"description":"Error codes: unknown_param, missing_license, invalid_webhook.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_license","invalid_webhook"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["key_not_eligible","product_not_in_plan"]},"409":{"description":"Error codes: duplicate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["duplicate"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: insert_failed, watch_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insert_failed","watch_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"patch":{"operationId":"patchSupplyBook","summary":"Update a book entry","tags":["Supply"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"license":{"type":"string"},"status":{"type":"string","enum":["prospect","contacted","active","won","lost"]},"rep_id":{"type":["string","null"],"format":"uuid"},"notes":{"type":["string","null"]},"watch":{"type":"boolean"},"webhook_url":{"type":["string","null"],"format":"uri"}},"required":["license"]}}}},"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookEntryResult"}}}},"400":{"description":"Error codes: unknown_param, missing_license, invalid_status, nothing_to_update, invalid_webhook.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_license","invalid_status","nothing_to_update","invalid_webhook"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["key_not_eligible","product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: update_failed, watch_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["update_failed","watch_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"delete":{"operationId":"deleteSupplyBook","summary":"Remove an account from the book","tags":["Supply"],"parameters":[{"name":"license","in":"query","required":true,"description":"The license to remove (DELETE).","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookEntryRemoved"}}}},"400":{"description":"Error codes: unknown_param, missing_license.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_license"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["key_not_eligible","product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: delete_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["delete_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/supply/reps":{"get":{"operationId":"getSupplyReps","summary":"List your reps","tags":["Supply"],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepList"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"post":{"operationId":"postSupplyReps","summary":"Add a rep","tags":["Supply"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string","format":"email"}},"required":["name"]}}}},"responses":{"201":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepCreated"}}}},"400":{"description":"Error codes: unknown_param, missing_name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_name"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["key_not_eligible","product_not_in_plan"]},"409":{"description":"Error codes: duplicate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["duplicate"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: insert_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insert_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/supply/territories":{"get":{"operationId":"getSupplyTerritories","summary":"List saved territories","tags":["Supply"],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritoryList"}}}},"400":{"description":"Error codes: unknown_param.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"post":{"operationId":"postSupplyTerritories","summary":"Save a territory filter","tags":["Supply"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"county":{"type":"string"},"trade":{"type":"string","enum":["roofing","hvac","electrical","plumbing","pool","solar","windows_doors","fence","demolition","general"]},"min_permits_12mo":{"type":"integer","minimum":0},"momentum":{"type":"string","enum":["growing","steady","declining"]},"grade":{"type":"string","enum":["A","B","C","D"]},"rep_id":{"type":"string","format":"uuid"}},"required":["name"]}}}},"responses":{"201":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritoryCreated"}}}},"400":{"description":"Error codes: unknown_param, missing_name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_name"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["key_not_eligible","product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: insert_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["insert_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true},"delete":{"operationId":"deleteSupplyTerritories","summary":"Delete a territory","tags":["Supply"],"parameters":[{"name":"id","in":"query","required":true,"description":"Territory id to remove.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritoryRemoved"}}}},"400":{"description":"Error codes: unknown_param, missing_id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_id"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: key_not_eligible, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["key_not_eligible","product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: delete_failed, query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["delete_failed","query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Growth","x-metered":true}},"/api/v1/usage":{"get":{"operationId":"getUsage","summary":"Records used this period","tags":["Account"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"429":{"description":"Error codes: rate_limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-metered":false}},"/api/v1/verify/certifications":{"get":{"operationId":"getVerifyCertifications","summary":"EPA RRP and Florida minority-business certifications","description":"One record.","tags":["Verification"],"parameters":[{"name":"license","in":"query","required":true,"description":"Contractor license number, e.g. CGC1524985.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Certifications"}}}},"400":{"description":"Error codes: unknown_param, missing_query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_query"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","product_not_in_plan"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/verify/insurance":{"get":{"operationId":"getVerifyInsurance","summary":"Workers-comp coverage for a license","description":"FL DWC, TX DWC and CA CSLB proof-of-coverage. One record.","tags":["Verification"],"parameters":[{"name":"license","in":"query","required":true,"description":"Contractor license number, e.g. CGC1524985.","schema":{"type":"string"}},{"name":"state","in":"query","required":false,"description":"FL, TX or CA, when the license number is ambiguous across states.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceVerification"}}}},"400":{"description":"Error codes: unknown_param, missing_query, bad_state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_query","bad_state"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: upgrade_required, product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["upgrade_required","product_not_in_plan"]},"409":{"description":"Error codes: ambiguous_license.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["ambiguous_license"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}},"/api/v1/verify/license":{"get":{"operationId":"getVerifyLicense","summary":"Verify a license","description":"Florida DBPR status, type, dates, qualifier and is_active, refreshed daily. One record.","tags":["Verification"],"parameters":[{"name":"license","in":"query","required":false,"description":"License number. Either license, or name plus county.","schema":{"type":"string"}},{"name":"name","in":"query","required":false,"description":"Business or licensee name, with county.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County, with name.","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-Records-Request":{"$ref":"#/components/headers/X-Records-Request"},"X-Records-Remaining":{"$ref":"#/components/headers/X-Records-Remaining"},"X-Records-Limit":{"$ref":"#/components/headers/X-Records-Limit"},"X-Records-Reset":{"$ref":"#/components/headers/X-Records-Reset"},"X-Contacts-Request":{"$ref":"#/components/headers/X-Contacts-Request"},"X-Contacts-Remaining":{"$ref":"#/components/headers/X-Contacts-Remaining"},"X-Contacts-Limit":{"$ref":"#/components/headers/X-Contacts-Limit"},"X-Contacts-Reset":{"$ref":"#/components/headers/X-Contacts-Reset"},"X-Contacts-Withheld":{"$ref":"#/components/headers/X-Contacts-Withheld"},"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseVerification"}}}},"400":{"description":"Error codes: unknown_param, missing_query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["unknown_param","missing_query"]},"401":{"description":"Error codes: missing_api_key, invalid_api_key, trial_expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["missing_api_key","invalid_api_key","trial_expired"]},"402":{"description":"Error codes: records_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["records_limit_exceeded"]},"403":{"description":"Error codes: product_not_in_plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["product_not_in_plan"]},"404":{"description":"Error codes: not_found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["not_found"]},"429":{"description":"Error codes: rate_limited, trial_daily_limit_exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["rate_limited","trial_daily_limit_exceeded"]},"500":{"description":"Error codes: query_failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["query_failed"]},"503":{"description":"Error codes: auth_unavailable, upstream_unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"x-error-codes":["auth_unavailable","upstream_unavailable"]}},"x-min-tier":"Starter","x-metered":true}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer pmit_..."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key"}},"headers":{"X-Records-Request":{"description":"Records this response counted against your allowance.","schema":{"type":"integer"}},"X-Records-Remaining":{"description":"Records left this period (absent on unlimited plans).","schema":{"type":"integer"}},"X-Records-Limit":{"description":"Monthly records allowance.","schema":{"type":"integer"}},"X-Records-Reset":{"description":"When the allowance resets (ISO 8601).","schema":{"type":"string","format":"date-time"}},"X-Contacts-Request":{"description":"New distinct contractor contacts counted in this request. Repeats this period are free.","schema":{"type":"integer"}},"X-Contacts-Remaining":{"description":"Separate contact allowance remaining, when known. Trials allow 250 for the entire trial.","schema":{"type":"integer"}},"X-Contacts-Limit":{"description":"Distinct contractor contact allowance for the period.","schema":{"type":"integer"}},"X-Contacts-Reset":{"description":"Contact allowance reset time.","schema":{"type":"string","format":"date-time"}},"X-Contacts-Withheld":{"description":"Contact withholding reasons. Records remain available without contacts.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"Requests per minute allowed for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}}},"schemas":{"BookEntry":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"license_number":{"type":"string"},"status":{"type":"string","enum":["prospect","contacted","active","won","lost"]},"rep_id":{"type":["string","null"]},"notes":{"type":["string","null"]},"watch":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"intel":{"type":["object","null"],"description":"Live Contractor Supplier Intelligence data for the licence (GET only); null when the licence is not in the supply matview.","properties":{"business_name":{"type":["string","null"]},"county":{"type":["string","null"]},"city":{"type":["string","null"]},"primary_trade":{"type":["string","null"]},"permits_12mo":{"type":"integer"},"value_12mo_usd":{"type":["number","null"]},"date_source":{"type":["string","null"]},"permits_12mo_issued":{"type":["integer","null"]},"momentum_band":{"type":["string","null"]},"momentum_pct":{"type":["number","null"]},"account_grade":{"type":["string","null"]},"last_permit_date":{"type":["string","null"]}}}},"required":["id","license_number","status"]},"BookEntryRemoved":{"type":"object","properties":{"removed":{"type":"string","description":"The licence number removed."}},"required":["removed"]},"BookEntryResult":{"type":"object","properties":{"account":{"$ref":"#/components/schemas/BookEntry"}},"required":["account"]},"BookList":{"type":"object","properties":{"count":{"type":"integer"},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/BookEntry"}}},"required":["count","accounts"]},"Certifications":{"type":"object","properties":{"license_number":{"type":"string"},"epa_rrp":{"type":"object","properties":{"status":{"type":"string","enum":["certified","not_found"]},"certified":{"type":["boolean","null"]},"certification_number":{"type":["string","null"]},"expiration_date":{"type":["string","null"]},"disciplines":{"type":"array","items":{"type":"string"}}},"required":["status","certified"]},"minority_business":{"type":"object","properties":{"status":{"type":"string","enum":["certified","not_found"]},"certified":{"type":["boolean","null"]},"designation_group":{"type":["string","null"]},"designations":{"type":"array","items":{"type":"string"}}},"required":["status","certified"]},"disclosure":{"type":"string"}},"required":["license_number","epa_rrp","minority_business","disclosure"]},"Contractor":{"type":"object","properties":{"license_number":{"type":"string"},"license_type":{"type":["string","null"]},"license_status":{"type":["string","null"]},"business_name":{"type":["string","null"]},"contact_name":{"type":["string","null"]},"location":{"type":"object","properties":{"city":{"type":["string","null"]},"county":{"type":["string","null"]},"state":{"type":["string","null"]},"zip":{"type":["string","null"]}}},"specialty":{"type":["string","null"]},"website":{"type":["string","null"]},"years_in_business":{"type":["integer","null"]},"license_effective":{"type":["string","null"]},"license_expiration":{"type":["string","null"]},"activity":{"$ref":"#/components/schemas/ContractorActivity"},"enrichment":{"type":"object","properties":{"email":{"type":["object","null"],"properties":{"value":{"type":["string","null"]},"source":{"type":["string","null"]}}},"phone":{"type":["object","null"],"properties":{"value":{"type":["string","null"]},"source":{"type":["string","null"]}}},"workers_comp":{"type":["object","null"],"properties":{"has_coverage":{"type":["boolean","null"]},"carrier":{"type":["string","null"]}}},"epa_lead_safe":{"type":["object","null"],"properties":{"certified":{"type":"boolean"},"certification_number":{"type":["string","null"]},"expiration_date":{"type":["string","null"]}}}}},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["license_number","activity"]},"ContractorActivity":{"type":"object","properties":{"top_trades":{"type":"array","items":{"type":"object","properties":{"trade":{"type":["string","null"]},"permits":{"type":["integer","null"]}}}},"permit_count":{"type":["integer","null"]},"last_permit_date":{"type":["string","null"]},"first_permit_date":{"type":["string","null"]},"permits_last_12mo":{"type":["integer","null"]},"top_jurisdictions":{"type":"array","items":{"type":"object","properties":{"permits":{"type":["integer","null"]},"jurisdiction":{"type":["string","null"]}}}},"value_last_12mo_usd":{"type":["integer","null"]},"total_declared_value_usd":{"type":["integer","null"]},"status_tally":{"type":["object","null"],"additionalProperties":{"type":["integer","null"]}},"tag_tally":{"type":["object","null"],"additionalProperties":{"type":["integer","null"]}},"tally_basis":{"type":["string","null"]}}},"ContractorDetail":{"type":"object","properties":{"links":{"type":"object","properties":{"permits":{"type":["string","null"]}}},"recent_permits":{"type":"array","items":{"$ref":"#/components/schemas/Permit"}},"disclosure":{"type":"string"},"contractor":{"$ref":"#/components/schemas/Contractor"},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["contractor","recent_permits","disclosure"]},"ContractorList":{"type":"object","description":"Search modes return count + contractors[]; ?license= returns a single contractor.","properties":{"count":{"type":"integer"},"disclosure":{"type":"string"},"contractors":{"type":"array","items":{"$ref":"#/components/schemas/Contractor"}},"contractor":{"$ref":"#/components/schemas/Contractor"},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["disclosure"]},"Coverage":{"type":"object","properties":{"generated":{"type":"string"},"disclaimer":{"type":["string","null"]},"total_permits":{"type":["integer","null"]},"total_records_held":{"type":["integer","null"]},"summary":{"type":"object","properties":{"total_permits":{"type":["integer","null"]},"total_states":{"type":["integer","null"]},"district_of_columbia":{"type":["boolean","null"]},"total_territories":{"type":["integer","null"]},"total_jurisdictions":{"type":["integer","null"]},"last12mo_permits":{"type":["integer","null"]}}},"coverage_floor":{"type":"object","properties":{"min_permits":{"type":["integer","null"]},"rule":{"type":["string","null"]},"published_jurisdictions":{"type":["integer","null"]},"excluded_jurisdictions":{"type":["integer","null"]},"excluded_permits":{"type":["integer","null"]}}},"legacy_unmapped":{"type":"object","properties":{"rule":{"type":["string","null"]},"jurisdictions":{"type":["integer","null"]},"permits":{"type":["integer","null"]},"last12mo":{"type":["integer","null"]},"states":{"type":"object","additionalProperties":{"type":"object","properties":{"jurisdictions":{"type":["integer","null"]},"permits":{"type":["integer","null"]},"last12mo":{"type":["integer","null"]}}}}}},"fips_withheld":{"type":"object","properties":{"rule":{"type":["string","null"]},"generated":{"type":"string"},"jurisdictions":{"type":["integer","null"]},"permits":{"type":["integer","null"]},"by_arm":{"type":"object","additionalProperties":{"type":["integer","null"]}},"states":{"type":"object","additionalProperties":{"type":"object","properties":{"jurisdictions":{"type":["integer","null"]},"permits":{"type":["integer","null"]}}}}}},"states":{"type":"object","additionalProperties":{"type":"object","properties":{"permits":{"type":["integer","null"]},"last12mo":{"type":["integer","null"]},"jurisdictions":{"type":["integer","null"]},"license_resolved":{"type":["integer","null"]},"contractors":{"type":["integer","null"]},"contractors_basis":{"type":["string","null"]},"legacy_unmapped_permits":{"type":["integer","null"]},"permits_all_records":{"type":["integer","null"]}}}},"jurisdictions":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"jurisdiction":{"type":["string","null"]},"permits":{"type":["integer","null"]},"last12mo":{"type":["integer","null"]},"license_resolved":{"type":["integer","null"]},"last_inserted":{"type":["string","null"]},"dated_permits":{"type":["integer","null"]},"newest_permit":{"type":["string","null"]}}}}},"detail":{"type":["string","null"]}},"required":["generated","disclaimer","summary","states"]},"Error":{"type":"object","description":"Every non-2xx body. `error` is a stable machine code; `message` is for humans. Some codes add fields (unknown_param adds unknown/allowed, filter_unsupported_in_mode adds param/mode/example_url, product_not_in_plan adds upgrade_to).","properties":{"error":{"type":"string"},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":true},"InsuranceVerification":{"type":"object","properties":{"license_number":{"type":"string"},"state":{"type":["string","null"]},"wc_status":{"type":["string","null"]},"found":{"type":["boolean","null"]},"carrier_name":{"type":["string","null"]},"policy_effective_date":{"type":["string","null"]},"policy_expiration_date":{"type":["string","null"]},"cancelled":{"type":["boolean","null"]},"coverage":{"type":"array","items":{"type":"object","properties":{"coverage_type":{"type":["string","null"]},"state":{"type":["string","null"]},"status":{"type":["string","null"]},"provider_name":{"type":["string","null"]},"policy_number":{"type":["string","null"]},"effective_date":{"type":["string","null"]},"expiration_date":{"type":["string","null"]},"cancellation_date":{"type":["string","null"]}}}},"as_of":{"type":"string"},"disclosure":{"type":"string"}},"required":["license_number","state","wc_status","found","carrier_name","policy_effective_date","policy_expiration_date","cancelled","coverage","as_of","disclosure"]},"Jurisdiction":{"type":"object","properties":{"jurisdiction":{"type":["string","null"]},"state":{"type":["string","null"]},"county":{"type":["string","null"]},"permits":{"type":["integer","null"]},"last12mo":{"type":["integer","null"]},"license_resolved":{"type":["integer","null"]},"last_inserted":{"type":["string","null"]},"addressable":{"type":["boolean","null"]}},"required":["jurisdiction","state","county","permits","last12mo","license_resolved","last_inserted","addressable"]},"JurisdictionList":{"type":"object","properties":{"generated":{"type":"string"},"disclaimer":{"type":["string","null"]},"source":{"type":"object","properties":{"name":{"type":["string","null"]},"description":{"type":["string","null"]}}},"count":{"type":"integer"},"not_addressable":{"type":["integer","null"]},"total_matched":{"type":"integer"},"total":{"type":["integer","null"]},"coverage_jurisdictions":{"type":["integer","null"],"description":"How many listed keys are in published coverage; equals /api/v1/coverage totals.total_jurisdictions."},"outside_coverage":{"type":["integer","null"],"description":"Listed keys holding real records not yet placed on a jurisdiction and county; total = coverage_jurisdictions + outside_coverage."},"limit":{"type":"integer"},"offset":{"type":"integer"},"filters":{"type":"object","properties":{"state":{"type":["string","null"]},"county":{"type":["string","null"]},"q":{"type":["string","null"]}}},"detail":{"type":["string","null"]},"jurisdictions":{"type":"array","items":{"$ref":"#/components/schemas/Jurisdiction"},"description":"Present only when a key is sent."}},"required":["count","disclaimer"]},"LicenseVerification":{"type":"object","properties":{"license_number":{"type":"string"},"status":{"type":["string","null"]},"license_type":{"type":["string","null"]},"effective_date":{"type":["string","null"]},"expiration_date":{"type":["string","null"]},"qualifier_name":{"type":["string","null"]},"qualifier_license":{"type":["string","null"]},"verified_at":{"type":["string","null"]},"is_active":{"type":["boolean","null"]},"expires_in_days":{"type":["integer","null"]},"disclosure":{"type":"string"}},"required":["license_number","status","license_type","effective_date","expiration_date","qualifier_name","qualifier_license","verified_at","is_active","expires_in_days","disclosure"]},"Monitor":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"license_number":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["license_lapse","insurance_lapse","new_permit","cert_expiry"]}},"webhook_url":{"type":["string","null"]},"active":{"type":"boolean"},"last_checked_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":"string","format":"date-time"},"webhook_secret":{"type":"string","description":"Returned once, on creation, when webhook_url is set."}},"required":["id","license_number","events","active"]},"MonitorCreated":{"type":"object","properties":{"monitor":{"$ref":"#/components/schemas/Monitor"},"note":{"type":"string"}},"required":["monitor"]},"MonitorDeleted":{"type":"object","properties":{"deleted":{"type":"string","format":"uuid"}},"required":["deleted"]},"MonitorEvent":{"type":"object","properties":{"id":{"type":["string","integer"]},"event_type":{"type":"string","enum":["license_lapse","insurance_lapse","new_permit","cert_expiry"]},"payload":{"type":["object","null"]},"detected_at":{"type":"string","format":"date-time"},"delivery_status":{"type":["string","null"]}},"required":["id","event_type","detected_at"]},"MonitorEventList":{"type":"object","properties":{"count":{"type":"integer"},"events":{"type":"array","items":{"$ref":"#/components/schemas/MonitorEvent"}}},"required":["count","events"]},"MonitorList":{"type":"object","properties":{"count":{"type":"integer"},"monitors":{"type":"array","items":{"$ref":"#/components/schemas/Monitor"}}},"required":["count","monitors"]},"Permit":{"type":"object","properties":{"id":{"type":"integer","description":"Internal PermitIntel id; the key for GET /api/v1/permits/{id}."},"jurisdiction":{"type":["string","null"]},"jurisdiction_resolved":{"type":["boolean","null"]},"jurisdiction_place":{"type":["string","null"]},"permit_number":{"type":["string","null"]},"permit_type":{"type":["string","null"]},"work_class":{"type":["string","null"]},"work_type":{"type":["string","null"],"description":"The source's own type-of-work wording."},"description":{"type":["string","null"]},"status":{"type":["string","null"]},"apply_date":{"type":["string","null"],"format":"date"},"issue_date":{"type":["string","null"],"format":"date"},"finalize_date":{"type":["string","null"],"format":"date"},"date_basis":{"type":"string","enum":["issued","applied","none"],"description":"Which date placed this row: issued (issue_date is present), applied (no issue_date is on record; apply_date is present, so the permit is not known to be issued from its dates), none (neither date). zip, city and jurisdiction pages list issued rows first, then applied; none rows are served only by address, contractor and the change feed."},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"approval_duration_days":{"type":["integer","null"]},"construction_duration_days":{"type":["integer","null"]},"total_duration_days":{"type":["integer","null"]},"status_stage":{"type":["string","null"]},"status_stage_basis":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"},"description":"Normalized trade tags (roofing, hvac, electrical, ...)."},"trade_family":{"type":["string","null"],"description":"One trade per permit, read from its published type (electrical, roofing, plumbing, hvac, windows_doors, solar, pool, gas, concrete, fence, demolition, shutters, generator, battery). null = not labelled (yet, or no single trade). Absent with exclude=labels."},"work_category":{"type":["string","null"],"description":"What kind of work the permit is (new_construction, addition, alteration_remodel, roofing_reroof, ...), from our work-category labels: Florida permits so far, filled for new construction in Miami-Dade. null = not labelled, not 'none'. Absent with exclude=labels."},"work_category_occupancy":{"type":["string","null"],"description":"The occupancy the work-category label read off the permit (residential, multi_family, commercial, industrial, institutional, mixed, unknown). null when the permit carries no work_category."},"work_tags":{"type":["array","null"],"items":{"type":"string"},"description":"Work tags (a permit can carry several), only tags whose rule passed a 30-permit check: roofing, electrical, fence, windows_doors, pool_hot_tub, gas, generator, concrete_paving, fire_sprinkler, fire_alarm, sign, right_of_way, water_heater, heat_pump, solar_thermal, ev_charger, foundation, demolition, kitchen, bathroom, grading, residential, single_family. Florida permits so far. null = not labelled. Absent with exclude=labels."},"value_usd":{"type":["integer","null"]},"work_performed_by":{"type":["object","null"],"description":"Government/utility/hauler party with credentials proved against its issuing government record and bound to this exact permit and party; not a contractor. Empty credentials means ownership remains unverified.","properties":{"name":{"type":"string"},"credentials":{"type":"array","items":{"type":"object"}}}},"contractor":{"type":"object","properties":{"name":{"type":["string","null"],"description":"The contractor the permit lists: the source's company column, else its contractor-name column where the contact role names a contractor or the source is proved to publish the contractor in that column. null for applicant/agent/owner/contact/design-professional rows and unproved sources."},"name_basis":{"type":["string","null"],"enum":["company_field","contractor_role","contractor_name_field","contractor_name_field_owner",null],"description":"Why `name` is the contractor: company_field = the source's company column; contractor_role = the source's contact role names a contractor type; contractor_name_field = the source's contractor-name column, for sources proved to publish the contractor there; contractor_name_field_owner = the same, where that name equals the permit's owner (an owner-builder). null when name is null."},"work_performed_by":{"type":["string","null"],"description":"A utility, government body or hauler the permit lists as doing the work itself. Never served as contractor `name`; proved credentials are attributed in the top-level work_performed_by object, never under contractor. Missing proof is unresolved, not a repaired match."},"license_number":{"type":["string","null"],"description":"A state or board licence matched to this contractor. Never a city/county registration (see `registration`)."},"license_authority":{"type":["string","null"],"description":"Who issued license_number (e.g. TX_TDLR, TX_TSBPE, FL_DBPR). null when no issuing board is proved."},"registration":{"type":["object","null"],"description":"A city or county contractor registration, kept apart from licences and never counted as a licence match. Many cities register contractors who hold no state licence, so this is the reference to check them by. issuing_jurisdiction may differ from the permit's jurisdiction.","properties":{"number":{"type":"string","description":"The registration number as the issuing city or county prints it, e.g. R14-0670."},"issuing_jurisdiction":{"type":["string","null"],"description":"Jurisdiction key of the place that issued the registration, e.g. TX-COLLIN-FRISCO."},"authority":{"type":["string","null"],"description":"The issuing place by name, e.g. \"Frisco, TX\"."},"label":{"type":"string","description":"What the number is, for display, e.g. \"Frisco contractor registration\"."},"source":{"type":["string","null"],"description":"The source feed the registration was read from."}}},"business_name":{"type":["string","null"]},"license_type":{"type":["string","null"]},"license_status":{"type":["string","null"]},"contact":{"type":["object","null"],"description":"Present only with include=contractor_contact, on search rows and on GET /api/v1/permits/{id} alike, subject to contact allowance and lookback.","properties":{"license_number":{"type":["string","null"]},"business_name":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"website_verified":{"type":["string","null"]},"source":{"type":["string","null"],"enum":["permit","license","permit+license",null],"description":"Where the served values came from: the contact published on this permit, the contractor's licence record, or both. Null when no value is served."}}}}},"applicant":{"type":["object","null"],"description":"Set instead of contractor when the source column names the applicant or property owner rather than a contractor.","properties":{"name":{"type":["string","null"]}}},"occupancy_type":{"type":["string","null"]},"plan_review":{"type":["object","null"],"properties":{"approved_date":{"type":["string","null"]},"status":{"type":["string","null"]}}},"site":{"type":"object","properties":{"address":{"type":"string"},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"zip":{"type":["string","null"]},"parcel":{"type":["string","null"]},"unit":{"type":["string","null"],"description":"The apartment, suite, unit or lot number at the end of the site address, kept in its own field so address is the street address alone (for example address \"3725 S OCEAN Dr\", unit \"1223\"). Null when the permit names no unit."}}},"property":{"type":"object","properties":{"owner_name":{"type":["string","null"]},"owner_name_may_be_truncated":{"type":["boolean","null"]},"year_built":{"type":["integer","null"]},"living_sqft":{"type":["integer","null"]},"total_value":{"type":["integer","null"]},"assessed_value":{"type":["integer","null"]},"land_value":{"type":["integer","null"]},"property_class":{"type":["string","null"]},"last_sale_price":{"type":["integer","null"],"description":"Price of the parcel's most recent sale. From the county deed record where we hold one for this parcel, otherwise from the county property roll; sources.last_sale says which. Null when the deed carries no usable price (never the roll's older price beside a deed date). Also null when last_sale_parcel_count is above 1: one deed sold several parcels together, so its price is not this property's; the deed's total is in last_sale_deed_total_price."},"last_sale_deed_total_price":{"type":["integer","null"],"description":"Only for a deed-sourced sale that covered more than one parcel (last_sale_parcel_count above 1): the total consideration recorded on that deed for all of those parcels together, in whole dollars. Not this property's price. Null when the deed covers one parcel, when the deed carries no usable price, and for roll values."},"last_sale_date":{"type":["string","null"],"description":"Date of that sale. Deed values are YYYY-MM-DD, or YYYY-MM where the county publishes only the month (see last_sale_date_precision); a day is never invented. Roll values are passed through as the roll publishes them."},"last_sale_date_precision":{"type":["string","null"],"enum":["day","month",null],"description":"Precision of a deed-sourced last_sale_date: day or month. Null for roll values, whose precision the roll does not state."},"last_sale_parcel_count":{"type":["integer","null"],"description":"For a deed-sourced sale, how many parcels the same deed sale covered (same county, date, price and buyer). 1 for a single-parcel sale or where the buyer is not published. Above 1, last_sale_price is null and the deed's total is in last_sale_deed_total_price. Null for roll values."},"roof":{"type":"object","properties":{"structure_code":{"type":["string","null"]},"cover_code":{"type":["string","null"]},"condition":{"type":["string","null"]},"footprint_sqft":{"type":["number","null"]}}},"sources":{"type":"object","properties":{"owner_name":{"type":["string","null"]},"year_built":{"type":["string","null"]},"zip":{"type":["string","null"]},"last_sale":{"type":["string","null"],"enum":["county_deed","county_property_roll",null],"description":"Where last_sale_price and last_sale_date came from: county_deed (the county's recorded deed sale, preferred wherever we hold one) or county_property_roll. Null when no sale is on file."},"always_county_property_roll":{"type":"array","items":{"type":["string","null"]}}}}}},"record_kind":{"type":"string","enum":["permit","right_of_way","sign"],"description":"permit; right_of_way for a permit for work in the public right-of-way (driveway apron, sidewalk, utility cut); or sign for a permanent installed sign permit (wall, monument, pylon, changeable-message, billboard structure). Right-of-way and sign permits are served in contractor, address, jurisdiction, label, zip and city modes, not in the change feed (updated_since); see the right_of_way parameter."},"record_kind_label":{"type":["string","null"],"description":"\"Right-of-way\" on a right_of_way row, \"Permanent sign\" on a sign row, null on a permit."},"current_owner_of_record":{"type":["object","null"],"description":"Present only with include=current_owner, last on the row. The current owner of record (county PVA roll, roll dated …), served where the roll shows no sale date. It is NOT the owner at permit time: that stays property.owner_name. Metered like a contractor contact (1 record per property owner per billing period, same allowance and 7-day window). Null when there is none or it is withheld (see current_owner_withheld).","properties":{"name":{"type":"string"},"mailing":{"type":["string","null"]},"mailing_unit":{"type":["string","null"]},"label":{"type":"string","description":"\"Current owner of record (<source>, roll dated <Mon D, YYYY>)\"."},"source":{"type":"string"},"roll_date":{"type":"string","format":"date"},"lookup_date":{"type":["string","null"],"format":"date"},"basis":{"type":"string","enum":["current_owner_of_record"]}}},"current_owner_withheld":{"type":["object","null"],"description":"Only with include=current_owner, when the row's current owner of record was withheld: reason (contact_lookback_exceeded, trial_contact_allowance_exhausted, records_allowance_exhausted, contact_meter_unavailable), upgrade_url, resets_at."},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["id","jurisdiction","permit_number","contractor","site","property"]},"PermitDetail":{"type":"object","properties":{"disclosure":{"type":"string"},"permit":{"$ref":"#/components/schemas/Permit"},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["permit","disclosure"]},"PermitList":{"type":"object","properties":{"query":{"type":"object","properties":{"mode":{"type":"string"},"zip":{"type":["string","null"]},"zip_match":{"type":["string","null"]},"undated_excluded":{"type":["boolean","null"],"description":"zip, city and browse: false when this request's order continues into permits with no issue date after the dated ones; true when they were left out, with undated_excluded_reason saying why."},"undated_included_count":{"type":["integer","null"],"description":"How many rows on this page have no issue date (date_basis applied)."},"dateless_excluded":{"type":["boolean","null"],"description":"zip, city and browse: always true. Permits carrying neither an issue date nor an application date are not part of these pages; address lookups and the change feed return them."},"undated_only":{"type":["boolean","null"],"description":"Present and true when undated=only was sent: the page starts at the first undated permit and holds no dated rows."},"undated_excluded_reason":{"type":["string","null"],"enum":["date_filter","date_window","caller_opt_out","zip_index_pending","timeout","failed",null],"description":"Present when undated_excluded is true. date_filter: from/to filter issue_date. date_window: the page was served inside an issue_date window. caller_opt_out: undated=exclude. zip_index_pending: not yet available in zip mode. timeout/failed: the undated part could not be read; the dated rows are complete."},"updated_since":{"type":["string","null"]},"new_only":{"type":["boolean","null"]},"contractor":{"type":["string","null"]},"jurisdiction":{"type":["string","null"]},"address":{"type":"string"},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"jurisdictions":{"type":"array","items":{"type":["string","null"]}},"city_match":{"type":["string","null"]}}},"count":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"disclosure":{"type":"string"},"meta":{"type":"object","properties":{"next_cursor":{"type":["string","null"]},"has_more":{"type":["boolean","null"]},"page_note":{"type":["string","null"]},"scan_complete":{"type":["boolean","null"]},"feed_basis":{"type":["string","null"]},"contractor_contact_complete":{"type":["boolean","null"]},"labels":{"type":"object","description":"How the four label keys on this page were read. complete:false means the lookup did not finish, so some nulls may be labelled permits.","properties":{"complete":{"type":"boolean"},"looked_up":{"type":"integer"},"florida_looked_up":{"type":"integer"},"trade_family_labelled":{"type":"integer"},"work_category_labelled":{"type":"integer"},"work_tags_labelled":{"type":"integer"},"note":{"type":"string"}}}}},"label_filter":{"type":"object","description":"labels mode: how work_category / tag were matched. label_store = every permit the store labels with these values, read by id and narrowed by your other filters (matched is the exact total of labelled matches). jurisdiction_walk = the store holds too many for that, so one jurisdiction was walked newest first (see label_window).","properties":{"work_category":{"type":"array","items":{"type":"string"}},"tag":{"type":"array","items":{"type":"string"}},"tag_gate":{"type":"object","description":"Passed ship score per SERVED tag asked for. Proposed tags have no score and are not listed here; see tag_status.","additionalProperties":{"type":"string"}},"tag_status":{"type":"object","description":"Every tag the request named (asked for, excluded or via property_type): status 'served' with its gate, or 'proposal; production backfill pending' with gate null and the evidence it reads.","additionalProperties":{"type":"object","properties":{"status":{"type":"string"},"gate":{"type":["string","null"]},"evidence":{"type":"string"}}}},"property_type":{"type":"array","items":{"type":"string","enum":["residential","single_family","commercial"]}},"property_type_source":{"type":"string","enum":["assessor_land_use_code"]},"exclusion":{"type":"object","description":"tag=-x. Drops permits the tag store labels with any excluded tag; permits with no tag row are unknown and are kept, counted in unlabelled_kept (on this page).","properties":{"tags":{"type":"array","items":{"type":"string"}},"drops":{"type":"string"},"keeps_unlabelled":{"type":"boolean"},"unlabelled_kept":{"type":"integer"},"note":{"type":"string"}}},"semantics":{"type":"string","description":"OR within one parameter; AND across work_category, tag and property_type."},"matcher":{"type":"string","enum":["label_store","jurisdiction_walk"]},"store_rows":{"type":"integer"},"matched":{"type":"integer"},"complete_within_store":{"type":"boolean","description":"label_store: every permit the label store holds for these values was considered. The store covers only what approved backfills wrote (Florida so far), so this is not a claim about every permit in the market."},"order":{"type":"string"},"note":{"type":"string"}}},"label_window":{"type":"object","description":"labels mode, jurisdiction_walk only: how far the walk got.","properties":{"scanned_rows":{"type":"integer"},"scan_limit":{"type":"integer"},"newest_issue_date":{"type":["string","null"]},"oldest_issue_date_scanned":{"type":["string","null"]},"exhausted":{"type":"boolean"},"stopped":{"type":["string","null"]},"note":{"type":"string"}}},"did_you_mean":{"type":"object","properties":{"message":{"type":["string","null"]},"source":{"type":["string","null"]},"county":{"type":["string","null"]},"candidates":{"type":"array","items":{"type":"object","properties":{"jurisdiction":{"type":["string","null"]},"permits":{"type":["integer","null"]},"last12mo":{"type":["integer","null"]}}}}}},"permits":{"type":"array","items":{"$ref":"#/components/schemas/Permit"}},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["count","permits","disclosure"]},"Rep":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":["string","null"]},"active":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}},"required":["id","name"]},"RepCreated":{"type":"object","properties":{"rep":{"$ref":"#/components/schemas/Rep"}},"required":["rep"]},"RepList":{"type":"object","properties":{"count":{"type":"integer"},"reps":{"type":"array","items":{"$ref":"#/components/schemas/Rep"}}},"required":["count","reps"]},"RiskInsurance":{"type":"object","properties":{"address":{"type":"string"},"city":{"type":["string","null"]},"zip":{"type":["string","null"]},"permit_count":{"type":["integer","null"]},"permit_count_truncated":{"type":["boolean","null"]},"roof_age_years":{"type":["integer","null"]},"last_roof_permit_date":{"type":["string","null"]},"major_system_permits_5y":{"type":["integer","null"]},"open_permits":{"type":["integer","null"]},"last_permit_value_usd":{"type":["integer","null"]},"last_activity_date":{"type":["string","null"]},"systems_touched":{"type":"array","items":{"type":["string","null"]}},"as_of":{"type":"string"},"disclosure":{"type":"string"}},"required":["address","city","zip","permit_count","permit_count_truncated","roof_age_years","last_roof_permit_date","major_system_permits_5y","open_permits","last_permit_value_usd","last_activity_date","systems_touched","as_of","disclosure"]},"RollupList":{"type":"object","properties":{"generated":{"type":"string"},"query":{"type":"object","properties":{"group":{"type":"string"},"state":{"type":["string","null"]},"county":{"type":["string","null"]},"jurisdiction":{"type":["string","null"]},"trade":{"type":["string","null"]},"window":{"type":["string","null"]},"limit":{"type":"integer"},"offset":{"type":"integer"}}},"count":{"type":"integer"},"total_matched":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"basis":{"type":["string","null"]},"bases":{"type":"object","properties":{"rollup_aggregate":{"type":["string","null"]},"coverage_file":{"type":["string","null"]}}},"window_meaning":{"type":["string","null"]},"cost":{"type":["string","null"]},"disclosure":{"type":"string"},"aggregate":{"type":"object","properties":{"table":{"type":["string","null"]},"build_id":{"type":["integer","null"]},"builder":{"type":["string","null"]},"exporter":{"type":["string","null"]},"months":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]}}},"window_12mo":{"type":"object","properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]}}}}},"excluded":{"type":"object","properties":{"counties":{"type":"object","properties":{"places":{"type":["integer","null"]},"permits":{"type":["integer","null"]},"unnamed":{"type":["integer","null"]},"unnamed_permits":{"type":["integer","null"]}}},"zips":{"type":"object","properties":{"places":{"type":["integer","null"]},"permits":{"type":["integer","null"]}}}}},"rows":{"type":"array","items":{"$ref":"#/components/schemas/RollupRow"}}},"required":["rows","count","disclosure"]},"RollupRow":{"type":"object","properties":{"group":{"type":"string"},"county":{"type":["string","null"]},"county_name":{"type":["string","null"]},"state":{"type":["string","null"]},"county_fips":{"type":["string","null"]},"permits":{"type":["integer","null"]},"permits_12mo":{"type":["integer","null"]},"declared_value":{"type":["integer","null"]},"value_12mo":{"type":["integer","null"]},"license_resolved":{"type":["integer","null"]},"license_resolved_12mo":{"type":["integer","null"]},"last_issue_month":{"type":["string","null"]},"last_issue_date":{"type":["string","null"]},"in_jurisdiction_catalog":{"type":["boolean","null"]},"basis":{"type":["string","null"]},"zip":{"type":["string","null"]},"jurisdiction":{"type":["string","null"]},"addressable":{"type":["boolean","null"]}},"required":["group","county","state","permits","permits_12mo","declared_value","value_12mo","license_resolved","license_resolved_12mo","last_issue_month","last_issue_date","basis"]},"RoofBatchResult":{"type":"object","properties":{"requested":{"type":"integer"},"matched":{"type":"integer"},"match_rate_pct":{"type":["integer","null"]},"results":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"address":{"type":"string"},"zip":{"type":["string","null"]},"street":{"type":["string","null"]},"match_basis":{"type":["string","null"]},"matched":{"type":"boolean"},"jurisdiction":{"type":["string","null"]},"roof_age_years":{"type":["integer","null"]},"roof_last_permit_date":{"type":["string","null"]},"roof_material":{"type":["string","null"]},"roof_material_source":{"type":["string","null"]}}}},"as_of":{"type":"string"},"usage":{"type":"object","properties":{"properties_this_month":{"type":["integer","null"]},"included_this_month":{"type":["integer","null"]},"credits_remaining":{"type":["integer","null"]}}},"disclosure":{"type":"string"}},"required":["requested","matched","match_rate_pct","results","as_of","usage","disclosure"]},"RoofCoverage":{"type":"object","properties":{"jurisdictions":{"type":["integer","null"]},"totals":{"type":"object","properties":{"properties":{"type":["integer","null"]},"with_roof_age":{"type":["integer","null"]},"with_roof_material":{"type":["integer","null"]}}},"grades":{"type":"object","properties":{"A":{"type":["integer","null"]},"B":{"type":["integer","null"]},"C":{"type":["integer","null"]}}},"grade_key":{"type":"object","properties":{"A":{"type":["string","null"]},"B":{"type":["string","null"]},"C":{"type":["string","null"]}}},"as_of":{"type":"string"},"disclosure":{"type":"string"},"coverage":{"type":"array","items":{"type":"object","properties":{"jurisdiction":{"type":["string","null"]},"county":{"type":["string","null"]},"state":{"type":["string","null"]},"properties":{"type":["integer","null"]},"with_age":{"type":["integer","null"]},"age_pct":{"type":["integer","null"]},"with_material":{"type":["integer","null"]},"material_pct":{"type":["number","null"]},"freshest_permit":{"type":["string","null"]},"coverage_grade":{"type":["string","null"]}}}},"detail":{"type":["string","null"]}},"required":["jurisdictions","totals","grades","grade_key","as_of","disclosure"]},"RoofEvidence":{"type":"object","properties":{"address":{"type":"string"},"zip":{"type":["string","null"]},"parsed_address":{"type":"object","properties":{"street":{"type":["string","null"]},"match_basis":{"type":["string","null"]},"zip":{"type":["string","null"]},"zip_source":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]}}},"permit_count":{"type":["integer","null"]},"permits":{"type":"array","items":{"type":"object","properties":{"permit_number":{"type":["string","null"]},"jurisdiction":{"type":["string","null"]},"permit_type":{"type":["string","null"]},"work_class":{"type":["string","null"]},"type_of_work":{"type":["string","null"]},"description":{"type":["string","null"]},"status":{"type":["string","null"]},"issue_date":{"type":["string","null"]},"permit_value_usd":{"type":["integer","null"]},"contractor":{"type":["string","null"]},"contractor_license":{"type":["string","null"]},"site_address":{"type":["string","null"]},"site_zip":{"type":["string","null"]}}}},"as_of":{"type":"string"},"disclosure":{"type":"string"}},"required":["address","zip","parsed_address","permit_count","permits","as_of","disclosure"]},"RoofState":{"type":"object","properties":{"address":{"type":"string"},"zip":{"type":["string","null"]},"parsed_address":{"type":"object","properties":{"street":{"type":["string","null"]},"match_basis":{"type":["string","null"]},"zip":{"type":["string","null"]},"zip_source":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]}}},"matched":{"type":"boolean"},"match_count":{"type":["integer","null"]},"roof":{"type":["object","null"],"properties":{"site_address":{"type":["string","null"]},"site_city":{"type":["string","null"]},"site_state":{"type":["string","null"]},"site_zip":{"type":["string","null"]},"jurisdiction":{"type":["string","null"]},"parcel_number":{"type":["string","null"]},"roof_age_years":{"type":["integer","null"]},"roof_age_years_est":{"type":["integer","null"]},"roof_age_source":{"type":["string","null"]},"roof_last_permit_date":{"type":["string","null"]},"roof_material":{"type":["string","null"]},"roof_material_source":{"type":["string","null"]},"roof_material_confidence":{"type":["string","null"]}}},"alternates":{"type":"array","items":{"type":"object"}},"coverage_grade":{"type":["string","null"]},"jurisdiction_coverage":{"type":"object","properties":{"age_fill_pct":{"type":["integer","null"]},"age_floor_fill_pct":{"type":["integer","null"]},"material_fill_pct":{"type":["number","null"]},"properties_covered":{"type":["integer","null"]}}},"evidence_url":{"type":["string","null"]},"as_of":{"type":"string"},"disclosure":{"type":"string"}},"required":["address","zip","parsed_address","matched","match_count","roof","alternates","coverage_grade","jurisdiction_coverage","evidence_url","as_of","disclosure"]},"RoofStructure":{"type":"object","properties":{"address":{"type":"string"},"zip":{"type":["string","null"]},"roof_structure":{"type":["string","null"]},"roof_structure_source":{"type":["string","null"]},"status":{"type":["string","null"]},"retry_after_seconds":{"type":["integer","null"]},"message":{"type":["string","null"]},"disclosure":{"type":"string"},"coverage_grade":{"type":["string","null"]}},"required":["address","zip","roof_structure","roof_structure_source","status","message","disclosure"]},"Status":{"type":"object","properties":{"service":{"type":"string"},"generated_at":{"type":["string","null"]},"current":{"type":"object","properties":{"state":{"type":["string","null"]},"checked_at":{"type":["string","null"]},"probes_ok":{"type":["integer","null"]},"probes_total":{"type":["integer","null"]},"codes":{"type":"object","properties":{"http_500":{"type":["integer","null"]},"http_503":{"type":["integer","null"]},"http_000":{"type":["integer","null"]},"http_other":{"type":["integer","null"]}}},"errors":{"description":"Probe error detail when the latest check failed; null when it passed."}}},"availability":{"type":"object","properties":{"24h":{"type":"object","properties":{"availability_pct":{"type":["number","null"]},"probes":{"type":["integer","null"]},"probes_failed":{"type":["integer","null"]},"checks":{"type":["integer","null"]},"window_fully_covered":{"type":["boolean","null"]},"measured_since":{"type":["string","null"]}}},"7d":{"type":"object","properties":{"availability_pct":{"type":["number","null"]},"probes":{"type":["integer","null"]},"probes_failed":{"type":["integer","null"]},"checks":{"type":["integer","null"]},"window_fully_covered":{"type":["boolean","null"]},"measured_since":{"type":["string","null"]}}},"30d":{"type":"object","properties":{"availability_pct":{"type":["number","null"]},"probes":{"type":["integer","null"]},"probes_failed":{"type":["integer","null"]},"checks":{"type":["integer","null"]},"window_fully_covered":{"type":["boolean","null"]},"measured_since":{"type":["string","null"]}}}}},"measurement":{"type":"object","properties":{"method":{"type":["string","null"]},"probes":{"type":"array","items":{"type":["string","null"]}},"interval_minutes":{"type":["integer","null"]},"denominator":{"type":["string","null"]},"history_since":{"type":["string","null"]},"history_days":{"type":["number","null"]},"caveat":{"type":["string","null"]}}},"incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"start_utc":{"type":["string","null"]},"end_utc":{"type":["string","null"]},"max_duration_minutes":{"type":["integer","null"]},"impact":{"type":["string","null"]},"status":{"type":["string","null"]},"summary":{"type":["string","null"]},"cause":{"type":["string","null"]},"customer_action":{"type":["string","null"]}}}},"snapshot_age_seconds":{"type":["integer","null"]},"snapshot_stale":{"type":["boolean","null"]},"stale_after_seconds":{"type":["integer","null"]},"disclaimer":{"type":["string","null"]}},"required":["service","generated_at","current","availability","measurement","incidents","snapshot_age_seconds","snapshot_stale","stale_after_seconds","disclaimer"]},"SupplyAccount":{"type":"object","properties":{"license_number":{"type":"string"},"business_name":{"type":["string","null"]},"location":{"type":"object","properties":{"county":{"type":["string","null"]},"city":{"type":["string","null"]}}},"license":{"type":"object","properties":{"type":{"type":["string","null"]},"status":{"type":["string","null"]}}},"demand":{"type":"object","properties":{"primary_trade":{"type":["string","null"]},"trades_12mo":{"type":"object","additionalProperties":{"type":["integer","null"]}},"roofing_permits_12mo":{"type":["integer","null"]},"permits_12mo":{"type":["integer","null"]},"permits_lifetime":{"type":["integer","null"]},"value_12mo_usd":{"type":["integer","null"]},"value_lifetime_usd":{"type":["integer","null"]},"last_permit_date":{"type":["string","null"]},"first_permit_date":{"type":["string","null"]},"date_source":{"type":["string","null"]},"permits_12mo_issued":{"type":["integer","null"]}}},"momentum":{"type":"object","properties":{"band":{"type":["string","null"]},"pct":{"type":["integer","null"]},"permits_90d":{"type":["integer","null"]}}},"account_grade":{"type":["string","null"],"enum":["A","B","C","D",null]},"territory":{"type":"object","properties":{"rank":{"type":["integer","null"]},"size":{"type":["integer","null"]}}},"serviceability":{"type":"object","properties":{"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"workers_comp":{"type":["object","null"],"properties":{"has_coverage":{"type":"boolean"},"carrier":{"type":["string","null"]}}}}},"contacts":{"type":"object","properties":{"website":{"type":["string","null"]},"website_verdict":{"type":["string","null"]},"website_unverified":{"type":["string","null"]},"address":{"type":"string"},"phones":{"type":"array","items":{"type":"object","properties":{"phone":{"type":["string","null"]},"seen":{"type":["integer","null"]},"sources":{"type":"array","items":{"type":["string","null"]}},"first_seen":{"type":["string","null"]},"last_seen":{"type":["string","null"]}}}},"emails":{"type":"array","items":{"type":"object","properties":{"email":{"type":["string","null"]},"seen":{"type":["integer","null"]},"sources":{"type":"array","items":{"type":["string","null"]}},"dbpr_filed":{"type":["boolean","null"]},"first_seen":{"type":["string","null"]},"last_seen":{"type":["string","null"]}}}},"hidden":{"type":"object","properties":{"count":{"type":"integer"},"reasons":{"type":"object","additionalProperties":{"type":["integer","null"]}}}}}},"zip_activity":{"type":"object","properties":{"zip":{"type":["string","null"]},"permits_12mo":{"type":["integer","null"]},"last_permit_date":{"type":["string","null"]}}},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["license_number","business_name","location","license","demand","momentum","account_grade","territory","serviceability","contacts"]},"SupplyAccountList":{"type":"object","properties":{"territory":{"type":"object","properties":{"mode":{"type":"string"},"zip":{"type":["string","null"]},"county":{"type":["string","null"]},"trade":{"type":["string","null"]},"size":{"type":["integer","null"]},"window_days":{"type":["integer","null"]},"zip_match":{"type":["string","null"]},"zip_date_basis":{"type":["string","null"]},"filters_apply_to":{"type":["string","null"]},"permits_scanned":{"type":["integer","null"]},"truncated":{"type":["boolean","null"]},"max_permits_scanned":{"type":["integer","null"]},"code":{"type":["string","null"]},"requested":{"type":"string"}}},"count":{"type":"integer"},"disclosure":{"type":"string"},"accounts":{"type":"array","items":{"$ref":"#/components/schemas/SupplyAccount"}},"contacts_withheld":{"$ref":"#/components/schemas/ContactWithheld"}},"required":["count","accounts","disclosure"]},"Territory":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"county":{"type":["string","null"]},"trade":{"type":["string","null"]},"min_permits_12mo":{"type":"integer"},"momentum":{"type":["string","null"]},"grade":{"type":["string","null"]},"rep_id":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","name"]},"TerritoryCreated":{"type":"object","properties":{"territory":{"$ref":"#/components/schemas/Territory"}},"required":["territory"]},"TerritoryList":{"type":"object","properties":{"count":{"type":"integer"},"territories":{"type":"array","items":{"$ref":"#/components/schemas/Territory"}}},"required":["count","territories"]},"TerritoryRemoved":{"type":"object","properties":{"removed":{"type":"string","format":"uuid"}},"required":["removed"]},"Usage":{"type":"object","properties":{"tier":{"type":"string"},"period_start":{"type":["string","null"]},"period_end":{"type":["string","null"]},"resets_at":{"type":["string","null"]},"records":{"type":"object","properties":{"used":{"type":["integer","null"]},"limit":{"type":"integer"},"remaining":{"type":["integer","null"]}}},"requests_per_minute":{"type":"object","properties":{"limit":{"type":"integer"}}},"overage":{"type":["string","null"]},"upgrade_url":{"type":["string","null"]}},"required":["tier","period_start","period_end","resets_at","records","requests_per_minute","overage","upgrade_url"]},"ContactWithheld":{"type":"object","properties":{"reason":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"count":{"type":"integer"},"upgrade_url":{"type":"string"},"resets_at":{"type":"string","format":"date-time"}}},"PlanningSignal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"signal_type":{"type":"string"},"place":{"type":"string"},"county":{"type":["string","null"]},"county_code":{"type":["string","null"]},"state":{"type":"string"},"meeting_date":{"type":["string","null"],"format":"date"},"date_basis":{"type":"string","enum":["meeting","none"]},"title":{"type":["string","null"]},"outcome":{"type":"string"},"vote":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"normalized":{"type":["string","null"]}}},"parcel_number":{"type":["string","null"]},"case_number":{"type":["string","null"]},"ordinance_number":{"type":["string","null"]},"project":{"type":"object","properties":{"units_proposed":{"type":["integer","null"]},"units_on_parcel_today":{"type":["object","null"],"properties":{"value":{"type":["integer","null"]},"source":{"type":"string"}}},"acres":{"type":["number","null"]},"square_feet":{"type":["number","null"]},"value_usd":{"type":["number","null"]}}},"zoning":{"type":"object","properties":{"existing":{"type":["string","null"]},"proposed":{"type":["string","null"]}}},"applicant":{"type":"object","properties":{"name":{"type":["string","null"]},"agent":{"type":["string","null"]},"agent_role":{"type":["string","null"]},"source":{"type":"string","enum":["agenda"]},"license_match":{"type":["object","null"],"properties":{"license_number":{"type":"string"},"party":{"type":["string","null"]},"name":{"type":["string","null"]},"basis":{"type":"string"}}}}},"source":{"type":"object","properties":{"document_url":{"type":["string","null"]}}},"first_seen_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","signal_type","place","state","date_basis","outcome","updated_at"]},"PlanningSignalCoveragePlace":{"type":"object","properties":{"place":{"type":"string"},"county":{"type":["string","null"]},"county_code":{"type":["string","null"]},"state":{"type":"string"},"status":{"type":"string","enum":["current","stale","never_read","no_longer_read"]},"first_meeting_date":{"type":["string","null"],"format":"date"},"last_meeting_read":{"type":["string","null"],"format":"date"},"last_read_at":{"type":["string","null"],"format":"date-time"},"signals":{"type":"integer"},"withheld":{"type":"object","properties":{"unreviewed":{"type":"integer"},"type_not_served":{"type":"integer"},"type_not_yet_reviewed":{"type":"integer"}}}},"required":["place","status","signals"]},"PlanningSignalCoverageBlock":{"type":"object","properties":{"status":{"type":"string","enum":["covered","partial","not_covered","no_longer_read"]},"scope":{"type":"object","properties":{"state":{"type":["string","null"]},"county":{"type":["array","null"],"items":{"type":"string"}},"county_code":{"type":["array","null"],"items":{"type":"string"}},"place":{"type":["array","null"],"items":{"type":"string"}}}},"places_read":{"type":"integer"},"places_no_longer_read":{"type":"integer"},"places":{"type":"array","items":{"$ref":"#/components/schemas/PlanningSignalCoveragePlace"}},"places_not_read":{"type":"array","items":{"type":"object","properties":{"place":{"type":"string"},"known_place":{"type":"boolean"},"reason":{"type":"string","enum":["not_read","unknown_place_name"]},"did_you_mean":{"type":"array","items":{"type":"string"}}}}},"by_county":{"type":"array","items":{"type":"object","properties":{"county":{"type":["string","null"]},"county_code":{"type":["string","null"]},"places_read":{"type":"integer"},"signals":{"type":"integer"}}}},"detail":{"type":["string","null"]},"signals":{"type":"integer"},"withheld":{"type":"object","properties":{"unreviewed":{"type":"integer"},"type_not_served":{"type":"integer"},"type_not_yet_reviewed":{"type":"integer"}}},"withheld_note":{"type":"string"},"stale_after_days":{"type":"integer"},"note":{"type":"string"}},"required":["status","note"]},"PlanningSignalList":{"type":"object","properties":{"planning_signals":{"type":"array","items":{"$ref":"#/components/schemas/PlanningSignal"}},"coverage":{"$ref":"#/components/schemas/PlanningSignalCoverageBlock"},"query":{"type":"object"},"meta":{"type":"object","properties":{"count":{"type":"integer"},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"},"truncated_by_allowance":{"type":"boolean"}},"required":["count","next_cursor","has_more"]},"disclosure":{"type":"string"},"zero_row_reason":{"type":["string","null"],"enum":[null,"place_not_covered","no_signals_in_window"]}},"required":["planning_signals","coverage","query","meta","disclosure","zero_row_reason"]},"PlanningSignalDetail":{"type":"object","properties":{"planning_signal":{"$ref":"#/components/schemas/PlanningSignal"},"coverage":{"$ref":"#/components/schemas/PlanningSignalCoverageBlock"}},"required":["planning_signal","coverage"]},"PlanningSignalCoverage":{"type":"object","properties":{"coverage":{"$ref":"#/components/schemas/PlanningSignalCoverageBlock"},"records_charged":{"type":"integer"}},"required":["coverage","records_charged"]}}},"x-permit-modes":["feed","browse","address","contractor","zip","city","labels"]}