Skip to main content
POST
/
ghl
/
connect
/
user
Lead Connect User
curl --request POST \
  --url https://app.closerx.ai/api/ghl/connect/user/ \
  --header 'Company-Name: <company-name>' \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "code": "a",
  "state": "a"
}
'
{
  "success": true,
  "message": "User successfully connected to GHL"
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

Schema name for multi-tenancy

Body

application/json
code
string
required

Authorization code returned from GHL

Example:

"a"

state
string
required

State value returned from GHL

Example:

"a"

Response

GHL connection successful

success
boolean
Example:

true

message
string
Example:

"User successfully connected to GHL"