---
title: "Detect Outline"
method: POST
path: "/api/quotes/{quote_id}/detect-outline"
tags: ["quotes"]
---

# Detect Outline

`POST /api/quotes/{quote_id}/detect-outline`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/quotes/{quote_id}/detect-outline`
- Auth: none declared

Detect the home's roof footprint from satellite imagery, persist it for
the service location, and optionally re-run Manual J.

## Path parameters

- `quote_id` integer, required

## Request body

- DetectOutlineRequest
  - `rerun_manj` boolean

## Response `200`

OK

- DetectOutlineResponse
  - `outline` OutlineResultSchema, required
    - `ok` boolean
    - `error` string, nullable
    - `polygon` array[]
      - number[]
    - `levels` OutlineLevelSchema[], nullable
      - `name` string, required
      - `polygon` array[], required
        - number[]
    - `confidence` number, nullable
    - `estimated_floors` integer, nullable
    - `notes` string, nullable
    - `footprint_sqft` number, nullable
    - `fewshot_examples` integer, nullable
    - `resolved_sqft` integer, nullable
    - `resolved_floors` integer, nullable
    - `sqft_source` string, nullable
    - `floors_source` string, nullable
    - `flags` string[]
    - `image` object, nullable
    - `geometry` object, nullable
    - `model` string, nullable
    - `generated_at` number, nullable
  - `manj_rerun` boolean
  - `manj_result` object, nullable

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
