WhatConverts
App · 6 actions
Work with your WhatConverts lead tracking: list, read, add and update leads from calls, forms, chats and emails, see your call tracking numbers and tracked web forms, and start a workflow when a new lead comes in.
Actions
| Action | What it does |
|---|---|
| Create lead | Add a lead to your WhatConverts profile, such as a form submission or call from another system. |
| Get lead | Get one lead with its contact details, marketing source, values, and call or form details. |
| List leads | List leads, newest first, with their contact, source, call or form details. |
| List tracked web forms | List the web forms WhatConverts tracks in your profile. |
| List tracking phone numbers | List the call tracking phone numbers in your profile, with the number they forward to, their trigger and whether calls are recorded. |
| Update lead | Change a lead's quotable status, quote value, sales value, page address or additional fields. |
Create lead
Add a lead to your WhatConverts profile, such as a form submission or call from another system. WhatConverts cannot delete a lead through its API, so it stays until you remove it in WhatConverts.
Inputs
- Lead type
lead_typetextRequired - What kind of lead this is.One of:
web_form(Web form),phone_call(Phone call),chat,email,text_message(Text message),appointment,event,transaction,other. - Send email notification
send_notificationtrue/false - Turn on to have WhatConverts email its usual new lead notification.
- Date and time
date_createddate and time - When the lead happened. Leave empty for now.
- Email address
email_addresstext - The lead's email address.
- Phone number
phone_numbertext - The lead's phone number, with the country code, like +15555550123.
- Caller name
caller_nametext - The caller's name, for a phone call lead.
- Caller number
caller_numbertext - The caller's phone number, with the country code, for a phone call or text message lead.
- Form name
form_nametext - The name of the form, for a web form lead.
- Message
messagetext - What the lead wrote or said.
- Source
lead_sourcetext - Where the lead came from, such as google.
- Medium
lead_mediumtext - The marketing medium, such as cpc or organic.
- Campaign
lead_campaigntext - The campaign that brought the lead.
- Content
lead_contenttext - The ad content that brought the lead.
- Keyword
lead_keywordtext - The keyword that brought the lead.
- Page the lead happened on
lead_urltext - The address of the page.
- Landing page
landing_urltext - The address of the page the visitor arrived on.
- Quotable
quotabletext - Whether the lead can be quoted.One of:
yes,no,pending,not_set(Not set). - Quote value
quote_valuenumber - The value quoted to the lead, in your currency.
- Sales value
sales_valuenumber - The sales value the lead brought in.
- Call length (seconds)
call_duration_secondsnumber - How long the call lasted, for a phone call lead.At least 0.
- Answer status
answer_statustext - Whether the call was answered, for a phone call lead.One of:
Answered,No Answer,Busy. - City
citytext - The lead's city.
- State
statetext - The lead's state or region.
- Zip code
zip_codetext - The lead's zip or postal code.
- Country
countrytext - The lead's country.
- Additional fields
additional_fieldsobject - Your own names and values to keep on the lead, for example {"Company": "Acme"}.
Outputs
leadobject- The lead
Example output
{
"lead": {
"account": "Acme Co",
"account_id": 124155,
"additional_fields": {
"Name": "Jo Bloggs"
},
"answer_status": "",
"browser": "",
"call_duration_seconds": 0,
"caller_name": "",
"caller_number": "",
"city": "Austin",
"contact_company_name": "",
"contact_email_address": "jo@example.com",
"contact_name": "Jo Bloggs",
"contact_phone_number": "",
"country": "US",
"custom_fields": {},
"date_created": "2026-11-18T19:57:03Z",
"device_make": "",
"device_type": "",
"duplicate": false,
"email_address": "jo@example.com",
"form_name": "Contact us",
"landing_url": "https://example.com/",
"last_updated": "2026-11-18T19:57:03Z",
"lead_campaign": "spring sale",
"lead_content": "",
"lead_id": 269910794,
"lead_keyword": "plumber",
"lead_medium": "cpc",
"lead_score": 0,
"lead_source": "google",
"lead_state": "Completed",
"lead_status": "Unique",
"lead_type": "Web Form",
"lead_url": "https://example.com/contact",
"mapped_fields": {
"Phone Number": null
},
"operating_system": "",
"phone_number": "",
"profile": "Acme Website",
"profile_id": 180550,
"quotable": "Not Set",
"quote_value": 10,
"sales_value": 0,
"spam": false,
"spotted_keywords": "",
"state": "TX",
"zip": "78701"
}
}Get lead
Get one lead with its contact details, marketing source, values, and call or form details.
Inputs
- Lead ID
lead_idtextRequired - The lead's id, from 'List leads', 'Create lead' or an earlier step.
Outputs
leadobject- The lead
Example output
{
"lead": {
"account": "Acme Co",
"account_id": 124155,
"additional_fields": {
"Name": "Jo Bloggs"
},
"answer_status": "",
"browser": "",
"call_duration_seconds": 0,
"caller_name": "",
"caller_number": "",
"city": "Austin",
"contact_company_name": "",
"contact_email_address": "jo@example.com",
"contact_name": "Jo Bloggs",
"contact_phone_number": "",
"country": "US",
"custom_fields": {},
"date_created": "2026-11-18T19:57:03Z",
"device_make": "",
"device_type": "",
"duplicate": false,
"email_address": "jo@example.com",
"form_name": "Contact us",
"landing_url": "https://example.com/",
"last_updated": "2026-11-18T19:57:03Z",
"lead_campaign": "spring sale",
"lead_content": "",
"lead_id": 269910794,
"lead_keyword": "plumber",
"lead_medium": "cpc",
"lead_score": 0,
"lead_source": "google",
"lead_state": "Completed",
"lead_status": "Unique",
"lead_type": "Web Form",
"lead_url": "https://example.com/contact",
"mapped_fields": {
"Phone Number": null
},
"operating_system": "",
"phone_number": "",
"profile": "Acme Website",
"profile_id": 180550,
"quotable": "Not Set",
"quote_value": 10,
"sales_value": 0,
"spam": false,
"spotted_keywords": "",
"state": "TX",
"zip": "78701"
}
}List leads
List leads, newest first, with their contact, source, call or form details. Looks back 30 days unless you give a From date (WhatConverts alone returns only today), and gets one page; to see more, run it again with the next page number.
Inputs
- Lead type
lead_typetext - Only this kind of lead. Leave empty for every type.One of:
web_form(Web form),phone_call(Phone call),chat,email,text_message(Text message),appointment,event,transaction,other. - Lead status
lead_statustext - Only first-time (unique) or returning (repeat) leads.One of:
unique(Unique (first time)),repeat. - From date
start_datedate - Only leads created on or after this date. Leave empty for the last 30 days.
- To date
end_datedate - Only leads created on or before this date. At most 400 days after the start.
- Order
ordertext - Sort by the date created. Defaults to newest first.One of:
desc(Newest first (default)),asc(Oldest first). - Quotable
quotabletext - Only leads marked this way.One of:
yes,no,pending,not_set(Not set). - Quote value
quote_valuetext - Only leads that do, or don't, have a quote value.One of:
has_value(Has a value),no_value(Has no value). - Sales value
sales_valuetext - Only leads that do, or don't, have a sales value.One of:
has_value(Has a value),no_value(Has no value). - Source
lead_sourcetext - Only leads from this source, such as google.
- Medium
lead_mediumtext - Only leads from this medium, such as cpc.
- Campaign
lead_campaigntext - Only leads from this campaign.
- Keyword
lead_keywordtext - Only leads from this keyword.
- Email address
email_addresstext - Only leads from this email address.
- Phone number
phone_numbertext - Only leads from this phone number, with the country code, like +15555550123.
- Spam only
spamtrue/false - Turn on to list only leads marked as spam.
- Duplicates only
duplicatetrue/false - Turn on to list only leads marked as duplicates.
- Page size
leads_per_pagenumber - How many leads to return, 1 to 2500. The default is 25.From 1 to 2500.
- Page number
page_numbernumber - Which page to return, starting at 1. Check 'Has more' to see if another follows.At least 1.
Outputs
countnumber- How many are in this page
has_moretrue/false- True if a later page exists
leadslist- The leads in this page
page_numbernumber- This page's number
total_leadsnumber- How many leads match in all
total_pagesnumber- How many pages there are
Example output
{
"count": 1,
"has_more": false,
"leads": [
{
"account": "Acme Co",
"account_id": 124155,
"additional_fields": {
"Name": "Jo Bloggs"
},
"answer_status": "",
"browser": "",
"call_duration_seconds": 0,
"caller_name": "",
"caller_number": "",
"city": "Austin",
"contact_company_name": "",
"contact_email_address": "jo@example.com",
"contact_name": "Jo Bloggs",
"contact_phone_number": "",
"country": "US",
"custom_fields": {},
"date_created": "2026-11-18T19:57:03Z",
"device_make": "",
"device_type": "",
"duplicate": false,
"email_address": "jo@example.com",
"form_name": "Contact us",
"landing_url": "https://example.com/",
"last_updated": "2026-11-18T19:57:03Z",
"lead_campaign": "spring sale",
"lead_content": "",
"lead_id": 269910794,
"lead_keyword": "plumber",
"lead_medium": "cpc",
"lead_score": 0,
"lead_source": "google",
"lead_state": "Completed",
"lead_status": "Unique",
"lead_type": "Web Form",
"lead_url": "https://example.com/contact",
"mapped_fields": {
"Phone Number": null
},
"operating_system": "",
"phone_number": "",
"profile": "Acme Website",
"profile_id": 180550,
"quotable": "Not Set",
"quote_value": 10,
"sales_value": 0,
"spam": false,
"spotted_keywords": "",
"state": "TX",
"zip": "78701"
}
],
"page_number": 1,
"total_leads": 1,
"total_pages": 1
}List tracked web forms
List the web forms WhatConverts tracks in your profile. Gets one page; to see more, run it again with the next page number.
Inputs
- Page size
forms_per_pagenumber - How many web forms to return, 1 to 250. The default is 25.From 1 to 250.
- Page number
page_numbernumber - Which page to return, starting at 1.At least 1.
Outputs
countnumber- How many are in this page
formslist- The web forms in this page
has_moretrue/false- True if a later page exists
page_numbernumber- This page's number
total_formsnumber- How many web forms match in all
total_pagesnumber- How many pages there are
Example output
{
"count": 1,
"forms": [
{
"account_id": 124155,
"attribute_type": "ID",
"attribute_type_value": "contact_us",
"form_id": 148099,
"form_name": "Contact us",
"profile": "Acme Website",
"profile_id": 180550,
"submit_attribute_type": "Class",
"submit_attribute_type_value": "submit_button"
}
],
"has_more": false,
"page_number": 1,
"total_forms": 1,
"total_pages": 1
}List tracking phone numbers
List the call tracking phone numbers in your profile, with the number they forward to, their trigger and whether calls are recorded. Gets one page; to see more, run it again with the next page number.
Inputs
- Page size
numbers_per_pagenumber - How many phone numbers to return, 1 to 250. The default is 25.From 1 to 250.
- Page number
page_numbernumber - Which page to return, starting at 1.At least 1.
Outputs
countnumber- How many are in this page
has_moretrue/false- True if a later page exists
numberslist- The phone numbers in this page
page_numbernumber- This page's number
total_numbersnumber- How many phone numbers match in all
total_pagesnumber- How many pages there are
Example output
{
"count": 1,
"has_more": false,
"numbers": [
{
"account_id": 124155,
"call_flow": "",
"call_recording": true,
"destination_number": 18112556580,
"destination_number_iso_country": "US",
"last_used": "2026-11-16T23:37:02Z",
"medium": "",
"messaging": true,
"pending_activation": false,
"phone_name": "Search Paid",
"phone_number_id": 148099,
"profile": "Acme Website",
"profile_id": 180550,
"source": "",
"swap_number": 8112556580,
"tracking_number": 16863152111,
"tracking_number_iso_country": "US",
"trigger": "Pool: All Traffic",
"voice": true
}
],
"page_number": 1,
"total_numbers": 1,
"total_pages": 1
}Update lead
Change a lead's quotable status, quote value, sales value, page address or additional fields. Fields left empty are kept.
Inputs
- Lead ID
lead_idtextRequired - The lead's id, from 'List leads', 'Create lead' or an earlier step.
- Quotable
quotabletext - A new quotable status. Leave empty to keep it.One of:
yes,no,pending,not_set(Not set). - Quote value
quote_valuenumber - A new quote value. Leave empty to keep it.
- Sales value
sales_valuenumber - A new sales value. Leave empty to keep it.
- Page the lead happened on
lead_urltext - A new address for the page. Leave empty to keep it.
- Additional fields
additional_fieldsobject - Names and values to add or change on the lead, for example {"Company": "Acme"}. Other fields are kept.
Outputs
leadobject- The lead
Example output
{
"lead": {
"account": "Acme Co",
"account_id": 124155,
"additional_fields": {
"Name": "Jo Bloggs"
},
"answer_status": "",
"browser": "",
"call_duration_seconds": 0,
"caller_name": "",
"caller_number": "",
"city": "Austin",
"contact_company_name": "",
"contact_email_address": "jo@example.com",
"contact_name": "Jo Bloggs",
"contact_phone_number": "",
"country": "US",
"custom_fields": {},
"date_created": "2026-11-18T19:57:03Z",
"device_make": "",
"device_type": "",
"duplicate": false,
"email_address": "jo@example.com",
"form_name": "Contact us",
"landing_url": "https://example.com/",
"last_updated": "2026-11-18T19:57:03Z",
"lead_campaign": "spring sale",
"lead_content": "",
"lead_id": 269910794,
"lead_keyword": "plumber",
"lead_medium": "cpc",
"lead_score": 0,
"lead_source": "google",
"lead_state": "Completed",
"lead_status": "Unique",
"lead_type": "Web Form",
"lead_url": "https://example.com/contact",
"mapped_fields": {
"Phone Number": null
},
"operating_system": "",
"phone_number": "",
"profile": "Acme Website",
"profile_id": 180550,
"quotable": "Yes",
"quote_value": 10,
"sales_value": 99.5,
"spam": false,
"spotted_keywords": "",
"state": "TX",
"zip": "78701"
}
}