Docs API reference

Question banks

Reusable questions with immutable versions.

Questions live in banks and are never edited in place: every edit adds a new immutable version. The body shape depends on the question type; see Quizzes & questions.

9 endpoints · base path /api/v1

GET/api/v1/question-banks#

List question banks

AccessAdmin, or an API key with the read or write scope.

Lists banks with the number of active questions in each. A bank is a folder: every question lives in exactly one.

Responses

200OK· list of BankView
Example response
[
  {
    "activeQuestions": 1,
    "description": "A short description.",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "name": "Acme Company"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.

Errors use RFC 9457 problem details.

curl -X GET "$LMS_URL/api/v1/question-banks" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/question-banks#

Create a question bank

AccessAdmin, or an API key with the write scope.

Creates a bank. Names are unique within the tenant.

Request body application/json · CreateBank

FieldTypeNotes
descriptionstring—
namerequiredstringmin length 1
Example request body
{
  "description": "A short description.",
  "name": "Acme Company"
}

Responses

201Created· BankView
Example response
{
  "activeQuestions": 1,
  "description": "A short description.",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "name": "Acme Company"
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
409A bank with that name already exists.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/question-banks" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "description": "A short description.",
  "name": "Acme Company"
}'
GET/api/v1/question-banks/{bankId}/questions#

List questions in a bank

AccessAdmin, or an API key with the read or write scope.

Lists questions with their latest version and how many versions exist. Filter with status=ACTIVE or ARCHIVED.

Parameters

NameInTypeNotes
bankIdrequiredpathstring (uuid)The id from a previous response.
statusquerystringmatches ACTIVE|ARCHIVED

Responses

200OK· list of QuestionView
Example response
[
  {
    "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "latest": {
      "body": {},
      "createdAt": "2026-11-25T14:03:11Z",
      "explanation": "Always use the nearest safe exit.",
      "gradingMode": "string",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "points": 1,
      "prompt": "Where do you go when the fire alarm sounds?",
      "type": "SINGLE_CHOICE",
      "versionNumber": 1
    },
    "status": "ACTIVE",
    "versionCount": 1
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

BANK_ID=7e41743a-ffa6-461a-a5b3-c125e18b0472
curl -X GET "$LMS_URL/api/v1/question-banks/$BANK_ID/questions?status=ACTIVE" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/question-banks/{bankId}/questions#

Create a question

AccessAdmin, or an API key with the write scope.

Creates a question and its first version. type is one of SINGLE_CHOICE, MULTIPLE_CHOICE, TRUE_FALSE, SHORT_TEXT, NUMERIC, ORDERING, MATCHING, LONG_TEXT, and body must match that type exactly. Each shape is described in Quizzes & questions.

Essay (LONG_TEXT) questions are always graded by a person. points defaults to 1.

Parameters

NameInTypeNotes
bankIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · QuestionInput

FieldTypeNotes
bodyrequiredJsonNode—
explanationstring—
gradingModestringmatches AUTO|MANUAL
pointsnumbermin 0
promptrequiredstringmin length 1
typerequiredstringmatches SINGLE_CHOICE|MULTIPLE_CHOICE|TRUE_FALSE|SHORT_TEXT|NUMERIC|ORDERING|MATCHING|LONG_TEXT
Example request body
{
  "type": "SINGLE_CHOICE",
  "prompt": "Where do you go when the fire alarm sounds?",
  "points": 1,
  "explanation": "Always use the nearest safe exit.",
  "body": {
    "options": [
      {
        "id": "a",
        "text": "The nearest safe exit"
      },
      {
        "id": "b",
        "text": "Back to my desk"
      },
      {
        "id": "c",
        "text": "The lift"
      }
    ],
    "correctOptionId": "a"
  }
}

Responses

201Created· QuestionView
Example response
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "latest": {
    "body": {},
    "createdAt": "2026-11-25T14:03:11Z",
    "explanation": "Always use the nearest safe exit.",
    "gradingMode": "string",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "points": 1,
    "prompt": "Where do you go when the fire alarm sounds?",
    "type": "SINGLE_CHOICE",
    "versionNumber": 1
  },
  "status": "ACTIVE",
  "versionCount": 1
}

Errors

StatusWhen
400The body doesn't match the type (for example the correct option id isn't one of the options).
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

BANK_ID=7e41743a-ffa6-461a-a5b3-c125e18b0472
curl -X POST "$LMS_URL/api/v1/question-banks/$BANK_ID/questions" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "SINGLE_CHOICE",
  "prompt": "Where do you go when the fire alarm sounds?",
  "points": 1,
  "explanation": "Always use the nearest safe exit.",
  "body": {
    "options": [
      {
        "id": "a",
        "text": "The nearest safe exit"
      },
      {
        "id": "b",
        "text": "Back to my desk"
      },
      {
        "id": "c",
        "text": "The lift"
      }
    ],
    "correctOptionId": "a"
  }
}'
GET/api/v1/questions/{id}#

Get a question with all its versions

