HubLinkPro GHL API Skill
Base URL: https://services.leadconnectorhq.com
Auth header: Authorization: Bearer $GHL_API_KEY
All requests include: INLINECODE2
Get Contact by Phone or Email
curl -s -H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/contacts/search/duplicate?locationId=$GHLLOCATIONID&email=$EMAIL" | jq .
Create or Update Contact
curl -s -X POST "https://services.leadconnectorhq.com/contacts/" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"firstName":"$FIRST","lastName":"$LAST","email":"$EMAIL","phone":"$PHONE","locationId":"'$GHLLOCATIONID'","tags":["$TAGS"],"source":"$SOURCE"}' | jq .
Add Tags to Contact
curl -s -X POST "https://services.leadconnectorhq.com/contacts/$CONTACT_ID/tags" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"tags":["$TAG1","$TAG2"]}' | jq .
Create Opportunity (Pipeline Deal)
curl -s -X POST "https://services.leadconnectorhq.com/opportunities/" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"pipelineId":"$PIPELINEID","locationId":"'$GHLLOCATIONID'","name":"$DEALNAME","stageId":"$STAGEID","contactId":"$CONTACTID","status":"open"}' | jq .
Move Opportunity Stage
curl -s -X PUT "https://services.leadconnectorhq.com/opportunities/$OPP_ID/status" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"stageId":"$NEWSTAGEID"}' | jq .
List Pipelines
curl -s -H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/opportunities/pipelines?locationId=$GHLLOCATIONID" | jq .
Send SMS via Conversations API
curl -s -X POST "https://services.leadconnectorhq.com/conversations/messages" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"type":"SMS","contactId":"$CONTACT_ID","message":"$MESSAGE"}' | jq .
Search Contacts by Tag
curl -s -H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/contacts/?locationId=$GHLLOCATIONID&query=$SEARCH_TERM&limit=20" | jq .
Get Contact Activity / Notes
curl -s -H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/contacts/$CONTACT_ID/notes" | jq .
Add Note to Contact
curl -s -X POST "https://services.leadconnectorhq.com/contacts/$CONTACT_ID/notes" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"body":"$NOTE_TEXT"}' | jq .
Trigger Workflow for Contact
curl -s -X POST "https://services.leadconnectorhq.com/contacts/$CONTACTID/workflow/$WORKFLOWID" \
-H "Authorization: Bearer $GHLAPIKEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" | jq .
Key HubLinkPro Context
- - Location: Tri-Cities TN (Johnson City, Kingsport, Bristol)
- Pipelines: HLP – Sellers, New Construction, Pre-Foreclosure
- Tags: new-lead, fb-seller, new-construction, pre-foreclosure, contacted, qualified, nurture
- Agents: Tasha, Nate, Cory, Laura, Mary Ellen, Josh
- When assigning leads, use tag format: agent-{firstname}
HubLinkPro GHL API 技能
基础URL:https://services.leadconnectorhq.com
认证头:Authorization: Bearer $GHLAPIKEY
所有请求包含:Version: 2021-07-28
通过电话或邮箱获取联系人
curl -s -H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 \
https://services.leadconnectorhq.com/contacts/search/duplicate?locationId=$GHLLOCATIONID&email=$EMAIL | jq .
创建或更新联系人
curl -s -X POST https://services.leadconnectorhq.com/contacts/ \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json \
-d {firstName:$FIRST,lastName:$LAST,email:$EMAIL,phone:$PHONE,locationId:$GHLLOCATIONID,tags:[$TAGS],source:$SOURCE} | jq .
为联系人添加标签
curl -s -X POST https://services.leadconnectorhq.com/contacts/$CONTACT_ID/tags \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json \
-d {tags:[$TAG1,$TAG2]} | jq .
创建商机(管道交易)
curl -s -X POST https://services.leadconnectorhq.com/opportunities/ \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json \
-d {pipelineId:$PIPELINEID,locationId:$GHLLOCATIONID,name:$DEALNAME,stageId:$STAGEID,contactId:$CONTACTID,status:open} | jq .
移动商机阶段
curl -s -X PUT https://services.leadconnectorhq.com/opportunities/$OPP_ID/status \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json \
-d {stageId:$NEWSTAGEID} | jq .
列出管道
curl -s -H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 \
https://services.leadconnectorhq.com/opportunities/pipelines?locationId=$GHLLOCATIONID | jq .
通过对话API发送短信
curl -s -X POST https://services.leadconnectorhq.com/conversations/messages \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json \
-d {type:SMS,contactId:$CONTACT_ID,message:$MESSAGE} | jq .
按标签搜索联系人
curl -s -H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 \
https://services.leadconnectorhq.com/contacts/?locationId=$GHLLOCATIONID&query=$SEARCH_TERM&limit=20 | jq .
获取联系人活动/备注
curl -s -H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 \
https://services.leadconnectorhq.com/contacts/$CONTACT_ID/notes | jq .
为联系人添加备注
curl -s -X POST https://services.leadconnectorhq.com/contacts/$CONTACT_ID/notes \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json \
-d {body:$NOTE_TEXT} | jq .
为联系人触发工作流
curl -s -X POST https://services.leadconnectorhq.com/contacts/$CONTACTID/workflow/$WORKFLOWID \
-H Authorization: Bearer $GHLAPIKEY -H Version: 2021-07-28 -H Content-Type: application/json | jq .
关键HubLinkPro上下文
- - 地点:三城田纳西州(约翰逊城、金斯波特、布里斯托尔)
- 管道:HLP – 卖家、新建项目、预止赎
- 标签:新线索、脸书卖家、新建项目、预止赎、已联系、已合格、培育
- 经纪人:塔莎、内特、科里、劳拉、玛丽·艾伦、乔什
- 分配线索时,使用标签格式:agent-{名字}