2026-09-26
The SDK now targets the Deutero Study Management API (
https://dashboard.deutero.ai/study-api), and every endpoint in its OpenAPI spec is covered. This is a breaking release: the 0.1.x endpoints (/api/v1/surveys/..., thematic analysis, credit estimates) aren’t part of that API and have been removed.Added
- Projects: list, create, get, update.
- Studies: create, list per project, get, update, participation stats.
- Welcome and consent: get or set the welcome message; list, upsert and delete translations.
- Screening and characteristics: settings, plus create, update, delete and reorder questions.
- Questions: list, create, update, delete, reorder, validate (ethics, language, redundancy).
- Interview flow (
client.graph): get, set, patch, check, signals, import from questions, activate and deactivate, describe node types; typedFlowDocument,FlowNode,FlowEdgeandPatchOpmodels. - Recruitment: participation links, short-URL slug, quota and redirect.
- Embed: publishable keys and install snippets.
- Personas and simulations: persona CRUD and AI generation; start, list, poll and delete simulation runs.
- Interviews: list with filters, look up by external participant ID, detail, transcript, data fetches and signals.
- Transcripts: bulk export and string, semantic or hybrid search.
- Analysis: analyzable questions, scale and options tallies, k-means clustering, optimal cluster count.
- Webhooks: event types, endpoint CRUD, secret rotation, delivery log.
client.health().- Webhook receiving (
deutero.webhooks):unwrap,verify,parse_eventandsignfor Standard Webhooks-signed deliveries, covering organization events and interview-flow signals. Typed models for all seven organization event types, andWebhookVerificationError. PermissionDeniedError(403, a subclass ofAuthenticationError) andConflictError(409).ModelTier.STANDARD; newNodeType,SearchModeandAnalysisCategoryenums.- AI drafting:
studies.draft(from a research brief),studies.draft_from_site(from a landing page),questions.generateandwelcome.generate. - Publication:
studies.get_publication,studies.validate,studies.publish(with acknowledgement of methodological issues or a credit shortfall) andstudies.pause;statuson studies and study summaries. - Test runs:
test_runsandinclude_test_runsfilters on interview lists, lookups, transcripts and search;test_runon interview, transcript and search-hit models;test_interviewsin study stats.
Changed
- The default base URL is now
https://dashboard.deutero.ai/study-api. ModelTier.FRONTIERis removed; the API treatsfrontieras a deprecated alias forpremium.- FastAPI validation errors (a list in
detail) are now summarized readably in the exception message.
Fixed
- The
X-API-Keyheader is now sent when you pass your ownhttp_client. - A custom
http_clientwithout abase_urlnow uses the SDK’s base URL.
Removed
studies.generate,get_participation,get_agent_requirements,get/set_model_tier, the oldquestions.generateandquestions.get,personas.generate(number_of_personas=),interviews.simulate, the thematicanalysis.*methods, andcredits.estimate_*, together with their models.
2025-04-14
Initial release.
- Synchronous (
Deutero) and asynchronous (AsyncDeutero) clients. - Studies: generate research studies (UX, sociology, customer development, polling), participation stats, model tiers, agent requirements.
- Questions: generate interview questions; get and update individual questions.
- Personas: generate interviewee personas.
- Interviews: simulate interviews with generated personas.
- Analysis: thematic analysis (phases 1–4), cross-case analysis (phase 5), status and results.
- Credits: balance, and cost estimates for simulations, analysis and full surveys.
- Typed Pydantic v2 models, a full exception hierarchy,
py.typed, and context manager support.
.png?fit=max&auto=format&n=G_hwo_L4hZsQ93vT&q=85&s=c00b6042d4688a9b776bae65a530206a)