Read one version of a design
GET
/studies/{id}/versions/{versionId}One kept version of a study's design in full, with what differs between it and the design as it is now (computed in code). Use it before restore_design_version to show the researcher what would come back. (The MCP tool get_design_version.)
Scope studies:read · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.
curl --fail-with-body "https://app.jeantechnologies.com/api/v1/studies/STUDY_ID/versions/VERSION_ID" \
-H "Authorization: Bearer $JEAN_API_KEY"
Path
| Name | Type | Required | Notes |
|---|---|---|---|
id | string (UUID) | yes | |
versionId | string (UUID) | yes |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
version | object | yes | |
version.id | string | yes | |
version.designVersion | integer | yes | |
version.kind | string | yes | What made it: draft, hand (an edit), agent (the chat), proposal, restore, launch or earlier. |
version.summary | string | yes | |
version.by | string | yes | The email of the member who made it, or empty. |
version.launched | boolean | yes | |
version.at | string | yes | |
design | object | yes | |
design.title | string | yes | At least 1 characters. |
design.hypothesis | string | yes | Default "". |
design.audience | object | yes | |
design.screener[] | object[] | yes | |
design.questions[] | object[] | yes | |
design.lastId | integer | no | |
design.removed[] | string[] | no | |
design.brief | object | no | |
design.hypotheses[] | object[] | no | |
design.lastIds | object | no | |
design.participation | object | no | |
design.interviewing | object | no | |
design.methods[] | object[] | no | At most 20 items. |
againstCurrent[] | object[] | yes | What would change if this version were put back, computed in code. |
againstCurrent[].unit | string | yes | |
againstCurrent[].part | "title", "brief", "hypotheses", "audience", "screener", "questions", "interviewing" | yes | |
againstCurrent[].what | "added", "removed", "reworded", "kind", "options", "followups", "moved", "changed", "segment" | yes | |
againstCurrent[].label | string | yes | |
againstCurrent[].ref | string | no | |
againstCurrent[].before | string | no | |
againstCurrent[].after | string | no | |
againstCurrent[].optionsBefore[] | string[] | no | |
againstCurrent[].optionsAfter[] | string[] | no | |
againstCurrent[].kindName | string | no |
The full response schema
{
"type": "object",
"properties": {
"version": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"designVersion": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"kind": {
"type": "string",
"description": "What made it: draft, hand (an edit), agent (the chat), proposal, restore, launch or earlier."
},
"summary": {
"type": "string"
},
"by": {
"type": "string",
"description": "The email of the member who made it, or empty."
},
"launched": {
"type": "boolean"
},
"at": {
"type": "string"
}
},
"required": [
"id",
"designVersion",
"kind",
"summary",
"by",
"launched",
"at"
],
"additionalProperties": false
},
"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
},
"againstCurrent": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unit": {
"type": "string"
},
"part": {
"type": "string",
"enum": [
"title",
"brief",
"hypotheses",
"audience",
"screener",
"questions",
"interviewing"
]
},
"what": {
"type": "string",
"enum": [
"added",
"removed",
"reworded",
"kind",
"options",
"followups",
"moved",
"changed",
"segment"
]
},
"label": {
"type": "string"
},
"ref": {
"type": "string"
},
"before": {
"type": "string"
},
"after": {
"type": "string"
},
"optionsBefore": {
"type": "array",
"items": {
"type": "string"
}
},
"optionsAfter": {
"type": "array",
"items": {
"type": "string"
}
},
"kindName": {
"type": "string"
}
},
"required": [
"unit",
"part",
"what",
"label"
],
"additionalProperties": false
},
"description": "What would change if this version were put back, computed in code."
}
},
"required": [
"version",
"design",
"againstCurrent"
],
"additionalProperties": false
}
Errors
| Status | Meaning |
|---|---|
400 | The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing. |
401 | No key or token, or one that is wrong, expired or revoked. |
403 | The key or connection lacks the scope this operation needs. scope names it. |
404 | No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way. |
409 | The 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. |
429 | Too 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. |
503 | The language model is not available. Try again later. |
Every error is application/problem+json, the same shape on every endpoint.