Lead Gen & CRM (SharpSpring)

App · 25 actions

Work with Lead Gen & CRM (formerly SharpSpring): find, create, update and delete leads, manage list members, opportunities and accounts, and start workflows when leads, opportunities, accounts or list members are added or change.

Actions

ActionWhat it does
Add lead to listAdd a lead to a list, by its ID or email address.
Create accountCreate an account: a company or organization your leads and opportunities belong to.
Create leadCreate a lead (a contact) with an email address and any other details, including custom fields.
Create opportunityCreate an opportunity (a deal) with its owner, deal stage and close date, and optionally its amount, contact and account.
Delete accountDelete an account for good.
Delete leadDelete a lead for good.
Delete opportunityDelete an opportunity for good.
Find leadsFind the lead with an email address, or list active leads.
Get accountGet one account with its contact details and addresses.
Get leadGet one lead with its contact details, status, score and owner.
Get opportunityGet one opportunity with its amount, stage, owner and close date.
List accountsList accounts (companies), optionally only one owner's. Lead Gen & CRM caps a page at 500; use Skip for more.
List campaignsList the account's campaigns with their type, dates and costs.
List deal stagesList your pipeline's deal stages, in pipeline order.
List emailsList the account's marketing emails with their subjects.
List fieldsList every standard and custom field, with the system name that Custom fields take.
List leads by dateList the leads created, or created or changed, in a time range.
List list membersList the active members of a list.
List listsList the account's active lists with how many members each has.
List opportunitiesList opportunities (deals), optionally only one owner's, deal stage's, account's or campaign's. Lead Gen & CRM caps a page at 500; use Skip for more.
List usersList the account's users, whose IDs own leads, opportunities and accounts.
Remove lead from listRemove a lead from a list, by its ID or email address.
Update accountChange an account's details.
Update leadChange a lead's details.
Update opportunityChange an opportunity, such as its stage, amount or status (open, won or lost).

Add lead to list

Add a lead to a list, by its ID or email address. A lead already on the list is left as it is.

Inputs

Listlist_idtextRequired
The list. Pick one, or give its ID.
Lead IDlead_idtext
The lead's ID. Give this or the email address.
Emailemail_addresstext
The lead's email address, instead of its ID.

Outputs

addedtrue/false
True if the lead was added
already_membertrue/false
True if the lead was on the list already
email_addresstext
The lead's email, if it was given by email
lead_idtext
The lead's ID, if it was given by ID
list_idtext
The list's ID
Example output
{
  "added": true,
  "already_member": false,
  "email_address": "",
  "lead_id": "548102737922",
  "list_id": "48273"
}

Create account

Create an account: a company or organization your leads and opportunities belong to.

Inputs

Nameaccount_nametextRequired
The company or organization's name.
Ownerowner_idtext
The user who owns the account.
Industryindustrytext
The account's industry.
Phonephonetext
The account's phone.
Websitewebsitetext
The account's website.
Billing streetbilling_street_addresstext
The account's billing street.
Billing citybilling_citytext
The account's billing city.
Billing statebilling_statetext
The account's billing state.
Billing postal codebilling_postal_codetext
The account's billing postal code.
Billing countrybilling_countrytext
The account's billing country.
Shipping streetshipping_street_addresstext
The account's shipping street.
Shipping cityshipping_citytext
The account's shipping city.
Shipping stateshipping_statetext
The account's shipping state.
Shipping postal codeshipping_postal_codetext
The account's shipping postal code.
Shipping countryshipping_countrytext
The account's shipping country.
Annual revenueannual_revenuenumber
The account's annual revenue.At least 0.
Employeesnumber_of_employeesnumber
The account's employees.At least 0.
Year startedyear_startednumber
The account's year started.At least 0.
Custom fieldscustom_fieldsobject
Values for custom fields, each under the field's system name as 'List fields' shows it, such as {"favorite_color_5a0dd86e6e290": "Blue"}.

Outputs

account_idtext
The new account's ID
createdtrue/false
Always true once created
Example output
{
  "account_id": "60419",
  "created": true
}

Create lead

Create a lead (a contact) with an email address and any other details, including custom fields.

Inputs

