Learn how to authenticate with Landing’s API using OAuth 2.0
Parameter | Description |
---|---|
client_id | Your application’s client ID |
redirect_uri | One of your authorized redirect URIs |
response_type | Must be code |
scope | Comma-separated list of requested scopes |
state | A random string to prevent CSRF attacks |
Parameter | Description |
---|---|
code_challenge | Base64URL encoded SHA-256 hash of the code verifier (required if using PKCE) |
code_challenge_method | Must be S256 when using PKCE |
project.read
- Read access to projectspages.read
- Read access to pagesleads.read
- Read access to leadsuser.read
- Read access to user information (default)redirect_uri
with an authorization code:
state
parameter matches the one you sent in step 2 to prevent CSRF attacks.
Parameter | Description |
---|---|
grant_type | Must be authorization_code |
code | The authorization code received in step 3 |
redirect_uri | The same redirect URI used in step 2 |
client_id | Your application’s client ID |
Method | Parameters |
---|---|
Client Secret | client_secret : Your application’s client secret |
PKCE | code_verifier : The original code verifier string used to generate the code challenge |
application/x-www-form-urlencoded
data.
Example Response:
Parameter | Description |
---|---|
grant_type | Must be refresh_token |
refresh_token | The refresh token |
client_id | Your application’s client ID |
Parameter | Description |
---|---|
client_secret | Your application’s client secret (required if not using PKCE) |
user.read
scope.