Run synthetic respondents through a study
/studies/{id}/synthetic-runsHas 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
| Name | Type | Required | Notes |
|---|---|---|---|
id | string (UUID) | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
respondents | integer | no | How many in all. Default 12. With no personas, all of them fit the study's own audience. 1 to 50. |
personas[] | object[] | no | Take 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[].personaId | string (UUID) | no | An existing persona, from list_personas. |
personas[].describe | string | no | Or 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[] | no | Or 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[].label | string | no | With criteria: the group's name as shown. At most 80 characters. |
personas[].respondents | integer | no | How many of this group. Default: the total split evenly. 1 to 50. |
requestKey | string | no | Your own key for this one run: sent again, the same run is returned. 8 to 100 characters. |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
runId | string | yes | Pass it to get_synthetic_run to follow the run. |
studyId | string | yes | |
status | "none", "running", "done", "stopped", "cancelled" | yes | 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); canceled (stopped by a person). |
reason | string or null | yes | |
respondents | integer | yes | Synthetic respondents in the run, never people. |
finished | integer | yes | Synthetic respondents whose interview ended (finished, screened out or stopped). |
passed | integer | yes | |
held | integer | yes | |
screenedOut | integer | yes | |
inProgress | integer | yes | |
groups[] | object[] | yes | |
groups[].label | string | yes | |
groups[].respondents | integer | yes | |
resultsWritten | boolean | yes | True once the run is done and the study's results were written after it. Read them with get_results. |
resultsUrl | string or null | yes | |
consoleUrl | string | yes | |
creditMinor | integer or null | no | 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. |
studyTitle | string | no | The 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" | no | The 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
| 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.