Emailemail_addresstextRequired
The lead's email address. A lead with this email must not exist yet.
First namefirst_nametext
The lead's first name.
Last namelast_nametext
The lead's last name.
Companycompany_nametext
The lead's company.
Job titletitletext
The lead's job title.
Phonephone_numbertext
The lead's phone.
Mobile phonemobile_phone_numbertext
The lead's mobile phone.
Office phoneoffice_phone_numbertext
The lead's office phone.
Phone extensionphone_number_extensiontext
The lead's phone extension.
Faxfax_numbertext
The lead's fax.
Websitewebsitetext
The lead's website.
Industryindustrytext
The lead's industry.
Streetstreettext
The lead's street.
Citycitytext
The lead's city.
Statestatetext
The lead's state.
Postal codezipcodetext
The lead's postal code.
Countrycountrytext
The lead's country.
Descriptiondescriptiontext
The lead's description.
Statuslead_statustext
Where the lead is in your pipeline. Defaults to unqualified.One of: unqualified, open, qualified, contact.
Email subscriptionsubscriptiontext
Whether the lead gets your marketing emails.One of: subscribed, unsubscribed.
Ownerowner_idtext
The user who owns the lead.
Accountaccount_idtext
The account (company) the lead belongs to.
Campaigncampaign_idtext
The campaign the lead came from.
Custom fieldscustom_fieldsobject
Values for custom fields, each under the field's system name as 'List fields' shows it, such as {"favorite_color_5a0dd86e6e290": "Blue"}.

Outputs

createdtrue/false
Always true once created
email_addresstext
The lead's email address
lead_idtext
The lead's ID
Example output
{
  "created": true,
  "email_address": "jo@example.com",
  "lead_id": "548102737922"
}

Create opportunity

Create an opportunity (a deal) with its owner, deal stage and close date, and optionally its amount, contact and account.

Inputs

Nameopportunity_nametextRequired
The opportunity's name.
Ownerowner_idtextRequired
The user who owns the opportunity.
Deal stagedeal_stage_idtextRequired
Where it is in your pipeline.
Close dateclose_datedateRequired
When it is expected to close.
Amountamountnumber
What the deal is worth.At least 0.
Probabilityprobabilitynumber
How likely it is to close, in percent (0 to 100).From 0 to 100.
Statusstatustext
Open, closed won or closed lost. Defaults to open.One of: open, won (Closed won), lost (Closed lost).
Primary contactprimary_lead_idtext
The lead ID of the opportunity's main contact.
Accountaccount_idtext
The account (company) the deal is with.
Campaigncampaign_idtext
The campaign it came from.
Custom fieldscustom_fieldsobject
Values for custom fields, each under the field's system name as 'List fields' shows it, such as {"favorite_color_5a0dd86e6e290": "Blue"}.

Outputs

createdtrue/false
Always true once created
opportunity_idtext
The new opportunity's ID
Example output
{
  "created": true,
  "opportunity_id": "8231174"
}

Delete account

Delete an account for good.

Inputs

Accountaccount_idtextRequired
The account. Pick one, or give its ID.

Outputs

account_idtext
The account deleted
deletedtrue/false
Always true once deleted
Example output
{
  "account_id": "60419",
  "deleted": true
}

Delete lead

Delete a lead for good.

Inputs

Lead IDlead_idtextRequired
The lead's ID, from 'Find leads', a trigger or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
lead_idtext
The lead deleted
Example output
{
  "deleted": true,
  "lead_id": "548102737922"
}

Delete opportunity

Delete an opportunity for good.

Inputs

Opportunity IDopportunity_idtextRequired
The opportunity's ID, from 'List opportunities', a trigger or an earlier step.

Outputs

deletedtrue/false
Always true once deleted
opportunity_idtext
The opportunity deleted
Example output
{
  "deleted": true,
  "opportunity_id": "8231174"
}

Find leads

Find the lead with an email address, or list active leads. Lead Gen & CRM caps a page at 500; use Skip for more.

Inputs

