Get Access Token

POST https://services.leadconnectorhq.com/oauth/token

Use Access Tokens to access resources on behalf of an authenticated location/company.

Request

client_id
string
required

The ID provided by GHL for your integration

client_secret
string
required
grant_type
string
required
Allowed values:
authorization_coderefresh_token
code
string
refresh_token
string
user_type
string

The type of token to be requested

Allowed values:
CompanyLocation
Example:
Location
redirect_uri
string

The redirect URI for your application

Example:
https://myapp.com/oauth/callback/gohighlevel

Responses

client_id
string
required

The ID provided by GHL for your integration

client_secret
string
required
grant_type
string
required
Allowed values:
authorization_coderefresh_token
code
string
refresh_token
string
user_type
string

The type of token to be requested

Allowed values:
CompanyLocation
Example:
Location
redirect_uri
string

The redirect URI for your application

Example:
https://myapp.com/oauth/callback/gohighlevel

Bad Request

statusCode
number
Example:
400
message
string
Example:
Bad Request

Unauthorized

statusCode
number
Example:
401
message
string
Example:
Invalid token: access token is invalid
error
string
Example:
Unauthorized

Unprocessable Entity

statusCode
number
Example:
422
message
array[string]
Example:
["Unprocessable Entity"]
error
string
Example:
Unprocessable Entity