Skip to main content

Estimate a study

GET/studies/{id}/estimate

Cost, minutes per interview, time to the first results (5 passed) and time to finish, for a shared link or for people Jean recruits (source=recruited) at a reward. Every figure carries its basis: a live quote when one can be asked, measurements from this workspace's earlier studies when there are any, otherwise a labeled planning assumption. Spends nothing and publishes nothing.

Scope studies: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 "https://app.jeantechnologies.com/api/v1/studies/STUDY_ID/estimate" \
-H "Authorization: Bearer $JEAN_API_KEY"

Path​

NameTypeRequiredNotes
idstring (UUID)yes

Query​

NameTypeRequiredNotes
source"link", "recruited"nolink (a shared link) or recruited (people Jean recruits). Default link.
rewardintegernoRecruited people only: the reward per person in minor units. Default: the recommended hourly rate for the design's length.
placesintegernoDefault: the people the design asks for.

Response · 200​

FieldTypeRequiredNotes
studyIdstringyesA UUID.
titlestringyes
status"draft", "running", "finished"yes
estimateobjectyes
estimate.sourceobjectyesWhere the people come from: a shared link, or people Jean recruits at a reward.
estimate.placesintegeryesPeople the estimate is for.
estimate.minutesobjectyesMinutes an interview takes.
estimate.panelCostobjectyesWhat recruiting the people costs, in minor units of currency: when Jean recruits them (managed), the one recruitment price; on the workspace's own panel account, what that account pays. Zero for a shared link.
estimate.firstResultsAtintegernoHow many people have to pass before the results are first written without being asked: 5, or everyone for a smaller study.
estimate.firstResultsHoursobjectyesHours until the first results are written (firstResultsAt people have passed). Null when it cannot be estimated.
estimate.finishHoursobjectyesHours until the study has its people. Null when it cannot be estimated.
estimate.chargeobject or nullnoWhat recruiting would take from the workspace's prepaid credit, as one amount in minor units. When Jean recruits the people (managed is true) it is the recruitment price. Null when billing is off or the source is a shared link.
estimate.managedbooleannoTrue when Jean recruits the people for the workspace: panelCost is then the one recruitment price, the same amount as charge.
urlstringyes
options[]object[]yesThe money both ways, labeled: if you send the link yourself, and if Jean recruits (where this workspace can recruit paid participants, or when source=recruited). Each with every line that can be priced, the identity check as its own line, a total and what is not priced.
options[].label"if you send the link yourself", "if Jean recruits"yes
options[].placesintegeryes
options[].rewardMinorinteger or nullyesPer person, in cents, when Jean recruits.
options[].lines[]object[]yes
options[].totalMinorintegeryesEvery line Jean can price, added up, in US cents.
options[].fromCreditMinorintegeryesOf the total, what is taken from the workspace's credit.
options[].notPriced[]string[]yesWhat costs something and is not priced here.
recruitingNotestring or nullyes
The full response schema
{
"type": "object",
"properties": {
"studyId": {
"type": "string",
"description": "A UUID."
},
"title": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"running",
"finished"
]
},
"estimate": {
"type": "object",
"properties": {
"source": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "link"
}
},
"required": [
"kind"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "recruited"
},
"rewardMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "What each person is paid, in minor units."
}
},
"required": [
"kind",
"rewardMinor"
],
"additionalProperties": false
}
],
"description": "Where the people come from: a shared link, or people Jean recruits at a reward."
},
"places": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "People the estimate is for."
},
"minutes": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
]
},
"kind": {
"type": "string",
"enum": [
"provider",
"measured",
"computed",
"planning",
"unknown"
],
"description": "What the figure rests on: provider (the panel's own figure), measured (this workspace's earlier studies), computed (worked out from the design), planning (an assumption, said to be one) or unknown (no honest figure; basis says why)."
},
"basis": {
"type": "string",
"description": "What the figure rests on, in one short line. Show it with the figure."
},
"detail": {
"type": "string",
"description": "The whole working behind the figure, in words."
}
},
"required": [
"value",
"kind",
"basis",
"detail"
],
"additionalProperties": false,
"description": "Minutes an interview takes."
},
"panelCost": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
]
},
"kind": {
"type": "string",
"enum": [
"provider",
"measured",
"computed",
"planning",
"unknown"
],
"description": "What the figure rests on: provider (the panel's own figure), measured (this workspace's earlier studies), computed (worked out from the design), planning (an assumption, said to be one) or unknown (no honest figure; basis says why)."
},
"basis": {
"type": "string",
"description": "What the figure rests on, in one short line. Show it with the figure."
},
"detail": {
"type": "string",
"description": "The whole working behind the figure, in words."
},
"currency": {
"type": "string"
}
},
"required": [
"value",
"kind",
"basis",
"detail",
"currency"
],
"additionalProperties": false,
"description": "What recruiting the people costs, in minor units of currency: when Jean recruits them (managed), the one recruitment price; on the workspace's own panel account, what that account pays. Zero for a shared link."
},
"firstResultsAt": {
"description": "How many people have to pass before the results are first written without being asked: 5, or everyone for a smaller study.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"firstResultsHours": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
]
},
"kind": {
"type": "string",
"enum": [
"provider",
"measured",
"computed",
"planning",
"unknown"
],
"description": "What the figure rests on: provider (the panel's own figure), measured (this workspace's earlier studies), computed (worked out from the design), planning (an assumption, said to be one) or unknown (no honest figure; basis says why)."
},
"basis": {
"type": "string",
"description": "What the figure rests on, in one short line. Show it with the figure."
},
"detail": {
"type": "string",
"description": "The whole working behind the figure, in words."
}
},
"required": [
"value",
"kind",
"basis",
"detail"
],
"additionalProperties": false,
"description": "Hours until the first results are written (firstResultsAt people have passed). Null when it cannot be estimated."
},
"finishHours": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
]
},
"kind": {
"type": "string",
"enum": [
"provider",
"measured",
"computed",
"planning",
"unknown"
],
"description": "What the figure rests on: provider (the panel's own figure), measured (this workspace's earlier studies), computed (worked out from the design), planning (an assumption, said to be one) or unknown (no honest figure; basis says why)."
},
"basis": {
"type": "string",
"description": "What the figure rests on, in one short line. Show it with the figure."
},
"detail": {
"type": "string",
"description": "The whole working behind the figure, in words."
}
},
"required": [
"value",
"kind",
"basis",
"detail"
],
"additionalProperties": false,
"description": "Hours until the study has its people. Null when it cannot be estimated."
},
"charge": {
"description": "What recruiting would take from the workspace's prepaid credit, as one amount in minor units. When Jean recruits the people (managed is true) it is the recruitment price. Null when billing is off or the source is a shared link.",
"anyOf": [
{
"type": "object",
"properties": {
"value": {
"type": [
"number",
"null"
]
},
"kind": {
"type": "string",
"enum": [
"provider",
"measured",
"computed",
"planning",
"unknown"
],
"description": "What the figure rests on: provider (the panel's own figure), measured (this workspace's earlier studies), computed (worked out from the design), planning (an assumption, said to be one) or unknown (no honest figure; basis says why)."
},
"basis": {
"type": "string",
"description": "What the figure rests on, in one short line. Show it with the figure."
},
"detail": {
"type": "string",
"description": "The whole working behind the figure, in words."
}
},
"required": [
"value",
"kind",
"basis",
"detail"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"managed": {
"description": "True when Jean recruits the people for the workspace: panelCost is then the one recruitment price, the same amount as charge.",
"type": "boolean"
}
},
"required": [
"source",
"places",
"minutes",
"panelCost",
"firstResultsHours",
"finishHours"
],
"additionalProperties": false
},
"url": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"enum": [
"if you send the link yourself",
"if Jean recruits"
]
},
"places": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"rewardMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Per person, in cents, when Jean recruits."
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"item": {
"type": "string"
},
"count": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "How many, for a line priced per person."
},
"eachMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The price of one, in cents."
},
"amountMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The line's amount in US cents. Null when it cannot be priced."
},
"fromCredit": {
"type": "boolean",
"description": "Whether this amount is taken from the workspace's prepaid credit."
},
"paidBy": {
"type": "string",
"description": "Who pays it, in words."
},
"basis": {
"type": "string",
"description": "What the figure rests on."
}
},
"required": [
"item",
"count",
"eachMinor",
"amountMinor",
"fromCredit",
"paidBy",
"basis"
],
"additionalProperties": false
}
},
"totalMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Every line Jean can price, added up, in US cents."
},
"fromCreditMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Of the total, what is taken from the workspace's credit."
},
"notPriced": {
"type": "array",
"items": {
"type": "string"
},
"description": "What costs something and is not priced here."
}
},
"required": [
"label",
"places",
"rewardMinor",
"lines",
"totalMinor",
"fromCreditMinor",
"notPriced"
],
"additionalProperties": false
},
"description": "The money both ways, labelled: if you send the link yourself, and if Jean recruits (where this workspace can recruit paid participants, or when source=recruited). Each with every line that can be priced, the identity check as its own line, a total and what is not priced."
},
"recruitingNote": {
"type": [
"string",
"null"
]
}
},
"required": [
"studyId",
"title",
"status",
"estimate",
"url",
"options",
"recruitingNote"
],
"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