AccessAdmin, or an API key with the read or write scope.

Returns the question and every version, newest first. Versions are immutable.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

Example response
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "status": "ACTIVE",
  "versions": [
    {
      "body": {},
      "createdAt": "2026-11-25T14:03:11Z",
      "explanation": "Always use the nearest safe exit.",
      "gradingMode": "string",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "points": 1,
      "prompt": "Where do you go when the fire alarm sounds?",
      "type": "SINGLE_CHOICE",
      "versionNumber": 1
    }
  ]
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

QUESTION_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/questions/$QUESTION_ID" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/questions/{id}/archive#

Archive a question

AccessAdmin, or an API key with the write scope.

Archived questions stay in quizzes that already use them but can't be added to new ones or drawn into new pools.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· QuestionView
Example response
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "latest": {
    "body": {},
    "createdAt": "2026-11-25T14:03:11Z",
    "explanation": "Always use the nearest safe exit.",
    "gradingMode": "string",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "points": 1,
    "prompt": "Where do you go when the fire alarm sounds?",
    "type": "SINGLE_CHOICE",
    "versionNumber": 1
  },
  "status": "ACTIVE",
  "versionCount": 1
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

QUESTION_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/questions/$QUESTION_ID/archive" \
  -H "X-API-Key: $LMS_KEY"
PUT/api/v1/questions/{id}/bank#

Move a question to another bank

AccessAdmin, or an API key with the write scope.

A question lives in exactly one bank; moving it is an explicit act.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Request body application/json · MoveQuestion

FieldTypeNotes
bankIdrequiredstring (uuid)—
Example request body
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472"
}

Responses

200OK· QuestionView
Example response
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "latest": {
    "body": {},
    "createdAt": "2026-11-25T14:03:11Z",
    "explanation": "Always use the nearest safe exit.",
    "gradingMode": "string",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "points": 1,
    "prompt": "Where do you go when the fire alarm sounds?",
    "type": "SINGLE_CHOICE",
    "versionNumber": 1
  },
  "status": "ACTIVE",
  "versionCount": 1
}

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

QUESTION_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X PUT "$LMS_URL/api/v1/questions/$QUESTION_ID/bank" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472"
}'
POST/api/v1/questions/{id}/restore#

Restore a question

AccessAdmin, or an API key with the write scope.

Makes an archived question active again.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· QuestionView
Example response
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "latest": {
    "body": {},
    "createdAt": "2026-11-25T14:03:11Z",
    "explanation": "Always use the nearest safe exit.",
    "gradingMode": "string",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "points": 1,
    "prompt": "Where do you go when the fire alarm sounds?",
    "type": "SINGLE_CHOICE",
    "versionNumber": 1
  },
  "status": "ACTIVE",
  "versionCount": 1
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

QUESTION_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/questions/$QUESTION_ID/restore" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/questions/{id}/versions#

Edit a question (adds a version)

AccessAdmin, or an API key with the write scope.

A question is never edited in place. Posting here adds the next immutable version. The type can't change; create a new question for that.

Quizzes that already use the question keep the version they pinned until you upgrade them with POST /assessment-items/{id}/upgrade. Attempts always show the exact version the learner saw.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Request body application/json · QuestionInput

FieldTypeNotes
bodyrequiredJsonNode—
explanationstring—
gradingModestringmatches AUTO|MANUAL
pointsnumbermin 0
promptrequiredstringmin length 1
typerequiredstringmatches SINGLE_CHOICE|MULTIPLE_CHOICE|TRUE_FALSE|SHORT_TEXT|NUMERIC|ORDERING|MATCHING|LONG_TEXT
Example request body
{
  "type": "SINGLE_CHOICE",
  "prompt": "Where do you go when the fire alarm sounds?",
  "body": {
    "options": [
      {
        "id": "a",
        "text": "The nearest safe exit"
      },
      {
        "id": "b",
        "text": "Back to my desk"
      }
    ],
    "correctOptionId": "a"
  }
}

Responses

201Created· QuestionView
Example response
{
  "bankId": "7e41743a-ffa6-461a-a5b3-c125e18b0472",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "latest": {
    "body": {},
    "createdAt": "2026-11-25T14:03:11Z",
    "explanation": "Always use the nearest safe exit.",
    "gradingMode": "string",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "points": 1,
    "prompt": "Where do you go when the fire alarm sounds?",
    "type": "SINGLE_CHOICE",
    "versionNumber": 1
  },
  "status": "ACTIVE",
  "versionCount": 1
}

Errors

StatusWhen
400The type differs from the question's type, or the body is invalid.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

QUESTION_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/questions/$QUESTION_ID/versions" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "SINGLE_CHOICE",
  "prompt": "Where do you go when the fire alarm sounds?",
  "body": {
    "options": [
      {
        "id": "a",
        "text": "The nearest safe exit"
      },
      {
        "id": "b",
        "text": "Back to my desk"
      }
    ],
    "correctOptionId": "a"
  }
}'

Type to search guides and every endpoint.