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.

Endpoints

Production environment
POST [under construction / not available]

Sandbox
POST https://learning-analytics.auth.us-east-1.amazoncognito.com/oauth2/token

Request structure

Header

  • Authorization : Client_ID:Client_Secret words converted to Base64
  • Content-Type : application/x-www-form-urlencoded

Parameters

  • grant_type : client_credentials
  • client_id : You must use the Client_ID provided when registering your application
  • scope : 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
Language
Click Try It! to start a request and see the response here!