Skip to main content

Make a report version

POST/studies/{id}/reports

Makes the next frozen version of a study's report from its results as they are now (when nothing has changed since the last version, the same results and no new title, that version is returned and no copy is made): the answer in brief, an answer per research objective, a verdict per hypothesis, who took part, the themes with their exact quotes, every fixed-answer question as a chart with its base, segment readings, twins apart, and a method and limits page. Earlier versions are never changed. Calls the model for the objective answers and hypothesis verdicts, each checked against the counts (a text that fails twice is written in code). Refused when the study has no results: use write_results first. Pass requestKey so a retry returns the same version instead of making another. Returns the version and a download link for each file. (The MCP tool build_report.) Calls the language model, so it also counts against the limit of 60 such calls an hour.

Scope results: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/reports" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Churn interviews, November"
}'

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

Path​

NameTypeRequiredNotes
idstring (UUID)yes

Body​

FieldTypeRequiredNotes
titlestringnoThe report's title. Default: the study's title. 1 to 200 characters.
requestKeystringnoThe same key twice makes one version. 1 to 200 characters.

Response · 200​

FieldTypeRequiredNotes
reportobjectyes
report.idstringyesAt most 64 characters.
report.versionintegeryes
report.titlestringyes
report.createdAtstringyes
report.createdBystring or nullyesThe member's email, or null when an API key or the job queue made it.
report.madeBy"member", "api", "job"yes
report.basis"people", "rehearsal"yesrehearsal: written from test-script interviews, not people.
report.nintegeryes
report.fingerprintstringyesThe hash of the results this version was built from. Two versions with the same fingerprint say the same thing.
report.redactedbooleanyesTrue when a participant's deletion took quotes out of this version.
files[]object[]yes
files[].format"summary.pdf", "report.pdf", "report.docx", "slides.pptx", "quotes.pdf", "report.json"yes
files[].labelstringyes
files[].urlstringyes
linksExpireAtstringyes
The full response schema
{
"type": "object",
"properties": {
"report": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 64
},
"version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"title": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"createdBy": {
"description": "The member's email, or null when an API key or the job queue made it.",
"type": [
"string",
"null"
]
},
"madeBy": {
"type": "string",
"enum": [
"member",
"api",
"job"
]
},
"basis": {
"type": "string",
"enum": [
"people",
"rehearsal"
],
"description": "rehearsal: written from test-script interviews, not people."
},
"n": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"fingerprint": {
"type": "string",
"description": "The hash of the results this version was built from. Two versions with the same fingerprint say the same thing."
},
"redacted": {
"type": "boolean",
"description": "True when a participant's deletion took quotes out of this version."
}
},
"required": [
"id",
"version",
"title",
"createdAt",
"createdBy",
"madeBy",
"basis",
"n",
"fingerprint",
"redacted"
],
"additionalProperties": false
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"summary.pdf",
"report.pdf",
"report.docx",
"slides.pptx",
"quotes.pdf",
"report.json"
]
},
"label": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"format",
"label",
"url"
],
"additionalProperties": false
}
},
"linksExpireAt": {
"type": "string"
}
},
"required": [
"report",
"files",
"linksExpireAt"
],
"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