Emailemail_addresstext
Only the lead with this email address, active or not. Leave empty for every active lead.
Fields to returnfieldslist
Only these fields of each lead. Leave empty for all of them.
How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
leadslist
The leads found
Example output
{
  "count": 1,
  "leads": [
    {
      "accountID": "",
      "active": "1",
      "campaignID": "",
      "city": "Gainesville",
      "companyName": "Acme Inc.",
      "country": "US",
      "description": "Met at the spring expo.",
      "emailAddress": "jo@example.com",
      "faxNumber": "",
      "firstName": "Jo",
      "id": "548102737922",
      "industry": "Software",
      "isUnsubscribed": "0",
      "lastName": "Bloggs",
      "leadScore": "25",
      "leadStatus": "open",
      "mobilePhoneNumber": "",
      "officePhoneNumber": "",
      "ownerID": "312019481",
      "phoneNumber": "+1 352 555 0100",
      "phoneNumberExtension": "",
      "state": "FL",
      "street": "1 Main Street",
      "title": "Marketing Manager",
      "updateTimestamp": "2026-11-16 14:05:12",
      "website": "https://example.com",
      "zipcode": "32601"
    }
  ]
}

Get account

Get one account with its contact details and addresses.

Inputs

Accountaccount_idtextRequired
The account. Pick one, or give its ID.

Outputs

accountobject
The account
Example output
{
  "account": {
    "accountName": "Acme Inc.",
    "annualRevenue": "2500000",
    "billingCity": "Gainesville",
    "billingCountry": "US",
    "billingPostalCode": "32601",
    "billingState": "FL",
    "billingStreetAddress": "1 Main Street",
    "id": "60419",
    "industry": "Software",
    "numberOfEmployees": "40",
    "ownerID": "312019481",
    "phone": "+1 352 555 0100",
    "shippingCity": "Gainesville",
    "shippingCountry": "US",
    "shippingPostalCode": "32601",
    "shippingState": "FL",
    "shippingStreetAddress": "1 Main Street",
    "website": "https://example.com",
    "yearStarted": "2011"
  }
}

Get lead

Get one lead with its contact details, status, score and owner.

Inputs

Lead IDlead_idtextRequired
The lead's ID, from 'Find leads', a trigger or an earlier step.

Outputs

leadobject
The lead
Example output
{
  "lead": {
    "accountID": "",
    "active": "1",
    "campaignID": "",
    "city": "Gainesville",
    "companyName": "Acme Inc.",
    "country": "US",
    "description": "Met at the spring expo.",
    "emailAddress": "jo@example.com",
    "faxNumber": "",
    "firstName": "Jo",
    "id": "548102737922",
    "industry": "Software",
    "isUnsubscribed": "0",
    "lastName": "Bloggs",
    "leadScore": "25",
    "leadStatus": "open",
    "mobilePhoneNumber": "",
    "officePhoneNumber": "",
    "ownerID": "312019481",
    "phoneNumber": "+1 352 555 0100",
    "phoneNumberExtension": "",
    "state": "FL",
    "street": "1 Main Street",
    "title": "Marketing Manager",
    "updateTimestamp": "2026-11-16 14:05:12",
    "website": "https://example.com",
    "zipcode": "32601"
  }
}

Get opportunity

Get one opportunity with its amount, stage, owner and close date.

Inputs

Opportunity IDopportunity_idtextRequired
The opportunity's ID, from 'List opportunities', a trigger or an earlier step.

Outputs

opportunityobject
The opportunity
Example output
{
  "opportunity": {
    "accountID": "60419",
    "amount": "12000",
    "campaignID": "",
    "closeDate": "2026-12-31",
    "dealStageID": "1022",
    "id": "8231174",
    "isActive": "1",
    "isClosed": "0",
    "isWon": "0",
    "opportunityName": "Acme website redesign",
    "originatingLeadID": "548102737922",
    "ownerID": "312019481",
    "primaryLeadID": "548102737922",
    "probability": "40"
  }
}

List accounts

List accounts (companies), optionally only one owner's. Lead Gen & CRM caps a page at 500; use Skip for more.

Inputs

Ownerowner_idtext
Only records this user owns.
How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

accountslist
The accounts found
countnumber
How many were returned
Example output
{
  "accounts": [
    {
      "accountName": "Acme Inc.",
      "annualRevenue": "2500000",
      "billingCity": "Gainesville",
      "billingCountry": "US",
      "billingPostalCode": "32601",
      "billingState": "FL",
      "billingStreetAddress": "1 Main Street",
      "id": "60419",
      "industry": "Software",
      "numberOfEmployees": "40",
      "ownerID": "312019481",
      "phone": "+1 352 555 0100",
      "shippingCity": "Gainesville",
      "shippingCountry": "US",
      "shippingPostalCode": "32601",
      "shippingState": "FL",
      "shippingStreetAddress": "1 Main Street",
      "website": "https://example.com",
      "yearStarted": "2011"
    }
  ],
  "count": 1
}

