This document describes how to authenticate with the reteach Rest API.
More resources:
Table of content
To authenticate users, a bearer token must be set in the header for each request. This token can be obtained through your app credentials, which can be generated here.
Once you have this data, you can get an Access Token, as well as a Refresh Token through our API.
An access token is only valid for a 1 hour. Once it is invalid, you will need to request a new Access Token using your Refresh Token.
To request an Access Token you need your personal reteach App credentials (Client-ID, Client-Secret, Client-Code).
curl -XPOST -H "Content-type: application/json" -d '{
"grant_type": "authorization_code",
"code":"<CLIENT_CODE>",
"client_secret":"<CLIENT_SECRET>",
"client_id":"<CLIENT_ID>"
}' '<https://api.reteach.io/oauth/authorize>'