Create Lead
/api/v1/public/leads/Used to submit a new lead (a potential order).
Auth: Provider API Key — Authorization: Bearer <key> or X-API-Key: <key>.
See Authentication.
Navigo recognises US ZIPs and fills in the city and state from them. A ZIP it does not know (or a non-US postal code) is not enough: send the city — and, for the origin, the state — as well. ZIP+4 and a ZIP that lost its leading zero are accepted. See Location fields.
external_id is optionalWhen you send one it identifies the lead for you; when you omit it, Navigo
generates navigo-<16 hex> and returns it in the 201 response. See
external_id.
Body fields
| Field | Type | Required | Description |
|---|---|---|---|
external_id | String | Optional | Your own ID for the lead. Unique per provider — see below |
first_name | String | Required | Customer's first name |
last_name | String | Optional | Customer's last name — often only a first name (or a company) is known |
email | String (email) | Required | Customer's email |
phone_number | String | Required | Primary phone number |
phone_number2 | String | Optional | Second phone number (max 32 characters) |
fax | String | Optional | Fax number (max 32 characters) |
company_name | String | Optional | Customer's company name |
billing_address | String | Optional | Customer's billing address |
origin_city | String | Required* | Pickup city — required unless a recognised origin_zip is sent |
origin_state | Integer / String | Optional* | Pickup state: id, two-letter code ("CA") or full name ("California") |
origin_zip | String | Optional* | Pickup ZIP — see Location fields |
origin_country | Integer / String | Optional | Pickup country: Navigo id or name ("US", "USA", "United States"). Defaults to USA |
destination_city | String | Required* | Delivery city — required unless a recognised destination_zip is sent |
destination_state | Integer / String | Optional* | Delivery state — same formats as origin_state |
destination_zip | String | Optional* | Delivery ZIP — see Location fields |
destination_country | Integer / String | Optional | Delivery country — same formats as origin_country. Defaults to USA |
estimated_ship_date | Date | Optional | YYYY-MM-DD or DD-MM-YYYY. Defaults to the day the request arrives (the company's time zone) |
overseas_type | String (enum) | Optional | DOMESTIC (default) or FOREIGN — see below |
ship_via | String (enum) | Required | OPEN, ENCLOSED or DRIVE_AWAY — see below |
vehicles | Array of Vehicle | Required | At least one vehicle (see below) |
note_from_shipper | String | Optional | Note from the customer |
pickup_* / dropoff_* | String | Optional | 14 optional contact fields for the pickup and delivery stops — see below |
* Location fields follow one rule per side: a city is always needed, either
in the payload or from a ZIP Navigo recognises. For the origin, the state must
also be resolvable — at least two of origin_city, origin_state and
origin_zip are enough. See Location fields.
external_id
- Sent and new — the lead is stored under that id.
- Sent again for the same customer — same email, or the same last ten phone
digits — returns
409:Duplicate external_id for this lead provider.This is what makes a retry after a timeout safe. - Reused for a different customer — different email and phone — is
accepted. The lead is stored under
<external_id>~dup-<8 hex>, and the201response returns that value.GET /leads/{external_id}/with the bare id returns the first lead stored under it. - Omitted,
""ornull— Navigo generatesnavigo-<16 hex>and returns it in the201response. Nothing can deduplicate such a lead: sending it twice creates two leads.
overseas_type & ship_via
ship_via is the shipping method on the whole lead and accepts exactly three
values, whatever overseas_type is:
ship_via | Meaning |
|---|---|
OPEN | Open carrier (standard) |
ENCLOSED | Enclosed carrier |
DRIVE_AWAY | Driven to destination (drive-away) |
Values are not case-sensitive and the label is accepted too: "Open",
"open", "Drive Away" and "Driveaway" all mean the same choice. A word that
names no choice (for example "Truck") returns 400.
overseas_type marks a lead that includes an overseas leg:
overseas_type | Meaning |
|---|---|
DOMESTIC | Domestic (US) shipping — the default when omitted |
FOREIGN | Includes an overseas leg (container / vessel) |
Send FOREIGN for a shipment that crosses the sea. If it is omitted, the lead is
treated as domestic ground freight, and the overseas step is not applied.
Auto-quoting runs for OPEN and ENCLOSED only. A DRIVE_AWAY lead is not
priced by Central Dispatch and stays with an agent (ship_via_not_priceable).
Vehicle object
vehicles is an array of at least one vehicle. Each element:
| Field | Type | Required | Description |
|---|---|---|---|
year | Integer | Required | Model year |
make | String | Required | Make (Toyota, Tesla…) |
model | String | Required | Model (Camry, Model S…) |
type | String (enum) | Required | Vehicle type — enum |
vehicle_run | Boolean | Optional | Whether the vehicle is operable. Defaults to true |
A vehicle's price (tariff) and down payment (deposit) are not part of this
API. Navigo never takes a provider's price — an agent prices the lead. If you send
those keys anyway they are ignored, not rejected.
vehicle_run accepts words as well as booleans: "Yes" / "No",
"Running" / "Not Running", "Operable" / "Inop" — in any case.
Pickup and delivery contacts
Fourteen optional fields carry the contact details for the two stops. They are the same keys the customer's shipper form uses, and they let a load be posted to Central Dispatch or Super Dispatch without an agent telephoning for them:
pickup_address, pickup_address2, pickup_contact, pickup_company_name,
pickup_phone, pickup_cell_phone, pickup_buyer_number,
dropoff_address, dropoff_address2, dropoff_contact,
dropoff_company_name, dropoff_phone, dropoff_cell_phone,
dropoff_buyer_number.
All are optional and independent. Values are cleaned rather than rejected: leading
and trailing spaces are removed, line breaks collapse to one space, and long values
are cut (addresses to 255 characters, the rest to 128). null or an empty string is
stored as empty.
Location fields
A US ZIP that Navigo recognises supplies the city and state, so a known ZIP alone is a complete location. Everything else needs the city (and, for the origin, the state) in the payload:
- Best: send
city,stateandzipon each side. - Known US ZIP alone: enough.
- ZIP+4 (
"02134-1234") and a ZIP sent as a number that lost its leading zero (2134) are both read as02134. - Non-US postal code (for example Canadian) is not recognised — send
cityandstatein that case. - State accepts a Navigo id, a two-letter code (
"FL") or a full name ("Florida"). When a recognised ZIP is sent, the ZIP wins.
If the origin state cannot be worked out, the request returns 400 with:
Could not determine the origin state — provide at least two of origin_state, origin_city, or origin_zip.
A missing city (with no recognised ZIP to supply it) returns 400 with
This field is required. on origin_city or destination_city.
Request sample
{
"external_id": "lead_998123A",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone_number": "+1234567890",
"origin_city": "Los Angeles",
"origin_state": "CA",
"origin_zip": "90001",
"destination_city": "New York",
"destination_state": "NY",
"destination_zip": "10001",
"estimated_ship_date": "2026-06-15",
"overseas_type": "DOMESTIC",
"ship_via": "OPEN",
"company_name": "Doe Logistics",
"note_from_shipper": "Call before pickup",
"vehicles": [
{
"year": 2023,
"make": "Tesla",
"model": "Model S",
"type": "CAR",
"vehicle_run": true
}
]
}
Response — 201 Created
{
"id": 1042,
"order_number": "00001042-XT",
"state": "LEAD",
"lead_status": "LEAD",
"external_id": "lead_998123A"
}
external_id is the value stored — your own id, a generated
navigo-<16 hex>, or a <your-id>~dup-<8 hex> tag. Use it for
Get Lead.
Code samples
- curl
- JavaScript
- Python
curl -X POST https://leads.navigocrm.com/api/v1/public/leads/ \
-H "Authorization: Bearer $NAVIGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"external_id": "lead_998123A",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"phone_number": "+1234567890",
"origin_city": "Los Angeles",
"origin_state": "CA",
"origin_zip": "90001",
"destination_city": "New York",
"destination_state": "NY",
"destination_zip": "10001",
"estimated_ship_date": "2026-06-15",
"overseas_type": "DOMESTIC",
"ship_via": "OPEN",
"vehicles": [{"year":2023,"make":"Tesla","model":"Model S","type":"CAR","vehicle_run":true}]
}'
const res = await fetch("https://leads.navigocrm.com/api/v1/public/leads/", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.NAVIGO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
external_id: "lead_998123A",
first_name: "John",
last_name: "Doe",
email: "john.doe@example.com",
phone_number: "+1234567890",
origin_city: "Los Angeles",
origin_state: "CA",
origin_zip: "90001",
destination_city: "New York",
destination_state: "NY",
destination_zip: "10001",
estimated_ship_date: "2026-06-15",
overseas_type: "DOMESTIC",
ship_via: "OPEN",
vehicles: [{ year: 2023, make: "Tesla", model: "Model S", type: "CAR", vehicle_run: true }],
}),
});
if (!res.ok) throw new Error(`Lead failed: ${res.status}`);
const data = await res.json();
import os, requests
resp = requests.post(
"https://leads.navigocrm.com/api/v1/public/leads/",
headers={"Authorization": f"Bearer {os.environ['NAVIGO_API_KEY']}"},
json={
"external_id": "lead_998123A",
"first_name": "John", "last_name": "Doe",
"email": "john.doe@example.com", "phone_number": "+1234567890",
"origin_city": "Los Angeles", "origin_state": "CA", "origin_zip": "90001",
"destination_city": "New York", "destination_state": "NY", "destination_zip": "10001",
"estimated_ship_date": "2026-06-15",
"overseas_type": "DOMESTIC", "ship_via": "OPEN",
"vehicles": [{"year": 2023, "make": "Tesla", "model": "Model S",
"type": "CAR", "vehicle_run": True}],
},
timeout=15,
)
resp.raise_for_status()
lead = resp.json()
Possible errors
| Status | Reason |
|---|---|
400 | Validation error — invalid ZIP, unknown ship_via, missing city and state, unresolvable origin state |
401 | Missing, invalid, revoked or inactive API key |
409 | Duplicate external_id for the same customer |
429 | Rate limit exceeded (60/min, 2000/day per provider) |
Full format: Errors.