authentication

Generate Access Token

post/oauth2/token

Request

  • Base URL
    https://auth.sandbox.leantech.me
  • URL
    https://auth.sandbox.leantech.me/oauth2/token
  • Auth
    none required

Headers

Content-Typestring

Request body application/x-www-form-urlencoded

client_idstring uuid required

Your application ID - this can be retrieved from your Application Dashboard account.

client_secretstring required

Your client secret - this can be retrieved once from your Application Dashboard - subsequent retrievals will invalidate your existing client secret.

grant_type'client_credentials' required

The type of access you require a token for - currently this should always be set to client_credentials

scopestring required

What the scope of the access token should be, either api or customer.<customer_id>

Example request

{
  "client_id": "9b3f8611-bd43-41dc-9b4c-3ba18be91bfa",
  "grant_type": "client_credentials",
  "scope": "api"
}

Response

access_tokenstring required

The access token value for use with the Lean APIs

token_typestring required

Will always be bearer, indicates the type of token returned

expires_ininteger required

The time in seconds until the access token expires

scopestring required

The scope of the access token and what resources it can access.

api - For generating an access token when calling a backend API service.

customer.<customer_id> - For generating an access token for authenticated LinkSDK sessions.

Example response

{
  "scope": "api"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.