Base URL: https://services.leadconnectorhq.com
Auth header: Authorization: Bearer $GHL_API_KEY
All requests include: Version: 2021-07-28
curl -s -H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/contacts/search/duplicate?locationId=$GHL_LOCATION_ID&email=$EMAIL" | jq .
curl -s -X POST "https://services.leadconnectorhq.com/contacts/" \
-H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"firstName":"$FIRST","lastName":"$LAST","email":"$EMAIL","phone":"$PHONE","locationId":"'$GHL_LOCATION_ID'","tags":["$TAGS"],"source":"$SOURCE"}' | jq .
curl -s -X POST "https://services.leadconnectorhq.com/contacts/$CONTACT_ID/tags" \
-H "Authorization: Bearer $GHL_API_KEY" -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 $GHL_API_KEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"pipelineId":"$PIPELINE_ID","locationId":"'$GHL_LOCATION_ID'","name":"$DEAL_NAME","stageId":"$STAGE_ID","contactId":"$CONTACT_ID","status":"open"}' | jq .
curl -s -X PUT "https://services.leadconnectorhq.com/opportunities/$OPP_ID/status" \
-H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"stageId":"$NEW_STAGE_ID"}' | jq .
curl -s -H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/opportunities/pipelines?locationId=$GHL_LOCATION_ID" | jq .
curl -s -X POST "https://services.leadconnectorhq.com/conversations/messages" \
-H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"type":"SMS","contactId":"$CONTACT_ID","message":"$MESSAGE"}' | jq .
curl -s -H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" \
"https://services.leadconnectorhq.com/contacts/?locationId=$GHL_LOCATION_ID&query=$SEARCH_TERM&limit=20" | jq .
curl -s -H "Authorization: Bearer $GHL_API_KEY" -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 $GHL_API_KEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" \
-d '{"body":"$NOTE_TEXT"}' | jq .
curl -s -X POST "https://services.leadconnectorhq.com/contacts/$CONTACT_ID/workflow/$WORKFLOW_ID" \
-H "Authorization: Bearer $GHL_API_KEY" -H "Version: 2021-07-28" -H "Content-Type: application/json" | jq .
共 1 个版本