HappierleadsDocs

Salesforce

Push leads to Salesforce: create a lead in Salesforce for each matching visitor, assigned to an owner you pick.

Authenticated with ?privateKey=YOUR_KEY (see Authentication).

POST/admin/automationsCreate a new automation
GET/admin/automationsGet all automations for a website
PATCH/admin/automations/{id}Enable or disable an automation
GET/v3/crm/ownersList CRM owners
POST/v3/crm/pushPush contact to CRM
GET/v3/crm/{crm}/mappingsGet CRM field mappings
PUT/v3/crm/{crm}/mappingsSet CRM field mappings
POST/admin/automations
Try:
Request body
NameName of the automation
Is ActiveWhether automation is active
WebsiteWebsite ID this automation belongs to
FilterFilter criteria for leads
Trigger
WhenEvent that triggers the automation
ThenAction to perform
Interval
Contact Persona
Roles
Excluded Roles
Email Verification
Allow Only Valid Emails
Allow Catch All Emails
Allow Guessed Emails
Allow Without Emails
Contact Selection Strategy
Max Contacts To Send
ActionsAction-specific configurations
Sent To Slack
Send Messages ToSlack channel, e.g.
Message TemplateMessage with merge fields such as {{name}} and {{company}}; empty uses the saved template
How Many To Add
Sent To Webhook
Url
When To Push
Send To Clay
UrlThe webhook URL of your Clay table
When To Push
Sent To Email Campaign
Email CampaignCampaign ID from GET /admin/email-campaigns
Email Accounts
Sent To Hubspot
Action
Assign Contacts ToOwner ID from GET /v3/crm/owners
Sent To Pipedrive
Assign Contacts To
Sent To Salesforce
Assign Contacts To
Sent To Zoho
Assign Contacts To
Sent To Go High Level
Assign Contacts To
Create Opportunity
Pipeline Id
Pipeline Stage Id
Opportunity Status
Tags
curl -X POST "https://rest-admin.happierleads.com/admin/automations?privateKey=YOUR_KEY" \  -H "Content-Type: application/json" \  -d '{  "name": "Docs example: send-to-salesforce",  "isActive": true,  "website": "64b7f0a1c2d3e4f5a6b7c8d9",  "when": "new-lead-is-identified",  "then": "send-to-salesforce",  "interval": "immediately",  "actions": {    "sentToSalesforce": {      "assignContactsTo": "OWNER_ID"    }  }}'
Response
Press Send request to try it with sample data.

Use case: Pick the owner

GET /v3/crm/owners?crm=salesforce lists the users of your Salesforce; use one's id as assignContactsTo.

Use case: Push one lead now

POST /v3/crm/push with crm: "salesforce" and a leadId sends that lead right away, without an automation.

On this page