Reference

Workspace API

These routes describe how Minhaj is shaped. The running application keeps the same behavior in the browser and does not call a remote server.

Authentication

Authorization: Bearer mnh_workspace_layla
Content-Type: application/json
POST/v1/sessions

Open a workspace session

Auth: None

Request

{
  "role": "student",
  "userId": "stu_layla"
}

Response

{
  "token": "mnh_workspace_layla",
  "role": "student",
  "expiresIn": 604800
}

401

Missing or unknown workspace token.

403

Student token used on the content desk, or access is inactive.

422

Import row failed validation.