In this short documentation, we’ll explain how you can create a seamless integration for a learner on the platform.

  1. Create a new session by learner email and receive the access token.

Please, use your api-key to make a request. The API key can be found - https://app.educate-me.co/en/general-settings/api-integrations

POST /students/{email}/sessions

Body:
{
	expireInDays: number // # of days the token will be active. By default, the value is 100
}

This method returns the following interface

{
	accessToken: string
	expiresIn: number // in seconds
	id: string // id of a learner
}
  1. Create an access link to the platform interface with the following route:
{your_domain}/auth?accessToken={access_token_here}

An example of such a link:

https://app.educate-me.co/auth?accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNscDlsZWJuaDdrYWswODE0N2t4MnQ0anMiLCJlbWFpbCI6ImpvaG4uZG9lQGVkLW1lLmNvIiwicm9sZSI6IlNUVURFTlQiLCJ3b3Jrc3BhY2VJZCI6ImNraTAxMGJ6Yjh1emcwNzMwOTB4Z2U3NW8iLCJpYXQiOjE3MTI5MTUzNTUsImV4cCI6MTcyMDY5MTM1NX0.J4x0Y5rJOR2m0iGC0W-Tr3U3IbciAZKoitU1WOnzhqI