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

The body is of type object.

Response

201
application/json

Lead successfully created

The response is of type object.