Create a question

Create a question on a video. Send the fields as a JSON body (Content-Type: application/json) or as form fields. video_id, type, time, and prompt are required. Choice types (multiple, all, select, likert, poll) also need answers or question_answers.

List fields take a JSON array or a string. For example, send answers as ["3","4","5"] or "3;4;5".

To grade a multiple choice question, set correct_answer to the text of one answer.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The ID or token of the video that gets the question.

string
enum
required

Question type. Choice types need answers or question_answers: multiple (Multiple Choice, one answer), all (Choose All That Apply), select (Dropdown Select), likert (Likert Scale), poll (Display Poll). Other types: free (Free Response), number, date, rating (1 to 5), draw, image, video, voice. An unknown value becomes multiple when answers are sent, or free when they are not.

float
required

Seconds from the start of the video when the question appears.

string
required

The question text that the viewer sees.

answers

Answer choices as a JSON array, such as ["3","4","5"], or one string separated by semicolons, such as 3;4;5. Required for choice types unless you send question_answers. Each answer uses the reply action unless you send actions.

actions

Click action for each answer, in the same order as answers. Send an array, such as ["reply","jump","link"], or a string separated by semicolons, such as reply;jump;link. Values: track, reply, message, jump, link, video, back, email, phone, clip, audio, download, article, view, language, share, certificate, none. A missing or unknown action becomes reply.

values

Value for each action, in the same order as answers. Send an array, such as ["","60","https://example.com"], or a string separated by semicolons, such as ;60;https://example.com. Use seconds for jump, a URL for link, text for message, an asset ID for clip and audio, an image URL for view, a file URL for download, a language code such as es for language, or the certificate id on this video (the click_value from POST /videos/{id}/certificates) for certificate. GET /assets gives the click_value for each asset.

string
string
string
string
string
string
string
string
string

Alias for answers_color.

answer

Same as answers.

string

Text color for answer choices.

string

The correct answer for multiple, select, and date questions. Use the text of one answer. The player compares the viewer's choice with this value and ignores letter case.

string

Question transition style.

question_answers

Answer objects, as a JSON array or as a string that contains one. Use this field when each answer needs its own action, variable, or Next Action. When you send this field, answers, actions, and values are ignored. The correct flag marks an answer in reports. To grade answers in the player, also set correct_answer or question_multi_correct.

string

Prompt text color alias.

string

Answer text color.

string

Correct answer color.

string

Incorrect answer color.

string

Same as correct_answer.

question_multi_correct

The correct answers for all and free questions. Send an array, such as ["Red","Blue"], the same array as a string, or a semicolon list, such as Red;Blue. Ignored when correct_answer or question_single_correct is also sent.

string

Question transition alias.

integer

Question time limit in seconds.

boolean

Use custom design for the question.

boolean

Use the timer as a question time limit.

boolean

Allow the viewer to skip the question.

boolean

Allow the viewer to rewind from the question.

float

Timestamp to rewind to.

boolean

Show a question hint.

string

Question hint text.

boolean

Repeat the question until the viewer answers correctly.

boolean

Read the prompt aloud.

boolean

Read the answer choices aloud.

integer

Voice number for read-aloud question audio.

string

Message shown after the question.

boolean

Allow upload responses where supported.

boolean

Whether this question has one or more correct answers.

integer

Minimum answer length.

integer

Maximum answer length.

integer

Minimum numeric answer value.

integer

Maximum numeric answer value.

string
enum

Action to run after a correct answer. Same values as the click_action of an answer.

string

Action value for a correct answer. Same values as the click_value of an answer.

string

Action argument for a correct answer.

string
enum

Action to run after an incorrect answer. Same values as the click_action of an answer.

string

Action value for an incorrect answer. Same values as the click_value of an answer.

string

Action argument for an incorrect answer.

string

Internal label for organization use.

boolean

Hide this question by default.

boolean

Hide this question on mobile devices.

boolean

Hide this question on desktop devices.

string

Variable name to set from the question.

string

Variable value to set from the question.

boolean

Enable conditional display logic.

boolean

Show the question when the condition matches.

string

Conditional variable name.

string

Conditional comparison operator.

string

Conditional comparison value.

integer

Operator used when combining two conditions.

boolean

Enable a second conditional rule.

string

Second conditional variable name.

string

Second conditional comparison operator.

string

Second conditional comparison value.

boolean

Map question response to HubSpot.

string

HubSpot field name.

string

HubSpot field value.

boolean

Enable ClickFunnels integration.

string

ClickFunnels tag.

string

ClickFunnels custom attribute name.

string

ClickFunnels custom attribute value.

boolean

Free response only. Require an exact case match with a correct answer. Default false.

string

Question background image URL. An empty string removes it.

string
enum

cover fills the panel. contain shows the whole image.

Allowed:
integer
0 to 100

Background image opacity, 0 to 100.

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

400

Bad Request. A required field is missing, or a field has the wrong type.

401

Not Authorized

404

Not Found

422

Unprocessable Entity. For example, a choice question without answers.

500

Error

503

Rate Limit Exceeded

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