Skip to content

Post Lead Inquiry

The curl example below will return test results:

  curl -X POST https://api.cleanwize.cloud/CL3A/api/postinquiry \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer your_token_here" \
    -d {"meta":{"vendor":"?","organization":"?","test":"sample"},"data":{"zip":"?","slid":?}}'

The curl example below will return test results (old version):

  curl -X POST https://api.cleanwize.cloud/CL3A/api/postinquiry \
    -H "Content-Type: application/json" \
    -d '{"meta":{"vendor":"?","organization":"?","apikey":"?","test":"sample"},"data":{"zip":"?","slid":?}}'

Parameters required for JSON Object

Two objects are sent in one POST. The data object includes the entered lead information. The meta object includes information about the lead.

data

Name Alternate Names Notes
FirstName
LastName
CompanyName Company, company_name
Address
City
State
Zip zip, ZipCode
Zipx Zip code extension (+4)
Phone
Email EmailAddress, email, bus_email
Interested
SIC sic, sic_code
Transcript
Comment Comments, Notes, Note, Message

meta

Name Alternate Names Notes
adid Advertisement ID.
account acct, acct2 Master account number. (preferred)
apikey api_key, token API Key as normal string or base64: in (deprecated, use Authorization: Bearer header)
date Used to override the entry date of the lead. Requires UTC formatted as yyyy-mm-dd hh:mm:ss
domain If the account is 0 and domain given, the master account is looked up by the domain. (required if no account)
gmt_offset gmt-offset, GMTOffset Set in in browser using this Javascript: let d = new Date(); gmtOffset = d.getTimezoneOffset()}
monitor_bcc Send email to BCC address for monitoring API payload.
organization org Organization name provided to vendor. (required)
pg Web page reference.
slid SLID Status level ID; 1000=Client 2000=Unit Franchise
source The source identifier (e.g. Facebook)
test Use preset test values to examine payload.
url PageUrl Full URL of the page source.
url_account Master account number sent from vendor (may be wrong)
vendor Vendor supplying the lead. (required)