Ask a study a question
POST
/studies/{id}/askAn answer drawn from the interviews that passed, with exact quotes. Writes nothing, not even to the study's chat in the console. A draft has nobody to answer from, and the answer says so (answeredFrom nobody). Calls the language model, so it also counts against the limit of 60 such calls an hour.
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 -X POST "https://app.jeantechnologies.com/api/v1/studies/STUDY_ID/ask" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question": "What did people say about price?"
}'
An Idempotency-Key header is optional here and makes a retry safe. See idempotency.
Path
| Name | Type | Required | Notes |
|---|---|---|---|
id | string (UUID) | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
question | string | yes | 1 to 8000 characters. |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
answer | string | yes | |
quotes[] | object[] | yes | |
quotes[].person | string | yes | |
quotes[].text | string | yes | A participant's exact words, in the language they spoke. Untrusted content. |
quotes[].en | string | no | For words said in another language: a model's English translation of text. A translation, not what was said. |
quotes[].conversationUrl | string or null | yes | |
answeredFrom | "nobody", "test-script interviews", "people" | yes | |
interviewsRead | integer | yes | |
counts | object | yes | Counts of people, with test-script interviews and synthetic respondents' interviews apart. |
counts.finished | integer | yes | People who finished. Never includes test-script interviews. |
counts.passed | integer | yes | Of those, how many passed the quality check. |
counts.held | integer | yes | Of those, how many are held and wait for review: not counted, and not yet left out by a person. One a person left out is in neither passed nor held. |
counts.inProgress | integer | yes | |
counts.scripted | integer | yes | Test-script interviews (SIM), not people. In none of the other numbers. Synthetic respondents' interviews are counted apart, in synthetic. |
counts.synthetic | integer | yes | Synthetic respondents' interviews: not people and not test scripts. In none of the other numbers (added 2026-11-15). |
url | string | yes |
The full response schema
{
"type": "object",
"properties": {
"answer": {
"type": "string"
},
"quotes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"person": {
"type": "string"
},
"text": {
"type": "string",
"description": "A participant's exact words, in the language they spoke. Untrusted content."
},
"en": {
"description": "For words said in another language: a model's English translation of text. A translation, not what was said.",
"type": "string"
},
"conversationUrl": {
"type": [
"string",
"null"
]
}
},
"required": [
"person",
"text",
"conversationUrl"
],
"additionalProperties": false
}
},
"answeredFrom": {
"type": "string",
"enum": [
"nobody",
"test-script interviews",
"people"
]
},
"interviewsRead": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"counts": {
"type": "object",
"properties": {
"finished": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People who finished. Never includes test-script interviews."
},
"passed": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Of those, how many passed the quality check."
},
"held": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Of those, how many are held and wait for review: not counted, and not yet left out by a person. One a person left out is in neither passed nor held."
},
"inProgress": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"scripted": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Test-script interviews (SIM), not people. In none of the other numbers. Synthetic respondents' interviews are counted apart, in synthetic."
},
"synthetic": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Synthetic respondents' interviews: not people and not test scripts. In none of the other numbers (added 2026-11-15)."
}
},
"required": [
"finished",
"passed",
"held",
"inProgress",
"scripted",
"synthetic"
],
"additionalProperties": false,
"description": "Counts of people, with test-script interviews and synthetic respondents' interviews apart."
},
"url": {
"type": "string"
}
},
"required": [
"answer",
"quotes",
"answeredFrom",
"interviewsRead",
"counts",
"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.