POST
/
question
/
create
curl --request POST \
  --url https://app.quizrise.com/api/v1/question/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "quizId": "<string>",
  "type": "TRUEFALSE",
  "difficulty": "EASY",
  "count": 2,
  "content": "<string>",
  "language": "<string>",
  "source": "TEXT",
  "url": "<string>"
}'
{
  "status": "success",
  "message": "<string>",
  "quizId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
quizId
string
required

ID of the quiz

type
enum<string>
required

Type of questions to generate

Available options:
TRUEFALSE,
FILLBLANK,
MULTIPLECHOICE
count
integer
required

Number of questions to generate

Required range: x >= 1
source
enum<string>
required

Source type of the content

Available options:
TEXT,
PDF,
WEBSITE,
IMAGE
difficulty
enum<string>

Difficulty level of questions

Available options:
EASY,
MEDIUM,
HARD
content
string

Content to generate questions from

language
string

Language of the content

url
string

URL to fetch content from

Response

200
application/json
Questions creation initiated successfully
status
enum<string>
Available options:
success
message
string
quizId
string