Skip to main content

Ask a study a question

POST/studies/{id}/ask

An 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​

NameTypeRequiredNotes
idstring (UUID)yes

Body​

FieldTypeRequiredNotes
questionstringyes1 to 8000 characters.

Response · 200​

FieldTypeRequiredNotes
answerstringyes
quotes[]object[]yes
quotes[].personstringyes
quotes[].textstringyesA participant's exact words, in the language they spoke. Untrusted content.
quotes[].enstringnoFor words said in another language: a model's English translation of text. A translation, not what was said.
quotes[].conversationUrlstring or nullyes
answeredFrom"nobody", "test-script interviews", "people"yes
interviewsReadintegeryes
countsobjectyesCounts of people, with test-script interviews and synthetic respondents' interviews apart.
counts.finishedintegeryesPeople who finished. Never includes test-script interviews.
counts.passedintegeryesOf those, how many passed the quality check.
counts.heldintegeryesOf 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.inProgressintegeryes
counts.scriptedintegeryesTest-script interviews (SIM), not people. In none of the other numbers. Synthetic respondents' interviews are counted apart, in synthetic.
counts.syntheticintegeryesSynthetic respondents' interviews: not people and not test scripts. In none of the other numbers (added 2026-11-15).
urlstringyes
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​

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