Skip to main content

Put an earlier design back

POST/studies/{id}/versions/{versionId}/restore

Puts an earlier version of a draft's design back as the design, as the study page's history does. The design it replaces stays in the history, so this can itself be undone by restoring again. An image the version showed that has since been removed does not come back (dropped says how many). Pass designVersion to be refused if the design changed since you read it. Works only while the study is a draft. (The MCP tool restore_design_version.)

Scope studies:write · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.

curl --fail-with-body -X POST "https://app.jeantechnologies.com/api/v1/studies/STUDY_ID/versions/VERSION_ID/restore" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"designVersion": 10
}'

An Idempotency-Key header is optional here and makes a retry safe. See idempotency.

Path​

NameTypeRequiredNotes
idstring (UUID)yes
versionIdstring (UUID)yes

Body​

FieldTypeRequiredNotes
designVersionintegernoThe current design version you read. Leave out to use the current one.

Response · 200​

FieldTypeRequiredNotes
versionintegeryes
designobjectyes
design.titlestringyesAt least 1 characters.
design.hypothesisstringyesDefault "".
design.audienceobjectyes
design.screener[]object[]yes
design.questions[]object[]yes
design.lastIdintegerno
design.removed[]string[]no
design.briefobjectno
design.hypotheses[]object[]no
design.lastIdsobjectno
design.participationobjectno
design.interviewingobjectno
design.methods[]object[]noAt most 20 items.
droppedintegeryesImages of that version that could not come back.
studyobjectyesThe study as get_study returns it, after this call (added 2026-11-15).
The full response schema
{
"type": "object",
"properties": {
"version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"design": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"hypothesis": {
"default": "",
"type": "string"
},
"audience": {
"type": "object",
"properties": {
"people": {
"default": 20,
"type": "integer",
"minimum": 1,
"maximum": 500
},
"country": {
"default": "United States",
"type": "string"
},
"description": {
"default": "",
"type": "string"
},
"assumed": {
"default": true,
"type": "boolean"
},
"attributes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1
},
"category": {
"default": "other",
"type": "string",
"enum": [
"demographic",
"behaviour",
"attitude",
"firmographic",
"other"
]
},
"rule": {
"default": "must",
"type": "string",
"enum": [
"must",
"must_not",
"prefer"
]
},
"values": {
"default": [],
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"source": {
"default": "stated",
"type": "string",
"enum": [
"screener",
"panel",
"stated"
]
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"name",
"category",
"rule",
"values",
"source"
],
"additionalProperties": false
}
},
"described": {
"type": "string",
"enum": [
"written",
"generated"
]
}
},
"required": [
"people",
"country",
"description",
"assumed"
],
"additionalProperties": false
},
"screener": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1
},
"options": {
"minItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"minLength": 1
},
"qualifies": {
"type": "boolean"
}
},
"required": [
"label",
"qualifies"
],
"additionalProperties": false
}
},
"segment": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"quotas": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"option": {
"type": "string",
"minLength": 1
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 500
}
},
"required": [
"option",
"max"
],
"additionalProperties": false
}
}
},
"required": [
"text",
"options"
],
"additionalProperties": false
}
},
"questions": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"open",
"single",
"multi",
"scale",
"number",
"rank",
"attention"
]
},
"text": {
"type": "string",
"minLength": 1
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
},
"followups": {
"default": 2,
"type": "integer",
"minimum": 0,
"maximum": 6
},
"options": {
"default": [],
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"maxChoices": {
"type": "integer",
"minimum": 1,
"maximum": 12
},
"scale": {
"type": "object",
"properties": {
"min": {
"default": 1,
"type": "integer",
"minimum": 0,
"maximum": 1
},
"max": {
"default": 5,
"type": "integer",
"minimum": 1,
"maximum": 11
},
"minLabel": {
"default": "",
"type": "string",
"maxLength": 60
},
"maxLabel": {
"default": "",
"type": "string",
"maxLength": 60
}
},
"required": [
"min",
"max",
"minLabel",
"maxLabel"
],
"additionalProperties": false
},
"number": {
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"unit": {
"default": "",
"type": "string",
"maxLength": 30
}
},
"required": [
"unit"
],
"additionalProperties": false
},
"correct": {
"type": "string"
},
"stimulus": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "text"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"text",
"mustView"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "image"
},
"file": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"alt": {
"default": "",
"type": "string",
"maxLength": 300
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"file",
"alt",
"mustView"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "link"
},
"url": {
"type": "string",
"maxLength": 2000
},
"label": {
"default": "",
"type": "string",
"maxLength": 120
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"url",
"label",
"mustView"
],
"additionalProperties": false
}
]
},
"note": {
"default": "",
"type": "string"
},
"before": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"options": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"text",
"options"
],
"additionalProperties": false
},
"goal": {
"type": "string"
},
"objectiveIds": {
"type": "array",
"items": {
"type": "string"
}
},
"segment": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"quotas": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"option": {
"type": "string",
"minLength": 1
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 500
}
},
"required": [
"option",
"max"
],
"additionalProperties": false
}
},
"method": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 40,
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
},
"group": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"role": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"key": {
"type": "string",
"maxLength": 200
}
},
"required": [
"id",
"group",
"role"
],
"additionalProperties": false
}
},
"required": [
"id",
"kind",
"text",
"origin",
"followups",
"options",
"note"
],
"additionalProperties": false
}
},
"lastId": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"removed": {
"type": "array",
"items": {
"type": "string"
}
},
"brief": {
"type": "object",
"properties": {
"decision": {
"default": "",
"type": "string"
},
"objectives": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"text"
],
"additionalProperties": false
}
},
"successCriteria": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"decision",
"objectives",
"successCriteria"
],
"additionalProperties": false
},
"hypotheses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"statement": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"causal",
"comparative",
"descriptive"
]
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"statement"
],
"additionalProperties": false
}
},
"lastIds": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"participation": {
"type": "object",
"properties": {
"answers": {
"default": "any",
"type": "string",
"enum": [
"any",
"typed",
"spoken",
"camera"
]
},
"identity": {
"default": false,
"type": "boolean"
},
"identityFallback": {
"default": "stop",
"type": "string",
"enum": [
"stop",
"through"
]
},
"recordings": {
"type": "string",
"enum": [
"deleted",
"kept"
]
},
"languages": {
"default": [
"en"
],
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"enum": [
"en",
"es",
"fr",
"de",
"pt",
"it",
"nl",
"ja",
"ko",
"zh",
"hi",
"ar"
]
}
}
},
"required": [
"answers",
"identity",
"identityFallback",
"languages"
],
"additionalProperties": false
},
"interviewing": {
"type": "object",
"properties": {
"style": {
"default": "guided",
"type": "string",
"enum": [
"scripted",
"guided",
"exploratory"
]
},
"context": {
"default": "",
"type": "string",
"maxLength": 2000
},
"targetMinutes": {
"type": "integer",
"minimum": 3,
"maximum": 90
},
"closingQuestion": {
"default": false,
"type": "boolean"
}
},
"required": [
"style",
"context",
"closingQuestion"
],
"additionalProperties": false
},
"methods": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"group": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"id": {
"type": "string",
"maxLength": 40,
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
},
"title": {
"default": "",
"type": "string",
"maxLength": 200
},
"inputs": {
"default": {},
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"group",
"id",
"title",
"inputs"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"hypothesis",
"audience",
"screener",
"questions"
],
"additionalProperties": false
},
"dropped": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Images of that version that could not come back."
},
"study": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"running",
"finished"
]
},
"design": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1
},
"hypothesis": {
"default": "",
"type": "string"
},
"audience": {
"type": "object",
"properties": {
"people": {
"default": 20,
"type": "integer",
"minimum": 1,
"maximum": 500
},
"country": {
"default": "United States",
"type": "string"
},
"description": {
"default": "",
"type": "string"
},
"assumed": {
"default": true,
"type": "boolean"
},
"attributes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1
},
"category": {
"default": "other",
"type": "string",
"enum": [
"demographic",
"behaviour",
"attitude",
"firmographic",
"other"
]
},
"rule": {
"default": "must",
"type": "string",
"enum": [
"must",
"must_not",
"prefer"
]
},
"values": {
"default": [],
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"source": {
"default": "stated",
"type": "string",
"enum": [
"screener",
"panel",
"stated"
]
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"name",
"category",
"rule",
"values",
"source"
],
"additionalProperties": false
}
},
"described": {
"type": "string",
"enum": [
"written",
"generated"
]
}
},
"required": [
"people",
"country",
"description",
"assumed"
],
"additionalProperties": false
},
"screener": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1
},
"options": {
"minItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"minLength": 1
},
"qualifies": {
"type": "boolean"
}
},
"required": [
"label",
"qualifies"
],
"additionalProperties": false
}
},
"segment": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"quotas": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"option": {
"type": "string",
"minLength": 1
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 500
}
},
"required": [
"option",
"max"
],
"additionalProperties": false
}
}
},
"required": [
"text",
"options"
],
"additionalProperties": false
}
},
"questions": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"open",
"single",
"multi",
"scale",
"number",
"rank",
"attention"
]
},
"text": {
"type": "string",
"minLength": 1
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
},
"followups": {
"default": 2,
"type": "integer",
"minimum": 0,
"maximum": 6
},
"options": {
"default": [],
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"maxChoices": {
"type": "integer",
"minimum": 1,
"maximum": 12
},
"scale": {
"type": "object",
"properties": {
"min": {
"default": 1,
"type": "integer",
"minimum": 0,
"maximum": 1
},
"max": {
"default": 5,
"type": "integer",
"minimum": 1,
"maximum": 11
},
"minLabel": {
"default": "",
"type": "string",
"maxLength": 60
},
"maxLabel": {
"default": "",
"type": "string",
"maxLength": 60
}
},
"required": [
"min",
"max",
"minLabel",
"maxLabel"
],
"additionalProperties": false
},
"number": {
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"unit": {
"default": "",
"type": "string",
"maxLength": 30
}
},
"required": [
"unit"
],
"additionalProperties": false
},
"correct": {
"type": "string"
},
"stimulus": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "text"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"text",
"mustView"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "image"
},
"file": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"alt": {
"default": "",
"type": "string",
"maxLength": 300
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"file",
"alt",
"mustView"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "link"
},
"url": {
"type": "string",
"maxLength": 2000
},
"label": {
"default": "",
"type": "string",
"maxLength": 120
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"url",
"label",
"mustView"
],
"additionalProperties": false
}
]
},
"note": {
"default": "",
"type": "string"
},
"before": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"options": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"text",
"options"
],
"additionalProperties": false
},
"goal": {
"type": "string"
},
"objectiveIds": {
"type": "array",
"items": {
"type": "string"
}
},
"segment": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"quotas": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"option": {
"type": "string",
"minLength": 1
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 500
}
},
"required": [
"option",
"max"
],
"additionalProperties": false
}
},
"method": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 40,
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
},
"group": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"role": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"key": {
"type": "string",
"maxLength": 200
}
},
"required": [
"id",
"group",
"role"
],
"additionalProperties": false
}
},
"required": [
"id",
"kind",
"text",
"origin",
"followups",
"options",
"note"
],
"additionalProperties": false
}
},
"lastId": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"removed": {
"type": "array",
"items": {
"type": "string"
}
},
"brief": {
"type": "object",
"properties": {
"decision": {
"default": "",
"type": "string"
},
"objectives": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"text"
],
"additionalProperties": false
}
},
"successCriteria": {
"default": [],
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"text": {
"type": "string",
"minLength": 1
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"decision",
"objectives",
"successCriteria"
],
"additionalProperties": false
},
"hypotheses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"statement": {
"type": "string",
"minLength": 1
},
"kind": {
"type": "string",
"enum": [
"causal",
"comparative",
"descriptive"
]
},
"origin": {
"type": "string",
"enum": [
"you",
"jean"
]
}
},
"required": [
"id",
"statement"
],
"additionalProperties": false
}
},
"lastIds": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"participation": {
"type": "object",
"properties": {
"answers": {
"default": "any",
"type": "string",
"enum": [
"any",
"typed",
"spoken",
"camera"
]
},
"identity": {
"default": false,
"type": "boolean"
},
"identityFallback": {
"default": "stop",
"type": "string",
"enum": [
"stop",
"through"
]
},
"recordings": {
"type": "string",
"enum": [
"deleted",
"kept"
]
},
"languages": {
"default": [
"en"
],
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"enum": [
"en",
"es",
"fr",
"de",
"pt",
"it",
"nl",
"ja",
"ko",
"zh",
"hi",
"ar"
]
}
}
},
"required": [
"answers",
"identity",
"identityFallback",
"languages"
],
"additionalProperties": false
},
"interviewing": {
"type": "object",
"properties": {
"style": {
"default": "guided",
"type": "string",
"enum": [
"scripted",
"guided",
"exploratory"
]
},
"context": {
"default": "",
"type": "string",
"maxLength": 2000
},
"targetMinutes": {
"type": "integer",
"minimum": 3,
"maximum": 90
},
"closingQuestion": {
"default": false,
"type": "boolean"
}
},
"required": [
"style",
"context",
"closingQuestion"
],
"additionalProperties": false
},
"methods": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"group": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"id": {
"type": "string",
"maxLength": 40,
"pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
},
"title": {
"default": "",
"type": "string",
"maxLength": 200
},
"inputs": {
"default": {},
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"group",
"id",
"title",
"inputs"
],
"additionalProperties": false
}
}
},
"required": [
"title",
"hypothesis",
"audience",
"screener",
"questions"
],
"additionalProperties": false
},
"estimatedMinutesPerInterview": {
"type": "number"
},
"answers": {
"type": "string",
"enum": [
"any",
"typed",
"spoken",
"camera"
],
"description": "How people answer the open questions: any (typed or spoken), typed (typed only), spoken, or camera (spoken with the camera on)."
},
"identity": {
"type": "object",
"properties": {
"on": {
"type": "boolean",
"description": "Whether each person verifies a photo ID and a selfie before the first question."
},
"ifCheckCannotRun": {
"type": "string",
"enum": [
"stop",
"through"
],
"description": "When the check cannot run: stop, the person does not start; through, they go on and the interview shows Not checked."
},
"available": {
"type": "boolean",
"description": "Whether this deployment can run the check. When false, turning it on is refused and a study with it on cannot launch."
},
"costPerPerson": {
"anyOf": [
{
"type": "object",
"properties": {
"minor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "In minor units of currency."
},
"currency": {
"type": "string"
}
},
"required": [
"minor",
"currency"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "What the check costs for each person who completes it. It is not part of the recruiting price and is not taken from credit. Null when this deployment cannot run it, or runs a stand-in that costs nothing."
},
"said": {
"type": "string",
"description": "The same in words, for example \"on; about $1.50 for each person who completes it\" or \"not available on this deployment\"."
}
},
"required": [
"on",
"ifCheckCannotRun",
"available",
"costPerPerson",
"said"
],
"additionalProperties": false,
"description": "The identity check. Set it with change_design (`participation` with `identity`), or in words with edit_study or draft_study (\"identity check on\", \"verify identity\", \"ID check\", \"identity check off\")."
},
"recordings": {
"anyOf": [
{
"type": "string",
"enum": [
"kept",
"deleted"
]
},
{
"type": "null"
}
],
"description": "Whether recordings of spoken or filmed answers are kept: kept (the default), the study keeps every recording a participant makes, on a study where answers may be typed or spoken whenever they talk or turn on the camera, for the research team to watch, and participants agree to that by taking part; deleted, the researcher's choice, each recording is used to make the text and deleted (once the interview has been checked where spoken answers are required; once turned into text elsewhere). Participants are not asked. Null when answers are typed only, where nothing is recorded. Set it with change_design (`participation` with `recordings`), or in words with edit_study or draft_study (\"keep the recordings\", \"don't keep the recordings\")."
},
"targetMinutes": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The length the interview is paced to, in minutes. Null when none is set."
},
"languages": {
"type": "array",
"items": {
"type": "string"
},
"description": "The languages a participant may choose to be interviewed in, as codes, in order (the first is offered when their browser asks for none): en English, es Spanish, fr French, de German, pt Portuguese, it Italian, nl Dutch, ja Japanese, ko Korean, zh Chinese (Simplified), hi Hindi, ar Arabic. [\"en\"] for English alone. Results are always in English, with each quote in the participant's own words."
},
"stimuli": {
"type": "array",
"items": {
"type": "object",
"properties": {
"questionId": {
"type": "string"
},
"question": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "The question's number, from 1."
},
"stimulus": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "text"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"text",
"mustView"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "image"
},
"file": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"alt": {
"default": "",
"type": "string",
"maxLength": 300
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"file",
"alt",
"mustView"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "link"
},
"url": {
"type": "string",
"maxLength": 2000
},
"label": {
"default": "",
"type": "string",
"maxLength": 120
},
"mustView": {
"default": false,
"type": "boolean"
}
},
"required": [
"kind",
"url",
"label",
"mustView"
],
"additionalProperties": false
}
]
}
},
"required": [
"questionId",
"question",
"stimulus"
],
"additionalProperties": false
},
"description": "What is shown before each question that shows something, in full."
},
"counts": {
"type": "object",
"properties": {
"peopleFinished": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People who finished the interview."
},
"peoplePassedQualityCheck": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Of the people who finished, how many passed the quality check. Results are written from these."
},
"peopleHeldForReview": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Of the people who finished, how many are held and wait for the researcher to review: not counted, and not yet left out by a person. One a person left out is in neither this nor peoplePassedQualityCheck."
},
"peopleInProgress": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People who started and have not finished."
},
"testScriptInterviews": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Interviews taken by a test script (SIM), not by people. Not included in any of the other numbers. Synthetic respondents' interviews are not test scripts and are counted apart, in syntheticRespondentInterviews."
},
"syntheticRespondentInterviews": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Interviews taken by synthetic respondents (made-up people drawn from census figures or personas, played by a language model), not by people and not by test scripts. Not included in any of the other numbers (added 2026-11-15)."
}
},
"required": [
"peopleFinished",
"peoplePassedQualityCheck",
"peopleHeldForReview",
"peopleInProgress",
"testScriptInterviews",
"syntheticRespondentInterviews"
],
"additionalProperties": false
},
"interviewLink": {
"description": "The link participants open. Null unless the study is running.",
"type": [
"string",
"null"
]
},
"resultsWritten": {
"type": "boolean"
},
"methodBlocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "The application, as design.methods[].group and each of its questions' method.group name it: m1, m2, ..."
},
"method": {
"type": "string",
"description": "The method's id, as list_methods names it."
},
"name": {
"type": "string",
"description": "The method's name."
},
"title": {
"type": "string",
"description": "What this application is called in the design. Written by people in the workspace, or by Jean for them."
},
"does": {
"type": "string",
"description": "What it asks of each participant, in one plain line, from the method's inputs (for MaxDiff: how many sets, of how many items, picking which)."
},
"list": {
"anyOf": [
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"label",
"items"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "What it works over, when it has a list: the items, the prices, the brands, the features. Written by people in the workspace, or by Jean for them."
},
"questionNumbers": {
"type": "array",
"items": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"description": "The numbers (from 1, in the order asked) of the questions it wrote. The block stands where the first of them is."
},
"screens": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "How many screens it makes for a participant: one per question."
}
},
"required": [
"group",
"method",
"name",
"title",
"does",
"list",
"questionNumbers",
"screens"
],
"additionalProperties": false
},
"description": "Each research method the design applies, once, with the questions it wrote. Empty when the design applies none."
},
"consoleUrl": {
"type": "string"
}
},
"required": [
"id",
"title",
"status",
"design",
"estimatedMinutesPerInterview",
"answers",
"identity",
"recordings",
"targetMinutes",
"languages",
"stimuli",
"counts",
"interviewLink",
"resultsWritten",
"methodBlocks",
"consoleUrl"
],
"additionalProperties": false,
"description": "The study as get_study returns it, after this call (added 2026-11-15)."
}
},
"required": [
"version",
"design",
"dropped",
"study"
],
"additionalProperties": false
}

Errors​

StatusMeaning
400The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing.
401No key or token, or one that is wrong, expired or revoked.
403The key or connection lacks the scope this operation needs. scope names it.
404No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way.
409The study is not in a state that allows this (the detail says what to do instead), or the Idempotency-Key was used with a different request.
429Too many requests from this key or connection, or the workspace has reached its hourly or daily limit for model calls (title "Workspace model limit reached", window says which). Retry-After says when to try again.
503The language model is not available. Try again later.

Every error is application/problem+json, the same shape on every endpoint.

API overview · OpenAPI document