List campaigns

List the account's campaigns with their type, dates and costs.

Inputs

How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

campaignslist
The campaigns
countnumber
How many were returned
Example output
{
  "campaigns": [
    {
      "campaignAlias": "spring-expo",
      "campaignName": "Spring expo 2026",
      "campaignOrigin": "Event",
      "campaignType": "Trade Show",
      "endDate": "2026-04-03",
      "goal": "200",
      "id": "7311",
      "isActive": "1",
      "otherCosts": "1500",
      "price": "0",
      "qty": "0",
      "startDate": "2026-04-01"
    }
  ],
  "count": 1
}

List deal stages

List your pipeline's deal stages, in pipeline order.

Inputs

How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
deal_stageslist
The deal stages
Example output
{
  "count": 1,
  "deal_stages": [
    {
      "dealStageName": "Proposal",
      "defaultProbability": "40",
      "description": "Proposal sent",
      "id": "1022",
      "isEditable": "1",
      "weight": "3"
    }
  ]
}

List emails

List the account's marketing emails with their subjects.

Inputs

How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
emailslist
The emails
Example output
{
  "count": 1,
  "emails": [
    {
      "createTimestamp": "2026-10-01 09:30:00",
      "id": "52113",
      "subject": "What's new this month",
      "thumbnail": "https://example.com/thumbnails/52113.png",
      "title": "November newsletter"
    }
  ]
}

List fields

List every standard and custom field, with the system name that Custom fields take.

Inputs

How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
fieldslist
The fields
Example output
{
  "count": 1,
  "fields": [
    {
      "dataLength": "255",
      "dataType": "text",
      "id": "1736",
      "isActive": "1",
      "isAvailableInContactManager": "1",
      "isAvailableInForms": "1",
      "isCustom": "1",
      "isEditableInContactManager": "1",
      "isRequired": "0",
      "label": "Favorite Color",
      "relationship": "lead",
      "source": "custom",
      "systemName": "favorite_color_5a0dd86e6e290"
    }
  ]
}

List leads by date

List the leads created, or created or changed, in a time range. Returns up to 500.

Inputs

Fromstartdate and timeRequired
The start of the time range.
Untilenddate and time
The end of the time range. Defaults to now.
Leadschangetext
Only leads created in that time, or those created or changed. Defaults to created or changed.One of: create (Created in that time), update (Created or changed in that time).
Fields to returnfieldslist
Only these fields of each lead. Leave empty for all of them.

Outputs

countnumber
How many were returned
leadslist
The leads in the range
Example output
{
  "count": 1,
  "leads": [
    {
      "accountID": "",
      "active": "1",
      "campaignID": "",
      "city": "Gainesville",
      "companyName": "Acme Inc.",
      "country": "US",
      "description": "Met at the spring expo.",
      "emailAddress": "jo@example.com",
      "faxNumber": "",
      "firstName": "Jo",
      "id": "548102737922",
      "industry": "Software",
      "isUnsubscribed": "0",
      "lastName": "Bloggs",
      "leadScore": "25",
      "leadStatus": "open",
      "mobilePhoneNumber": "",
      "officePhoneNumber": "",
      "ownerID": "312019481",
      "phoneNumber": "+1 352 555 0100",
      "phoneNumberExtension": "",
      "state": "FL",
      "street": "1 Main Street",
      "title": "Marketing Manager",
      "updateTimestamp": "2026-11-16 14:05:12",
      "website": "https://example.com",
      "zipcode": "32601"
    }
  ]
}

List list members

List the active members of a list. Lead Gen & CRM caps a page at 500; use Skip for more.

Inputs

Listlist_idtextRequired
The list. Pick one, or give its ID.
How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
list_idtext
The list's ID
memberslist
The list's members
Example output
{
  "count": 1,
  "list_id": "48273",
  "members": [
    {
      "companyName": "Acme Inc.",
      "emailAddress": "jo@example.com",
      "firstName": "Jo",
      "id": "991827",
      "lastName": "Bloggs",
      "leadID": "548102737922",
      "listID": "48273"
    }
  ]
}

List lists

List the account's active lists with how many members each has.

