Developer Portal
Leads

Create lead

This endpoint creates a record for a Lead in Impel's system. Fields should be populated by partner systems.

POST
/v2/leads

Datetime Formats: The lead_ts field field must be provided in ISO 8601 UTC.

  1. UTC Format: Append 'Z' to denote UTC time. Example: 2023-09-22T14:00:00Z.
  2. Local Time with Offset: Include the time offset from UTC. Example: 2024-02-02T14:00:00-0500.
  3. Local Time: Specify local time. Timezone will be applied based on dealer settings. Example: 2023-09-22T14:00:00.

Header Parameters

partner-id*string

This parameter uniquely identifies an Impel partner and will be used for API authentication and authorization.

x-api-key*string

An API Key issued by Impel that will be used for API authentication and authorization.

client-key*string

The unique IDP Identifier assigned to the client by Impel during onboarding.

Request Body

application/json

Please click on "Schema" next to "Example Value" below to view the detailed description of JSON properties in the request body.

TypeScript Definitions

Use the request body type in TypeScript.

An object containing all information about a lead

Response Body

application/json

curl -X POST "https://example.com/v2/leads" \  -H "partner-id: string" \  -H "x-api-key: string" \  -H "client-key: string" \  -H "Content-Type: application/json" \  -d '{    "consumer_id": 123512411,    "crm_lead_id": "18dd2831-d72c-4a5b-9f41-98796bc2e79a",    "lead_ts": "2023-10-16T20:44:12+00:00",    "lead_status": "ACTIVE",    "lead_substatus": "Appointment Set",    "lead_comment": "Does this car have a sunroof?",    "lead_origin": "INTERNET",    "lead_source": "cars.com",    "lead_source_detail": "Inventory Leads Website",    "vehicles_of_interest": [      {        "vin": "1HGBH41JXMN109186",        "stock_number": "SN12345",        "type": "SUV",        "class": "Compact",        "mileage": 50000,        "year": 2023,        "make": "Ford",        "model": "F-150",        "oem_name": "Ford",        "trim": "GT",        "body_style": "SUV",        "transmission": "Manual",        "interior_color": "Black",        "exterior_color": "White",        "price": 25000,        "status": "Available",        "condition": "Used",        "odometer_units": "miles",        "vehicle_comments": "Has a scratch",        "crm_vehicle_id": "42041f00-88f7-46e8-a0a7-ddb11a6ee1aa",        "metadata": {}      }    ],    "trade_in_vehicles": [      {        "vin": "1HGBH41JXMN109186",        "stock_number": "SN12345",        "type": "SUV",        "class": "Compact",        "mileage": 50000,        "year": 2023,        "make": "Ford",        "model": "F-150",        "oem_name": "Ford",        "trim": "GT",        "body_style": "SUV",        "transmission": "Manual",        "interior_color": "Black",        "exterior_color": "White",        "price": 25000,        "status": "Available",        "condition": "Used",        "odometer_units": "miles",        "vehicle_comments": "Has a scratch",        "crm_vehicle_id": "42041f00-88f7-46e8-a0a7-ddb11a6ee1aa",        "metadata": {}      }    ],    "owned_vehicles": [      {        "vin": "1HGBH41JXMN109186",        "stock_number": "SN12345",        "type": "SUV",        "class": "Compact",        "mileage": 50000,        "year": 2023,        "make": "Ford",        "model": "F-150",        "oem_name": "Ford",        "trim": "GT",        "body_style": "SUV",        "transmission": "Manual",        "interior_color": "Black",        "exterior_color": "White",        "price": 25000,        "status": "Available",        "condition": "Used",        "odometer_units": "miles",        "vehicle_comments": "Has a scratch",        "crm_vehicle_id": "42041f00-88f7-46e8-a0a7-ddb11a6ee1aa",        "metadata": {}      }    ],    "salespersons": [      {        "crm_salesperson_id": "123abc-1234ab-123abc",        "first_name": "John",        "last_name": "Smith",        "email": "john.smith@example.com",        "phone": "123-456-7890",        "position_name": "Sales Manager",        "is_primary": true      }    ]  }'
{  "lead_id": 12345678}