e-Schooling API
  1. sso
e-Schooling API
  • e-Schooling API
  • GETTING STARTED
    • Authorization
    • Defaults
  • entities
    • Gets all system entities
      GET
    • Gets a entity from its id
      GET
  • students
    • Gets all system students
      GET
    • Gets a student from its id
      GET
  • tutors
    • Gets all system tutors
      GET
    • Gets a tutor from its id
      GET
  • staffs
    • Gets all system staffs
      GET
    • Gets a staff from its id
      GET
  • teachers
    • Gets all system teachers
      GET
    • Gets a teacher from its id
      GET
  • system
    • Obtain tenant informations
      GET
  • sso
    • Single Sign-On
    • Generate OAuth2 Token
      POST
    • Get user info
      GET
  • Schemas
    • Schemas
      • BadRequestHttpException
      • EntitiesAddresses
      • EntitiesContacts
      • EntityBankAccount
      • EntitiesList
      • EntityIdentificationDocument
      • Entity
      • HttpStatusCode
      • InternalServerErrorHttpException
      • MethodBase
      • EntityIdentificationDocumentInsertRequest
      • NotFoundHttpException
      • NoContent
      • EntityInsertRequest
      • OAuthMeResponse
      • OAuthTokenResponse
      • ProblemDetails
      • Staff
      • StaffIdentificationDocumentInsertRequest
      • StaffInsertRequest
      • StaffsList
      • Student
      • StudentIdentificationDocumentInsertRequest
      • StudentInsertRequest
      • StudentsList
      • SystemStatus
      • Teacher
      • TeacherIdentificationDocumentInsertRequest
      • TeacherInsertRequest
      • TeachersList
      • Tutor
      • TutorIdentificationDocumentInsertRequest
      • TutorInsertRequest
      • TutorsList
  1. sso

Generate OAuth2 Token

Sandbox server
https://api-sandbox.e-schooling.com
Sandbox server
https://api-sandbox.e-schooling.com
POST
/api/oauth2/token
  • Method that generates an authorization token to access the user information with OAuth2
  • Further documentation about the OAuth2 flow details click here

Request

Body Params application/x-www-form-urlencoded

Responses

🟢200OK
application/json
OK
Body

🟠400Bad Request
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-sandbox.e-schooling.com/api/oauth2/token' \
--header 'Authorization: Bearer <token>' \
--data-urlencode 'grant_type=' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'redirect_uri=' \
--data-urlencode 'code='
Response Response Example
200 - Example 1
{
    "access_token": "13942089fjkwvhbkjewvbgkjwgh982yvwijvbiewbvids",
    "token_type": "Bearer",
    "expires_in": "1242342621521",
    "scope": "public",
    "created_at": "2353245232"
}
Modified at 2025-04-09 14:10:01
Previous
Single Sign-On
Next
Get user info
Built with