Questions operations.
Search the question bank
GET/questions
Returns a bounded, lean staff catalog. It never includes documents, answer keys, learner identities, or private placement provenance.
Query parameters
archiveenum
activearchivedall
languageenum
Language used by the question copy.
enptes
publicationenum
draftpublished
qstring
Title, prompt or option substring.
Responses
200Search the question bank.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"hasMore": true,
"page": 0,
"questions": [
{
"archivedAt": "2026-01-31T12:00:00.000Z",
"difficulty": "easy",
"id": "string",
"language": "en",
"ownerId": "string",
"publishedRevision": 0,
"teamId": "string",
"title": "string",
"topics": [
"string"
],
"updatedAt": "2026-01-31T12:00:00.000Z",
"usageCount": 0
}
]
}
}
Create a reusable question
POST/questions
Creates a focused one-question draft in the caller's organization. It is not learner-visible until published and placed in a consumer quiz.
Request body
languageenumrequired
Language used by the question copy.
enptes
teamIdstring
Owning team id; omit for personal ownership.
Responses
201Create a reusable question.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions \
--request POST \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"language": "en",
"title": "string",
"teamId": "string"
}'
{
"data": {
"draftRevision": 0,
"id": "string"
}
}
Get question source detail
GET/questions/{id}
Editor-authorized detail. The draft and published source include answer keys and must never be sent to learners.
Path parameters
idstring
Canonical question content id.
Responses
200Get question source detail.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id} \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"archivedAt": "2026-01-31T12:00:00.000Z",
"difficulty": "easy",
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0,
"id": "string",
"language": "en",
"publishedDigest": "string",
"publishedDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"publishedRevision": 0,
"title": "string",
"topics": [
"string"
]
}
}
PATCH/questions/{id}
Updates language, optional difficulty, and up to twelve normalized topics without modifying any existing consumer snapshot.
Path parameters
idstring
Canonical question content id.
Request body
difficultyenum | nullrequired
easymediumhard
languageenumrequired
Language used by the question copy.
enptes
Responses
200Update question metadata.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id} \
--request PATCH \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"difficulty": "easy",
"language": "en",
"topics": [
"string"
]
}'
{
"data": {
"archivedAt": "2026-01-31T12:00:00.000Z",
"difficulty": "easy",
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0,
"id": "string",
"language": "en",
"publishedDigest": "string",
"publishedDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"publishedRevision": 0,
"title": "string",
"topics": [
"string"
]
}
}
Replace the focused question draft
PUT/questions/{id}/document
Replaces the complete canonical one-question document. Existing consumer placements stay pinned and unchanged.
Path parameters
idstring
Canonical question content id.
Request body
documentobjectrequired
A focused document containing exactly one quiz and one question.
Responses
200Replace the focused question draft.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/document \
--request PUT \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"document": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
}
}'
{
"data": {
"archivedAt": "2026-01-31T12:00:00.000Z",
"difficulty": "easy",
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0,
"id": "string",
"language": "en",
"publishedDigest": "string",
"publishedDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"publishedRevision": 0,
"title": "string",
"topics": [
"string"
]
}
}
Preview a reusable question safely
GET/questions/{id}/preview
Returns the published learner-safe snapshot. Correct option ids, drafts, and private source provenance are removed.
Path parameters
idstring
Canonical question content id.
Responses
200Preview a reusable question safely.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/preview \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"difficulty": "easy",
"digest": "string",
"document": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"id": "string",
"language": "en",
"revision": 0,
"topics": [
"string"
]
}
}
Publish the question source
POST/questions/{id}/publish
Validates the focused draft and creates a new reusable source revision. Existing consumer placements are not mutated.
Path parameters
idstring
Canonical question content id.
Request body
expectedRevisioninteger
Current draft revision used as an optimistic concurrency guard.
Responses
200Publish the question source.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/publish \
--request POST \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"expectedRevision": 0
}'
{
"data": {
"archivedAt": "2026-01-31T12:00:00.000Z",
"difficulty": "easy",
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0,
"id": "string",
"language": "en",
"publishedDigest": "string",
"publishedDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"publishedRevision": 0,
"title": "string",
"topics": [
"string"
]
}
}
Archive a question
POST/questions/{id}/archive
Hides the source from new reuse while retaining every existing embedded consumer snapshot and result.
Path parameters
idstring
Canonical question content id.
Responses
200Archive a question.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/archive \
--request POST \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"archivedAt": "2026-01-31T12:00:00.000Z"
}
}
Restore an archived question
POST/questions/{id}/restore
Makes a previously archived published source eligible for reuse again.
Path parameters
idstring
Canonical question content id.
Responses
200Restore an archived question.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/restore \
--request POST \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"archivedAt": "string"
}
}
List question placements
GET/questions/{id}/usage
Returns at most 100 authorized draft and published placements with pinned revision identity and update availability. No learner data is included.
Path parameters
idstring
Canonical question content id.
Responses
200List question placements.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/usage \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"placements": [
{
"consumerContentId": "string",
"consumerTitle": "string",
"placementQuestionId": "string",
"quizId": "string",
"sourceRevision": 0,
"stage": "draft",
"updateAvailable": true
}
]
}
}
GET/questions/{id}/performance
Aggregates correctness by pinned source revision. All counts and rates are suppressed until at least five attempts exist, and learner identities are never returned.
Path parameters
idstring
Canonical question content id.
Responses
200Get privacy-safe question performance.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/questions/{id}/performance \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"attempts": 0,
"correctRate": 0,
"revisions": [
{
"attempts": 0,
"correctRate": 0,
"revision": 0
}
],
"suppressed": true
}
}
Insert reusable questions into a quiz
POST/contents/{id}/quizzes/{quizId}/questions
Atomically inserts the ordered published source snapshots at one question position. The complete batch is rejected when the parent revision is stale, a source is unavailable, or the position is invalid.
Path parameters
idstring
Consumer content id.
quizIdstring
Stable target quiz id.
Request body
expectedRevisionintegerrequired
Current parent draft revision.
positionintegerrequired
Zero-based position among quiz questions, including the append position.
sourceContentIdsstring[]required
Canonical question ids in the exact insertion order; duplicates create independent placements.
Responses
200Insert reusable questions into a quiz.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/contents/{id}/quizzes/{quizId}/questions \
--request POST \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"expectedRevision": 0,
"position": 0,
"sourceContentIds": [
"string"
]
}'
{
"data": {
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0
}
}
Compare a pinned question placement
GET/contents/{id}/quiz-questions/{questionId}/compare
Reports only source identity, pinned/current revision, archive state, and update availability. It does not return answer keys or mutate the draft.
Path parameters
idstring
Consumer content id.
questionIdstring
Stable placement question id.
Responses
200Compare a pinned question placement.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/contents/{id}/quiz-questions/{questionId}/compare \
--header 'Authorization: Bearer cr_live_…'
{
"data": {
"archived": true,
"currentRevision": 0,
"pinnedRevision": 0,
"sourceContentId": "string",
"updateAvailable": true
}
}
Refresh a pinned question placement
POST/contents/{id}/quiz-questions/{questionId}/refresh
Replaces the placement copy from the current published source while preserving mapped placement and option identities. Requires the current parent draft revision.
Path parameters
idstring
Consumer content id.
questionIdstring
Stable placement question id.
Request body
expectedRevisionintegerrequired
Responses
200Refresh a pinned question placement.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/contents/{id}/quiz-questions/{questionId}/refresh \
--request POST \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"expectedRevision": 0
}'
{
"data": {
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0
}
}
Detach a reusable question placement
POST/contents/{id}/quiz-questions/{questionId}/detach
Removes private source provenance while preserving the current editable question and all placement-local identities.
Path parameters
idstring
Consumer content id.
questionIdstring
Stable placement question id.
Request body
expectedRevisionintegerrequired
Responses
200Detach a reusable question placement.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/contents/{id}/quiz-questions/{questionId}/detach \
--request POST \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"expectedRevision": 0
}'
{
"data": {
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0
}
}
Remove a quiz question placement
DELETE/contents/{id}/quiz-questions/{questionId}
Removes only this placement from the current parent draft. The canonical source and all other placements remain unchanged.
Path parameters
idstring
Consumer content id.
questionIdstring
Stable placement question id.
Request body
expectedRevisionintegerrequired
Responses
200Remove a quiz question placement.
400Validation failed or the request body is malformed.
401Missing, invalid or revoked API key.
403The key's organization does not own this resource.
404The resource does not exist (or belongs to another org).
429Rate limit exceeded (240 reads/min, 60 writes/min per key).
500Unexpected server error.
curl https://api.cursare.com/v1/contents/{id}/quiz-questions/{questionId} \
--request DELETE \
--header 'Authorization: Bearer cr_live_…' \
--header 'Content-Type: application/json' \
--data '{
"expectedRevision": 0
}'
{
"data": {
"draftDocument": {
"attrs": {
"version": 0
},
"content": [
"string"
],
"type": "string"
},
"draftRevision": 0
}
}