Skip to main content

Recruit paid participants (two calls)

POST/studies/{id}/recruiting

Recruits paid participants for a running study, as the study page's recruiting form does. Always two calls. The first call, without confirm, recruits nobody and spends nothing: it prepares the listing and returns its one recruiting price and what it covers, the length it advertises, who will be recruited (what the panel filters on, and what it cannot, which the study's screening questions enforce instead), the quality bar, the workspace's credit and whether it covers the price, the identity check's cost per person as its own line when the study has it on (billed outside the recruiting price), a total of everything Jean can price, and a confirmation code valid for 10 minutes. Show all of that to the researcher and ask whether to recruit. Only after they say yes, call again with the same studyId and confirm set to the code: it publishes for exactly the quoted price and takes it from credit. If the price, the credit, the spend limit or the study changed, or the code is wrong, expired or used, it publishes nothing and says why and what to do. A retry with the same code never publishes or charges twice. People usually start arriving within minutes; follow with get_recruiting and list_conversations. Defaults: the places the study still needs, the suggested reward for its length, and the page's quality bar. Order of work: draft_study, edit_study, launch_study, recruit_participants, get_recruiting, list_conversations, get_results. (The MCP tool recruit_participants.)

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

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

Path​

NameTypeRequiredNotes
idstring (UUID)yes

Body​

FieldTypeRequiredNotes
placesintegernoHow many people to recruit. Default: the places the study still needs. 1 to 2000.
rewardDollarsnumbernoWhat each person is paid, in US dollars. Default: the suggested reward for the interview's length (Jean requires at least $8 an hour). 0.5 to 1000.
qualityobject or nullnoWho may take part, by their record on the panel. Default: an approval rate of at least 98% and at least 20 past approved studies, as the study page suggests. null for no bar.
quality.minApprovalRateintegerno0 to 100.
quality.minPastStudiesintegerno0 to 100000.
confirmstringnoThe confirmation code returned by the first call. Leave out on the first call. At most 100 characters.

Response · 200​

