Skip to main content
Quiz endpoints sit under /api/brands/{brand}/quizzes/ with moduleAccess:quizzes middleware. Authenticate with EF-Access-Key.

List Quizzes

per_page
number
Results per page (1–100, default: 25)
q
string
Search by name
sort
string
newest, oldest, created_at, updated_at
cURL

List Quizzes (Unpaginated)

Returns { id, name, code } for all quizzes — useful for dropdowns and mapping.

Get Quiz

flow_data is not included in the show response. Use GET .../flow to retrieve the flow graph.

Create Quiz

name
string
required
Quiz name
cURL

Update Quiz

name
string
required
Quiz name (max 255)
page_id
number
ID of the page to associate with this quiz
config
object
Quiz display configuration (theme, layout, computed variables, etc.)

Delete Quiz


Get Quiz Flow

Returns the visual flow graph (Drawflow format) and all screen definitions.
cURL
If no flow has been saved yet, flow defaults to a minimal empty Drawflow structure ({"drawflow":{"Home":{"data":[]}}}).

Save Quiz Flow

flow
any
The complete Drawflow graph object. Can be null to clear the flow.
cURL

Screens

Quiz screens are the individual question/result pages within a quiz. They are nested under the quiz resource.

List Screens

Get Screen

Create Screen

name
string
required
Screen name / question title
type
string
required
Screen type: single_choice, multiple_choice, text_input, rating, result, info, video, image
title
string
Display title shown to the user
subtitle
string
Subtitle or question description
options
array
Answer options (for choice screens) — each with label and value
screen_settings
object
Additional screen-level configuration
content
string
HTML content (for info and result screens)
style
string
light or dark
order
number
Display order. Auto-incremented if omitted.
audio_file
file
Audio file upload (multipart)
image_preview_file
file
Image file upload (multipart)
cURL

Update Screen

Same body as Create.

Delete Screen

Reorder Screens

order
object
required
Map of { "<screenId>": <integer order>, ... }
cURL

Duplicate Screen

Creates an exact copy of the screen with a new code and auto-assigned order.

Notes

  • flow_data is separate from the quiz’s config and screen definitions — save and retrieve it with the dedicated /flow endpoints
  • Screen code values are auto-generated unique identifiers used in the flow graph to connect questions to answer paths
  • total_entries tracks submission count and is incremented automatically when entries are submitted via the public form