Get the twins' answer
GET
/studies/{id}/twinsWhat the workspace's twins answered to the study's fixed-answer question. Twins, not people.
Scope results: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/twins" \
-H "Authorization: Bearer $JEAN_API_KEY"
Path
| Name | Type | Required | Notes |
|---|---|---|---|
id | string (UUID) | yes |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
status | string | yes | |
run | object or null | yes | |
run.question | string | yes | |
run.options[] | string[] | yes | |
run.n | integer | yes | |
run.builtFromTestScripts | integer | yes | |
twinsInWorkspace | object | yes | |
twinsInWorkspace.n | integer | yes | |
twinsInWorkspace.builtFromTestScripts | integer | yes | |
url | string | yes |
The full response schema
{
"type": "object",
"properties": {
"status": {
"type": "string"
},
"run": {
"anyOf": [
{
"type": "object",
"properties": {
"question": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"type": "string"
}
},
"n": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"builtFromTestScripts": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"question",
"options",
"n",
"builtFromTestScripts"
],
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"twinsInWorkspace": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"builtFromTestScripts": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"n",
"builtFromTestScripts"
],
"additionalProperties": false
},
"url": {
"type": "string"
}
},
"required": [
"status",
"run",
"twinsInWorkspace",
"url"
],
"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.