post
https://apis.elai.io/api/v1/quiz/build-question
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
]
}'
