Quiz
Get quiz details
Get details of a quiz from its ID
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
POST
/
public
/
get-quiz-details
curl --request POST \
--url https://backend.codedamn.com/api/public/get-quiz-details \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"quizId": "<string>"
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"createdAtIso": "2023-11-07T05:31:56Z",
"quizTitle": "<string>",
"questions": [
{
"questionId": "<string>",
"type": "MultiCorrect",
"title": "<string>",
"explanation": "<string>",
"description": "<string>",
"options": [
{
"optionId": "<string>",
"text": "<string>",
"isCorrectOption": true
}
]
}
]
}
}
}
]
Authorizations
Body
application/json
API Request Body
The body is of type object
.
Response
200 - application/json
API Response Body
The response is of type object[]
.
curl --request POST \
--url https://backend.codedamn.com/api/public/get-quiz-details \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"quizId": "<string>"
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"createdAtIso": "2023-11-07T05:31:56Z",
"quizTitle": "<string>",
"questions": [
{
"questionId": "<string>",
"type": "MultiCorrect",
"title": "<string>",
"explanation": "<string>",
"description": "<string>",
"options": [
{
"optionId": "<string>",
"text": "<string>",
"isCorrectOption": true
}
]
}
]
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.