FieldTypeRequiredNotes
recruitedbooleanyesTrue only when the listing is published: people can now be recruited and the price was charged.
outcome"quoted", "published", "already published", "refused"yes
confirmationCodestring or nullyesAfter the first call: pass it back as confirm once the researcher agrees. Valid 10 minutes, for exactly these terms and this price.
saidstringyesWhat happened or why not, in one or two sentences.
listingobject or nullyes
listing.idstringyes
listing.state"being prepared", "not published", "being published", "recruiting", "paused", "finished", "stopped", "failed"yes
listing.placesintegeryes
listing.rewardMinorintegeryesWhat each person is paid, in US cents.
listing.minutesintegeryesThe length the listing advertises.
listing.priceMinorinteger or nullyesThe listing's price: on Jean's account the one recruiting price; on the workspace's own account what that account pays the panel.
listing.audienceAppliedstringyesWho the panel shows the listing to: the filters it applies.
listing.notApplied[]object[]yesParts of the audience the panel cannot filter on.
listing.screenerEnforcesbooleanyesWhether the study has screening questions, which turn away people who do not fit.
listing.qualityobject or nullyesThe quality bar the listing was made with. Null for none.
creditobject or nullyes
credit.billingOnbooleanyes
credit.recruitsThrough"jean", "own account", "own account, not billed"yesjean: Jean recruits the people and takes one price from credit. own account: the workspace recruits on its own connected panel account, which pays the panel; what Jean charges for recruiting comes from credit. own account, not billed: billing is off and the own account pays everything.
credit.availableMinorinteger or nullyesCredit that can be spent now, in US cents. Null when billing is off.
credit.coversThisboolean or nullyesWhether the available credit covers what this takes from credit. Null when nothing is taken from credit.
credit.withinSpendLimitboolean or nullyesWhether this stays within the workspace's monthly spend limit. Null when there is no limit.
credit.spendLimitMinorinteger or nullyes
credit.ownAccountobject or nullyesThe workspace's own panel account, when it recruits on one.
lines[]object[]yes
lines[].itemstringyes
lines[].countinteger or nullyesHow many, for a line priced per person.
lines[].eachMinorinteger or nullyesThe price of one, in cents.
lines[].amountMinorinteger or nullyesThe line's amount in US cents. Null when it cannot be priced.
lines[].fromCreditbooleanyesWhether this amount is taken from the workspace's prepaid credit.
lines[].paidBystringyesWho pays it, in words.
lines[].basisstringyesWhat the figure rests on.
totalMinorintegeryesEvery line Jean can price, added up, in US cents.
fromCreditMinorintegeryesOf the total, what is taken from the workspace's credit.
notPriced[]string[]yesWhat costs something and is not priced here.
consoleUrlstringyes
insufficientCreditobject or nullnoSet when the publish was refused because the workspace's credit does not cover it: the amounts and where an admin adds credit.
insufficientCredit.code"insufficient_credit"yes
insufficientCredit.priceMinorintegeryes
insufficientCredit.availableMinorintegeryes
insufficientCredit.shortMinorintegeryes
insufficientCredit.suggestedTopUpMinorintegeryes
insufficientCredit.mayAddCreditbooleanyes
insufficientCredit.addCreditUrlstringyes
The full response schema
{
"type": "object",
"properties": {
"recruited": {
"type": "boolean",
"description": "True only when the listing is published: people can now be recruited and the price was charged."
},
"outcome": {
"type": "string",
"enum": [
"quoted",
"published",
"already published",
"refused"
]
},
"confirmationCode": {
"description": "After the first call: pass it back as `confirm` once the researcher agrees. Valid 10 minutes, for exactly these terms and this price.",
"type": [
"string",
"null"
]
},
"said": {
"type": "string",
"description": "What happened or why not, in one or two sentences."
},
"listing": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"being prepared",
"not published",
"being published",
"recruiting",
"paused",
"finished",
"stopped",
"failed"
]
},
"places": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"rewardMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "What each person is paid, in US cents."
},
"minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "The length the listing advertises."
},
"priceMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The listing's price: on Jean's account the one recruiting price; on the workspace's own account what that account pays the panel."
},
"audienceApplied": {
"type": "string",
"description": "Who the panel shows the listing to: the filters it applies."
},
"notApplied": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
},
"why": {
"type": "string"
}
},
"required": [
"attribute",
"values",
"why"
],
"additionalProperties": false
},
"description": "Parts of the audience the panel cannot filter on."
},
"screenerEnforces": {
"type": "boolean",
"description": "Whether the study has screening questions, which turn away people who do not fit."
},
"quality": {
"anyOf": [
{
"type": "object",
"properties": {
"minApprovalRate": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Lowest approval rate on the panel, in percent."
},
"minPastStudies": {
"type": "integer",
"minimum": 0,
"maximum": 100000,
"description": "Fewest past approved studies on the panel."
}
},
"required": [
"minApprovalRate",
"minPastStudies"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The quality bar the listing was made with. Null for none."
}
},
"required": [
"id",
"state",
"places",
"rewardMinor",
"minutes",
"priceMinor",
"audienceApplied",
"notApplied",
"screenerEnforces",
"quality"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"credit": {
"anyOf": [
{
"type": "object",
"properties": {
"billingOn": {
"type": "boolean"
},
"recruitsThrough": {
"type": "string",
"enum": [
"jean",
"own account",
"own account, not billed"
],
"description": "jean: Jean recruits the people and takes one price from credit. own account: the workspace recruits on its own connected panel account, which pays the panel; what Jean charges for recruiting comes from credit. own account, not billed: billing is off and the own account pays everything."
},
"availableMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Credit that can be spent now, in US cents. Null when billing is off."
},
"coversThis": {
"description": "Whether the available credit covers what this takes from credit. Null when nothing is taken from credit.",
"type": [
"boolean",
"null"
]
},
"withinSpendLimit": {
"description": "Whether this stays within the workspace's monthly spend limit. Null when there is no limit.",
"type": [
"boolean",
"null"
]
},
"spendLimitMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"ownAccount": {
"anyOf": [
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"balanceMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"label",
"balanceMinor"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The workspace's own panel account, when it recruits on one."
}
},
"required": [
"billingOn",
"recruitsThrough",
"availableMinor",
"coversThis",
"withinSpendLimit",
"spendLimitMinor",
"ownAccount"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"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."
},
"consoleUrl": {
"type": "string"
},
"insufficientCredit": {
"description": "Set when the publish was refused because the workspace's credit does not cover it: the amounts and where an admin adds credit.",
"anyOf": [
{
"type": "object",
"properties": {
"code": {
"type": "string",
"const": "insufficient_credit"
},
"priceMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"availableMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"shortMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"suggestedTopUpMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"mayAddCredit": {
"type": "boolean"
},
"addCreditUrl": {
"type": "string"
}
},
"required": [
"code",
"priceMinor",
"availableMinor",
"shortMinor",
"suggestedTopUpMinor",
"mayAddCredit",
"addCreditUrl"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"recruited",
"outcome",
"confirmationCode",
"said",
"listing",
"credit",
"lines",
"totalMinor",
"fromCreditMinor",
"notPriced",
"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