Skip to main content

Create Lead

POST/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.

Location: send city, state and ZIP where you can

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 optional

When 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​

FieldTypeRequiredDescription
external_idStringOptionalYour own ID for the lead. Unique per provider — see below
first_nameStringRequiredCustomer's first name
last_nameStringOptionalCustomer's last name — often only a first name (or a company) is known
emailString (email)RequiredCustomer's email
phone_numberStringRequiredPrimary phone number
phone_number2StringOptionalSecond phone number (max 32 characters)
faxStringOptionalFax number (max 32 characters)
company_nameStringOptionalCustomer's company name
billing_addressStringOptionalCustomer's billing address
origin_cityStringRequired*Pickup city — required unless a recognised origin_zip is sent
origin_stateInteger / StringOptional*Pickup state: id, two-letter code ("CA") or full name ("California")
origin_zipStringOptional*Pickup ZIP — see Location fields
origin_countryInteger / StringOptionalPickup country: Navigo id or name ("US", "USA", "United States"). Defaults to USA
destination_cityStringRequired*Delivery city — required unless a recognised destination_zip is sent
destination_stateInteger / StringOptional*Delivery state — same formats as origin_state
destination_zipStringOptional*Delivery ZIP — see Location fields
destination_countryInteger / StringOptionalDelivery country — same formats as origin_country. Defaults to USA
estimated_ship_dateDateOptionalYYYY-MM-DD or DD-MM-YYYY. Defaults to the day the request arrives (the company's time zone)
overseas_typeString (enum)OptionalDOMESTIC (default) or FOREIGN — see below
ship_viaString (enum)RequiredOPEN, ENCLOSED or DRIVE_AWAY — see below
vehiclesArray of VehicleRequiredAt least one vehicle (see below)
note_from_shipperStringOptionalNote from the customer
pickup_* / dropoff_*StringOptional14 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 the 201 response returns that value. GET /leads/{external_id}/ with the bare id returns the first lead stored under it.
  • Omitted, "" or null — Navigo generates navigo-<16 hex> and returns it in the 201 response. 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_viaMeaning
OPENOpen carrier (standard)
ENCLOSEDEnclosed carrier
DRIVE_AWAYDriven 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_typeMeaning
DOMESTICDomestic (US) shipping — the default when omitted
FOREIGNIncludes 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.

Automatic pricing

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:

FieldTypeRequiredDescription
yearIntegerRequiredModel year
makeStringRequiredMake (Toyota, Tesla…)
modelStringRequiredModel (Camry, Model S…)
typeString (enum)RequiredVehicle type — enum
vehicle_runBooleanOptionalWhether 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, state and zip on 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 as 02134.
  • Non-US postal code (for example Canadian) is not recognised — send city and state in 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 -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}]
}'

Possible errors​

StatusReason
400Validation error — invalid ZIP, unknown ship_via, missing city and state, unresolvable origin state
401Missing, invalid, revoked or inactive API key
409Duplicate external_id for the same customer
429Rate limit exceeded (60/min, 2000/day per provider)

Full format: Errors.