Render a quiz question to canvas objects (test endpoint)

Test endpoint. It exists to verify quiz rendering on the video-render service and is not used by the Elai web app, which builds question objects in the browser. Treat the response shape as unstable.

Turns question parameters into the canvas object that would be drawn on a slide, and returns it alongside a generated slide id.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/quiz/build-question' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "questionText": "What is Elai?",
  "answers": [
    {
      "text": "A video platform"
    },
    {
      "text": "A database"
    }
  ],
  "correctAnswers": [
    0
  ]
}'
Body Params
string
required
length ≥ 1
answers
array of objects
required
length ≥ 1
answers*
string
required
correctAnswers
array of integers
required
correctAnswers*
string
enum
Allowed:
string
enum
Allowed:
string
enum
Allowed:
boolean
object | null
object | null
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json