create()
draft, in linear interview mode, with an empty question list.
open_weights, standard or premium. frontier is accepted by the API as a deprecated alias for premium.StudyOut.
list()
StudyListOut, with studies holding a list of StudySummary.
get()
question_count and screening_enabled) and participation links.
Returns StudyOut.
update()
create() except project_id; only the ones you pass change. To remove a response quota, use recruitment.update(clear_max_responses=True).
Returns StudyOut.
get_stats()
StudyStatsOut.
draft()
create(), then fill in questions with questions.generate(). Usually takes 20–40 seconds.
Only the brief fields for the chosen survey_type are read:
All brief fields are strings.
Returns
StudyDraft.
draft_from_site()
is_valid is true, pass draft to create(); otherwise draft is None and rationale explains what was missing. Each site allows a limited number of drafts per user (generations_used of generations_limit), and the API returns 429 (RateLimitError) after that. Usually takes 20–40 seconds.
Returns StudyDraftFromSiteOut.
get_publication()
draft, open, paused or closed), how many studies your plan may have open, the publish-time credit check, the latest validation run and whether the configuration has changed since publishing.
Returns PublicationStatusOut.
validate()
publish() while the configuration is unchanged. This is a model call, so allow up to a minute.
outcome is passed, methodological_issues, ethical_issues or blocking_issues. Each issue’s severity is ethical or blocking (both must be fixed) or methodological (can be acknowledged).
Returns ValidationRunOut.
publish()
ConflictError, whose body carries the refusal code, the issues and the validation_run_id. Publishing a study that’s already open does nothing and returns already_open=True.
To publish despite methodological issues, pass the
validation_run_id from the refusal. Ethical and blocking issues can’t be acknowledged.Publish even though your balance covers at least one interview but not every remaining response.
PublishOut.
pause()
in_flight_count says how many. Resume with publish().
Returns PauseOut..png?fit=max&auto=format&n=G_hwo_L4hZsQ93vT&q=85&s=c00b6042d4688a9b776bae65a530206a)