Inputs

How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
listslist
The active lists
Example output
{
  "count": 1,
  "lists": [
    {
      "createTimestamp": "2025-03-02 10:00:00",
      "description": "Monthly newsletter subscribers",
      "id": "48273",
      "memberCount": "1250",
      "name": "Newsletter",
      "removedCount": "14"
    }
  ]
}

List opportunities

List opportunities (deals), optionally only one owner's, deal stage's, account's or campaign's. Lead Gen & CRM caps a page at 500; use Skip for more.

Inputs

Ownerowner_idtext
Only records this user owns.
Deal stagedeal_stage_idtext
Only opportunities in this stage.
Accountaccount_idtext
Only opportunities with this account.
Campaigncampaign_idtext
Only opportunities from this campaign.
How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
opportunitieslist
The opportunities found
Example output
{
  "count": 1,
  "opportunities": [
    {
      "accountID": "60419",
      "amount": "12000",
      "campaignID": "",
      "closeDate": "2026-12-31",
      "dealStageID": "1022",
      "id": "8231174",
      "isActive": "1",
      "isClosed": "0",
      "isWon": "0",
      "opportunityName": "Acme website redesign",
      "originatingLeadID": "548102737922",
      "ownerID": "312019481",
      "primaryLeadID": "548102737922",
      "probability": "40"
    }
  ]
}

List users

List the account's users, whose IDs own leads, opportunities and accounts.

Inputs

How manylimitnumber
How many to return, 1 to 500. Lead Gen & CRM returns up to 500.From 1 to 500.
Skipoffsetnumber
How many to skip first, to get the next page: 500 for the second.At least 0.

Outputs

countnumber
How many were returned
userslist
The users
Example output
{
  "count": 1,
  "users": [
    {
      "displayName": "Sam Rivera",
      "emailAddress": "sam@example.com",
      "firstName": "Sam",
      "id": "312019481",
      "isActive": "1",
      "isReseller": "0",
      "lastName": "Rivera",
      "phone": "+1 352 555 0101",
      "userTimezone": "America/New_York"
    }
  ]
}

Remove lead from list

Remove a lead from a list, by its ID or email address.

Inputs

Listlist_idtextRequired
The list. Pick one, or give its ID.
Lead IDlead_idtext
The lead's ID. Give this or the email address.
Emailemail_addresstext
The lead's email address, instead of its ID.

Outputs

email_addresstext
The lead's email, if it was given by email
lead_idtext
The lead's ID, if it was given by ID
list_idtext
The list's ID
removedtrue/false
Always true once removed
Example output
{
  "email_address": "",
  "lead_id": "548102737922",
  "list_id": "48273",
  "removed": true
}

Update account

Change an account's details. Only the fields given change.

Inputs

Accountaccount_idtextRequired
The account. Pick one, or give its ID.
Nameaccount_nametext
The company or organization's name. Leave empty to keep it.
Ownerowner_idtext
The user who owns the account. Leave empty to keep it.
Industryindustrytext
The account's industry. Leave empty to keep it.
Phonephonetext
The account's phone. Leave empty to keep it.
Websitewebsitetext
The account's website. Leave empty to keep it.
Billing streetbilling_street_addresstext
The account's billing street. Leave empty to keep it.
Billing citybilling_citytext
The account's billing city. Leave empty to keep it.
Billing statebilling_statetext
The account's billing state. Leave empty to keep it.
Billing postal codebilling_postal_codetext
The account's billing postal code. Leave empty to keep it.
Billing countrybilling_countrytext
The account's billing country. Leave empty to keep it.
Shipping streetshipping_street_addresstext
The account's shipping street. Leave empty to keep it.
Shipping cityshipping_citytext
The account's shipping city. Leave empty to keep it.
Shipping stateshipping_statetext
The account's shipping state. Leave empty to keep it.
Shipping postal codeshipping_postal_codetext
The account's shipping postal code. Leave empty to keep it.
Shipping countryshipping_countrytext
The account's shipping country. Leave empty to keep it.
Annual revenueannual_revenuenumber
The account's annual revenue. Leave empty to keep it.At least 0.
Employeesnumber_of_employeesnumber
The account's employees. Leave empty to keep it.At least 0.
Year startedyear_startednumber
The account's year started. Leave empty to keep it.At least 0.
Custom fieldscustom_fieldsobject
Values for custom fields, each under the field's system name as 'List fields' shows it, such as {"favorite_color_5a0dd86e6e290": "Blue"}.

