---
title: "Create Public Lead"
method: POST
path: "/api/public/lead/"
tags: ["public", "leads"]
---

# Create Public Lead

`POST /api/public/lead/`

## 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/public/lead/`
- Auth: none declared

## Request body `application/x-www-form-urlencoded`

- object
  - `submission_id` string, nullable
  - `external_submission_id` string, nullable
  - `ea_org_id` integer, nullable
  - `name` string
  - `email` string
  - `phone` string
  - `address` string, nullable
  - `address_line1` string, nullable
  - `address_line2` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `zip` string, nullable
  - `instant_quote` string, nullable
  - `extra_text_input` string, nullable
  - `gtm_campaign_url` string, nullable
  - `redirectUrl` string, nullable
  - `referral_code` string, nullable
  - `initial_query_params` string, nullable
  - `initial_referrer_url` string, nullable
  - `initial_current_url` string, nullable
  - `initial_session_start` string, nullable
  - `latest_query_params` string, nullable
  - `latest_referrer_url` string, nullable
  - `latest_current_url` string, nullable
  - `latest_session_start` string, nullable
  - `user_agent` string, nullable
  - `ph_session_id` string, nullable
  - `ph_distinct_id` string, nullable
  - `fbc` string, nullable
  - `fbp` string, nullable
  - `consent_to_text` boolean, nullable
  - `lead_type` 'install' | 'repair'
  - `page_url` string, nullable
  - `query_parameters` string, nullable
  - `ga` string, nullable
  - `referrer` string, nullable
  - `existing_system` string, nullable
  - `num_thermostat` union
    - integer
    - number

## Response `200`

OK

- PublicLeadCreateResponse
  - `submission_id` integer, required
  - `lead_id` integer, nullable
  - `status` string, required

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-09-04** `87fbaa7fc7a3`: 2 info
  - added the new optional request property `fbc`
  - added the new optional request property `fbp`

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/public/lead/post.md)

---

[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)
