Skip to main content

Run synthetic respondents through a study

POST/studies/{id}/synthetic-runs

Has synthetic respondents take a running study's whole interview, as people would: made-up people drawn from census figures to fit the study's audience (the default) or personas (each an existing persona or a group described in words, with how many of it), each played by a language model. They are SYNTHETIC RESPONDENTS, NOT PEOPLE: labeled SYN, never counted with people in any count, and the results written from them are a rehearsal. Use it to see what a study's results will look like before paying people. At most 50 in one run (default 12); a workspace may start a limited number a day. The study must be running: launch a draft with launch_study first. One run at a time per study. It runs in the background, a few at a time, about 20 seconds each: it returns at once with the run's id and the counts so far; follow it with get_synthetic_run, and when it is done read get_results. Sent again with the same requestKey, the same run is returned and nothing starts twice. With billing on, each synthetic respondent costs a fixed price from the workspace's credit ($0.50 a respondent), taken when the run starts; respondents who do not take part (the run is stopped, or one fails) are given back. Tell the researcher the price (respondents times the price) before calling, unless they already know it. The result says what was taken and what credit is left. Short of credit, nothing starts and the error says INSUFFICIENT CREDIT (code insufficient_credit) with the shortfall and the address where an admin adds credit: give the researcher that address. (The MCP tool run_synthetic_respondents.) Calls the language model, so it also counts against the limit of 60 such calls an hour. Short of credit it is refused with 409, title "Not enough credit" and code: "insufficient_credit", with the amounts and addCreditUrl (CreditProblem).

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/synthetic-runs" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"respondents": 1
}'

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

Path​

NameTypeRequiredNotes
idstring (UUID)yes

Body​

FieldTypeRequiredNotes
respondentsintegernoHow many in all. Default 12. With no personas, all of them fit the study's own audience. 1 to 50.
personas[]object[]noTake respondents from these groups instead of the study's audience. A persona's census traits replace the study's for the same trait. At most 6 items.
personas[].personaIdstring (UUID)noAn existing persona, from list_personas.
personas[].describestringnoOr a group in plain words, such as "parents under 40 who rent" or "weekly churchgoers in the South". Read once by a model against the census's traits and the four assigned ones (party, political views, religion, attendance); what neither records is given to each respondent's background. At most 400 characters.
personas[].criteria[]object[]noOr the group as criteria, checked in code with no model call: each a segment and the values that count, all of which must hold. Segments: the census's (Age, Sex, State, US region, Race and ethnicity, Education, Employment, Household income, Marital status, Children under 18 at home) and four assigned to each US member from published distributions (Pew Research Center), never said by them: Party identification (Republican, Lean Republican, No lean, Lean Democrat, Democrat), Political views (Conservative, Moderate, Liberal, Does not say), Religion (Evangelical Protestant, Mainline Protestant, Historically Black Protestant, Catholic, Latter-day Saint (Mormon), Other Christian, Jewish, Muslim, Another religion, Atheist, Agnostic, Nothing in particular) and Religious service attendance (At least once a week, Once or twice a month, A few times a year, Seldom or never). A segment or value not on these lists is refused, named. At most 12 items.
personas[].labelstringnoWith criteria: the group's name as shown. At most 80 characters.
personas[].respondentsintegernoHow many of this group. Default: the total split evenly. 1 to 50.
requestKeystringnoYour own key for this one run: sent again, the same run is returned. 8 to 100 characters.

Response · 200​

FieldTypeRequiredNotes
runIdstringyesPass it to get_synthetic_run to follow the run.
studyIdstringyes
status"none", "running", "done", "stopped", "cancelled"yesnone (no run on this study yet); running; done (every respondent took it, and the results are written from them); stopped (a limit or a model error: see reason); canceled (stopped by a person).
reasonstring or nullyes
respondentsintegeryesSynthetic respondents in the run, never people.
finishedintegeryesSynthetic respondents whose interview ended (finished, screened out or stopped).
passedintegeryes
heldintegeryes
screenedOutintegeryes
inProgressintegeryes
groups[]object[]yes
groups[].labelstringyes
groups[].respondentsintegeryes
resultsWrittenbooleanyesTrue once the run is done and the study's results were written after it. Read them with get_results.
resultsUrlstring or nullyes
consoleUrlstringyes
creditMinorinteger or nullnoWhat the run has taken from the workspace's credit so far, net of what was given back, in cents. Null when billing is off: nothing is charged.
studyTitlestringnoThe study's title, as get_study gives it (added 2026-11-15). Written by people in the workspace, or by Jean for them.
studyStatus"draft", "running", "finished"noThe study's status (added 2026-11-15).
The full response schema
{
"type": "object",
"properties": {
"runId": {
"type": "string",
"description": "Pass it to get_synthetic_run to follow the run."
},
"studyId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"none",
"running",
"done",
"stopped",
"cancelled"
],
"description": "none (no run on this study yet); running; done (every respondent took it, and the results are written from them); stopped (a limit or a model error: see reason); cancelled (stopped by a person)."
},
"reason": {
"type": [
"string",
"null"
]
},
"respondents": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Synthetic respondents in the run, never people."
},
"finished": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Synthetic respondents whose interview ended (finished, screened out or stopped)."
},
"passed": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"held": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"screenedOut": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"inProgress": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"respondents": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"label",
"respondents"
],
"additionalProperties": false
}
},
"resultsWritten": {
"type": "boolean",
"description": "True once the run is done and the study's results were written after it. Read them with get_results."
},
"resultsUrl": {
"type": [
"string",
"null"
]
},
"consoleUrl": {
"type": "string"
},
"creditMinor": {
"description": "What the run has taken from the workspace's credit so far, net of what was given back, in cents. Null when billing is off: nothing is charged.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"studyTitle": {
"description": "The study's title, as get_study gives it (added 2026-11-15). Written by people in the workspace, or by Jean for them.",
"type": "string"
},
"studyStatus": {
"description": "The study's status (added 2026-11-15).",
"type": "string",
"enum": [
"draft",
"running",
"finished"
]
}
},
"required": [
"runId",
"studyId",
"status",
"reason",
"respondents",
"finished",
"passed",
"held",
"screenedOut",
"inProgress",
"groups",
"resultsWritten",
"resultsUrl",
"consoleUrl"
],
"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