POST
/
api
/
lead
/
create
/
{db-source-id}
cURL
curl --request POST \
  --url https://api.pingtree.com/api/lead/create/{db-source-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "mobile": "<string>",
  "address": "<string>",
  "state": "<string>",
  "city": "<string>",
  "zip_code": "<string>",
  "date_of_birth": "<string>"
}'
{
  "status": "<string>",
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

db-source-id
string
required

Your database source ID

Body

application/json

Lead details to add to the database source

first_name
string

First name of the lead

last_name
string

Last name of the lead

email
string

Email of the lead

mobile
string

Mobile of the lead

address
string

Address of the lead

state
string

State of the lead

city
string

City of the lead

zip_code
string

Zip Code of the lead

date_of_birth
string

Date of Birth of the lead

Response

Lead successfully created

status
string

Status code of API response

message
string

Message of API response

data
object

Created lead information such as transaction_id, lead_status, etc.