get https://cognito.educacional.com/oauth2/token
This endpoint is used to request an authorization token used to authenticate each invocation of the other Learning Analytics API endpoints.
Learning Analytics authentication and authorization are based on AWS Cognito User Pool.
Request structure
Header
Authorization
: Client_ID:Client_Secret words converted to Base64Content-Type
: application/x-www-form-urlencoded
Parameters
grant_type
: client_credentialsclient_id
: You must use the Client_ID provided when registering your applicationscope
: la-apiauthidentifier/authorization
Responses
- Code: 200
- Status: OK
{
"access_token": sting containing the Access Token,
"expires_in": 3600,
"token_type": "Bearer"
}
- Code: 400
- Status: Bad Request