Outputs

account_idtext
The account's ID
updatedtrue/false
False when every value given was already set
Example output
{
  "account_id": "60419",
  "updated": true
}

Update lead

Change a lead's details. Only the fields given change; a lead that doesn't exist is an error.

Inputs

Lead IDlead_idtextRequired
The lead's ID, from 'Find leads', a trigger or an earlier step.
Emailemail_addresstext
A new email address. It must not belong to another lead. Leave empty to keep it.
First namefirst_nametext
The lead's first name. Leave empty to keep it.
Last namelast_nametext
The lead's last name. Leave empty to keep it.
Companycompany_nametext
The lead's company. Leave empty to keep it.
Job titletitletext
The lead's job title. Leave empty to keep it.
Phonephone_numbertext
The lead's phone. Leave empty to keep it.
Mobile phonemobile_phone_numbertext
The lead's mobile phone. Leave empty to keep it.
Office phoneoffice_phone_numbertext
The lead's office phone. Leave empty to keep it.
Phone extensionphone_number_extensiontext
The lead's phone extension. Leave empty to keep it.
Faxfax_numbertext
The lead's fax. Leave empty to keep it.
Websitewebsitetext
The lead's website. Leave empty to keep it.
Industryindustrytext
The lead's industry. Leave empty to keep it.
Streetstreettext
The lead's street. Leave empty to keep it.
Citycitytext
The lead's city. Leave empty to keep it.
Statestatetext
The lead's state. Leave empty to keep it.
Postal codezipcodetext
The lead's postal code. Leave empty to keep it.
Countrycountrytext
The lead's country. Leave empty to keep it.
Descriptiondescriptiontext
The lead's description. Leave empty to keep it.
Statuslead_statustext
Where the lead is in your pipeline. Leave empty to keep it.One of: unqualified, open, qualified, contact.
Email subscriptionsubscriptiontext
Whether the lead gets your marketing emails. Leave empty to keep it.One of: subscribed, unsubscribed.
Ownerowner_idtext
The user who owns the lead. Leave empty to keep it.
Accountaccount_idtext
The account (company) the lead belongs to. Leave empty to keep it.
Campaigncampaign_idtext
The campaign the lead came from. Leave empty to keep it.
Custom fieldscustom_fieldsobject
Values for custom fields, each under the field's system name as 'List fields' shows it, such as {"favorite_color_5a0dd86e6e290": "Blue"}.

Outputs

lead_idtext
The lead's ID
updatedtrue/false
False when every value given was already the lead's
Example output
{
  "lead_id": "548102737922",
  "updated": true
}

Update opportunity

Change an opportunity, such as its stage, amount or status (open, won or lost). Only the fields given change.

Inputs

Opportunity IDopportunity_idtextRequired
The opportunity's ID, from 'List opportunities', a trigger or an earlier step.
Nameopportunity_nametext
The opportunity's name. Leave empty to keep it.
Ownerowner_idtext
The user who owns the opportunity. Leave empty to keep it.
Deal stagedeal_stage_idtext
Where it is in your pipeline. Leave empty to keep it.
Close dateclose_datedate
When it is expected to close. Leave empty to keep it.
Amountamountnumber
What the deal is worth. Leave empty to keep it.At least 0.
Probabilityprobabilitynumber
How likely it is to close, in percent (0 to 100). Leave empty to keep it.From 0 to 100.
Statusstatustext
Open, closed won or closed lost. Leave empty to keep it.One of: open, won (Closed won), lost (Closed lost).
Primary contactprimary_lead_idtext
The lead ID of the opportunity's main contact. Leave empty to keep it.
Accountaccount_idtext
The account (company) the deal is with. Leave empty to keep it.
Campaigncampaign_idtext
The campaign it came from. Leave empty to keep it.
Custom fieldscustom_fieldsobject
Values for custom fields, each under the field's system name as 'List fields' shows it, such as {"favorite_color_5a0dd86e6e290": "Blue"}.

Outputs

opportunity_idtext
The opportunity's ID
updatedtrue/false
False when every value given was already set
Example output
{
  "opportunity_id": "8231174",
  "updated": true
}

On this page