Skip to content

List the question bank

GET/v1/organization/{orgId}/learning/workspace/question-bank

US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com

The organization's bank questions, newest first, 50 a page. A quiz page draws from the bank by tag with a bank_draw block ({ tags, match, count, points? }): publishing the course copies every matching live question into the quiz, and each attempt draws count of them per learner. tags narrows the list to questions that carry every tag (any of them with match=any), q to prompts that contain the text. Each item carries the question block (answers included), its type, the prompt as plain text, its tags and whether it is archived. Reads only. Requires read:learning; refused for a key restricted to particular events. Also at GET /v1/learning/workspace/question-bank.

Request example

Terminal window
curl --request GET \
--url 'https://public-api.sessionboard.com/v1/organization/{orgId}/learning/workspace/question-bank' \
--header 'x-access-token: <api-token>'

Try it

Authorization

Your token stays in this page. It is sent only to the region above and is never saved; it is gone when you leave or reload the page.

Path parameters
Query parameters
GET

Authorizations

  • x-access-tokenstringheader

    Organization API token. Generate from Organization Settings → API Tokens.

  • AuthorizationBearer <token>headeror

    OAuth 2.1 access token. Obtained via the OAuth PKCE flow at /oauth/token.

Send one of these. See Authentication.

Path parameters

  • orgIdstringpathrequired

    Your organization ID. Any other organization returns 404.

Query parameters

  • tagsstringquery

    Comma-separated tags, for example pharmacology,module-2.

    Max length
    700
  • matchstringquery

    all (default): questions with every tag. any: questions with at least one.

    Allowed values
    "all", "any"
  • qstringquery

    Text the prompt contains.

    Max length
    100
  • archivedstringquery

    true lists archived questions instead of live ones.

    Allowed values
    "true", "false"
  • offsetstringquery

    How many questions to skip, for the next page.

    Pattern
    ^[0-9]+$

Responses

200application/json

OK

  • successboolean
  • payloadobject
    Show child attributes
    • itemsLearningQuestionBankItem[]
      Show child attributes
      • idstring<uuid>
      • questionobject

        The question block, answers included; its id is the bank question's id.

      • question_typestring
      • promptstring

        The prompt as plain text.

      • tagsstring[]
      • archivedboolean
      • updated_atstring<date-time>
    • totalinteger
    • limitinteger
    • offsetinteger

400application/json

A path, query or body value failed validation, or an unknown body property was sent. message names the field. (A source object naming the assistant, with the person's prompt, is accepted on every write and removed before validation.) For an {eventId} path that is not a whole number: error: VALIDATION_ERROR, eventId must be a valid integer.

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>

401

Missing, invalid or expired token.

403application/json

  • SCOPE_REQUIRED — the token lacks read:learning (reads) or write:learning (writes). Legacy tokens with no scopes cannot write.
  • ORG_WIDE_TOKEN_REQUIRED — the token is restricted to particular events: "The Learning workspace covers every event and learner in the organization, so this API key (restricted to particular events) cannot use it. Use a key without an event restriction."
  • FEATURE_NOT_ENABLED (feature: lessons_credits) — Learning is not on for the organization.
  • FORBIDDEN — the token's user is not an active member of the organization, or lacks the Lessons permission the operation needs.

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>

404application/json

orgId is not your organization (error: NOT_FOUND, message: Organization not found).

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>

429application/json

  • The token's request limit (100 requests per 15 minutes per bucket by default — see Rate Limiting). Wait Retry-After seconds.
  • QUOTA_EXCEEDED (writes) — the token's daily write quota (10,000 a day). Resets at midnight UTC.

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>
  • Retry-Afterintegerheader

    Seconds to wait before retrying.

Response examples

{
"success": true,
"payload": {
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question": {},
"question_type": "<string>",
"prompt": "<string>",
"tags": [
"<string>"
],
"archived": true,
"updated_at": "2026-01-15T09:30:00Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}
}