An API Key consists of a Client ID and Client Secret (secret key). With this API Key, you can submit a request to obtain an access token, which can then be used in the REST and SOAP API.

Sample Request

curl --location 'https://api-learn.ispringlearn.com/api/v3/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Accept: application/json' \
--data-urlencode 'client_id=788f274b-68f4-11ee-b2b4-d6615e040b19' \
--data-urlencode 'client_secret=j016Mzmqxn0RpRuDp5K4xeMfgdUnuFgs2g8LLIFt-ho' \
--data-urlencode 'grant_type=client_credentials'
CODE

Sample Response

{
    "access_token": "5_nz54vlUBIcxt8oJOmE5K6Qr1ARMy5jwPMdVATOCBB",
    "expires_in": 1800,
    "token_type": "bearer"
}
CODE

Request Parameters

Parameter

Description

access_token

iSpring Learn Account API Access Token.

expires_in

The token’s lifetime is 1800 seconds (30 minutes). After that, the token becomes invalid.

token_type

The type of token used for authorization, which always takes the value of “bearer.”


Done! You now have an access token.
Now use the access token in the REST and SOAP API. The access token is valid for 30 minutes.

Sample Request

curl --location 'https://api-learn.ispringlearn.com/content' \
--header 'X-Target-Locale: en-US' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer 5_nz54vlUBIcxt8oJOmE5K6Qr1ARMy5jwPMdVATOCBB'
CODE