Minds Team

Studies API

Create Studies, run cohesive multi-question blocks with Audiences, inspect results, and export artifacts through the Minds v1 API.

A Study is the research workspace. It contains one or more Audiences, questions, evidence, results, analysis, and exports.

Base URL: https://api.getminds.ai/v1

Study list and detail responses include isPublic, isLinkSharingEnabled, and publicShareId. A retained publicShareId alone does not establish public access: the share route requires isPublic: true or isLinkSharingEnabled: true. Recheck visibility before handing a link to a recipient.

GET /studies embeds each Audience's member Minds by default. Pass view=summary to get the same page with each Audience as id, name and mindCount and no minds array; every other field stays the same. This keeps a page small for accounts with many or large Audiences. Read the Minds from GET /studies/{studyId} or GET /audiences/{audienceId}. view accepts full (default) or summary; any other value returns 400.

GET /studies/{studyId}/runs returns newest-first pages: limit defaults to 20 and is capped at 100. Continue with before set to pagination.nextCursor while pagination.hasMore is true. clientRequestId filters by the original request UUID; preserve that filter on later pages. Invalid, foreign, or mismatched cursors return 400.

Public shared-Study views exclude guest conversations and retired subthreads, including direct answer reads. Shared transcript metadata contains presentation and research fields; model-connection settings, internal guided context, generation diagnostics, and language-review drafts are omitted. Answers and citations remain available for public messages. Authenticated workspace readers still require Study access.

Shared transcript endpoints (/api/app/studies/shared/{shareId} and /api/studies/shared/{shareId}) page messages with limit (default 100, maximum 500) and after. Follow data.pagination.nextCursor while data.pagination.hasMore is true, even when a page contains no public messages. Each page checks current sharing permissions; invalid or foreign cursors return 400. Transcripts contain aggregate results; load respondent answers separately. The shared page follows all pages automatically.

Saved respondent answers can precede settled qualitative analysis. For coded qualitative results, transcript metadata.resultReadiness is a read-only server projection with version: 1 and state: "pending" or "settled". Individual-answer responses and existing first-party batched answer reads return the same resultReadiness beside its matching outputData. A complete coding marker alone does not certify that the current source, assignments and synthesis agree. Keep pending analysis in progress; needs_review can be settled uncertainty. Historical results without coding metadata retain their existing behavior. Use readiness with the output from the same authoritative read, and observe the existing request rather than submitting it again.

Create a Study

curl -X POST "https://api.getminds.ai/v1/studies" \
  -H "Authorization: Bearer minds_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Launch positioning",
    "audienceIds": ["audience-id-1", "audience-id-2"]
  }'

Canonical Study responses use studyMode: "study" and an audiences collection. Inline audienceConfigs can create and attach Audiences atomically; if any inline Audience fails, the entire composite creation is rolled back.

Run questions as a cohesive block

For a broader objective or more than one question, use the guided lifecycle. Do not submit a questionnaire one question at a time.

  1. POST /studies/{studyId}/research-plans/preview creates or revises a versioned plan containing the cohesive question modules.
  2. Review the exact plan and answer any confirmation questions.
  3. POST /studies/{studyId}/research-runs confirms one precise revision and queues all questions together.
  4. GET /studies/{studyId}/research-runs/{runId} returns durable progress, response contracts, artifacts, calculations, and next actions.

The planner may use multiple named modules or sections when that improves the research design. Each module should contain related questions with a clear purpose; the executor preserves the reviewed order and shared context.

Use POST /studies/{studyId}/ask only for a genuinely standalone question. Use POST /studies/{studyId}/runs for a durable direct run that needs polling, replay, cancellation, or knowledge-only source policy.

Stop a standalone question or its remaining work with POST /api/v1/runs/{runId}/cancel. A queued run returns data.status: cancelled; an active run stops at its next step with data.status: cancelling. After a forecast has been delivered, the original run can remain completed or failed: data.progressive.status: cancelled or data.reactions.stopped > 0 acknowledges that remaining replies or Reactions were durably stopped. Keep the delivered forecast and saved answers; this does not rewrite their run history. Remote-provider stop recovery can still be pending. Follow the same run and question with the status endpoints. A settled run with no stopped work remains unchanged.

A research run can finish collecting with status: "partial" when a question or respondent answer is missing. Stop polling this terminal state and explain the gap; do not describe it as complete. progress.pct measures settled questions, not respondent coverage. New question outputs retain outputData.responseCoverage with expected, received, and missing Audience/Mind memberships. progress.partial counts questions with recorded incomplete coverage. Missing coverage on older artifacts is unknown, not proof that everyone answered. Keep valid raw answers and their outcomes unchanged; review missing work before starting a separate retry.

Observe pending plan preparation

Send a stable Idempotency-Key (an opaque nonblank string of at most 200 characters) when preparing a plan. POST /studies/{studyId}/research-plans/preview can return HTTP 202 with an owned preparation receipt:

{
  "data": {
    "status": "pending",
    "accepted": true,
    "operationId": "87b41085-4a73-4b04-88af-d9a2370ecdee",
    "requestId": "plan-reusable-cup-01"
  }
}

Repeat the same POST with the exact original JSON body and the same Idempotency-Key. Keep the returned requestId in x-minds-study-plan-request-id; the returned operationId can also be sent in x-minds-study-plan-operation-id. The operation ID is an owned observation hint, not permission to access another operation. stage may be included as optional progress. Reconnecting or aborting observation does not cancel accepted preparation. Do not use a fresh key merely to check progress.

accepted: true confirms durable preparation, not a completed plan or a started research run. Continue observing until HTTP 200 returns the original completed preview DTO. Review that exact saved revision before confirming a research run. Existing authorization, malformed-input and revision-control 4xx responses remain authoritative.

loadLatest and completed-plan reads return 200. Fixed instruments in questions and deterministic edits keep their existing no-planner meaning; they can still return 202 while required downstream source or preparation verification finishes.

Questionnaire runs: order, skip logic, and consistency

Each Mind answers as one respondent

A confirmed run (POST /studies/{studyId}/research-runs) is answered the way one respondent answers a questionnaire. Items run in the reviewed order. Every Mind answers an item in parallel with the other Minds, and each Mind sees its own earlier answers in this run: never another Mind's answers and never an aggregate. A later item can therefore build on an earlier one, and a Mind stays consistent with what it already said about itself. No request field turns this off.

Items in a confirmed run are not independent measurements. Order effects can arise as they do in a fielded survey, so question order is part of the design. When the design calls for it, control order effects by rotating item order across separate runs; a separate run does not see the answers of another run. A direct run (POST /studies/{studyId}/runs) is different: its historyMode defaults to none, which treats every question as an independent measurement.

Skip logic with askIf

Give a question askIf to ask it only of Minds whose own answer to an earlier choice question matched. Use this instead of respondent-visible wording such as "if not, answer N/A". Set it on a fixed-instrument item in questions[] of POST /studies/{studyId}/research-plans/preview, or on an item in edits.questions[] when revising a saved draft. Edits are authoritative: an edited item sent without askIf has no condition. The saved plan snapshot keeps the condition on its question.

{
  "questions": [
    {
      "id": "owns_car",
      "text": "Do you own a car?",
      "response": { "type": "categorical", "categoricalOptions": ["Yes", "No"] }
    },
    {
      "id": "car_brand",
      "text": "Which brand is your main car?",
      "response": { "type": "qualitative" },
      "askIf": { "questionId": "owns_car", "answerIn": ["Yes"] }
    }
  ]
}
FieldMeaning
questionIdID of an earlier question in the same plan (up to 80 characters, normalized to the saved ID slug). It must be a categorical or multiselect question.
answerInAsk when the Mind's answer includes any of these options.
answerNotInAsk when the Mind's answer includes none of these options.

Give exactly one of answerIn or answerNotIn, with 1 to 100 of the earlier question's option labels exactly as the plan stores them. Labels are matched as written, not interpreted, so a condition means the same thing in every language. An empty multiselect selection is an answer: it matches no answerIn, so answerNotIn items are asked. A Mind with no answer to the earlier question (it was not asked it, or its answer failed) is not asked. If the earlier question recorded no answers at all, every Mind is asked and the item's routing.gateUnavailable is true.

A condition that cannot run is rejected with 400, naming the question: both or neither of answerIn/answerNotIn, an unknown questionId, a question that is not earlier, a question that is not categorical or multiselect, or an option the earlier question does not offer. A fixed instrument returns Fixed instrument is not executable as given: …; an edit returns the issues directly; confirming a run revalidates the plan and returns Invalid question conditions: ….

Items and answers not asked

Run status (GET /studies/{studyId}/research-runs/{runId}) reports routing on each routed item's response artifact: routing carries questionId, gateQuestionId, the answerIn or answerNotIn condition, askedCount, notAskedCount and notAskedMindIds. An item that no Mind was asked settles as an artifact with kind: "not_asked" and no outputData. It is finished, not failed, and it does not make the run partial. A fixed respondent selection used for Audience validation can also carry routing.respondentsDropped: objects with mindId and reason (profile_changed or not_in_audience). These selected Minds were omitted from that question because their profile changed after selection or they left the Audience. They are outside its responses and answer base.

Minds that were not asked are outside the item's results. The item's answers, response counts, percentages, distributions and responseCoverage.expected cover the asked Minds only, so a share on a routed item is a share of those asked. Not asked is different from did not answer: a Mind listed in notAskedMindIds has no answer to read, while a missing asked answer shows up in responseCoverage. Individual-answer reads (GET /studies/{studyId}/messages/{messageId}/answers) return only the asked Minds' answers; a not_asked item has no answer data and returns 404.

Answer consistency flags

After a confirmed run of two or more items finishes, each Mind's answers are checked against its own other answers in the run. The check never changes an answer; it only records flags beside the answers for review. It runs after the run's summary is written, so it never delays the summary and can arrive shortly after status becomes completed. It does not run for a cancelled or plan-limited run, and a failed or cut-short check never fails the run.

The run status then carries answerConsistency:

FieldMeaning
statuschecked; incomplete when the time budget or a cancellation stopped the check before every Mind was checked; failed when the check failed or no flag could be saved
checkedMindsMinds whose answers were checked
flaggedMindsMinds with at least one flag
flagCountContradicting answer pairs found
uncheckedMindsMinds whose check could not run; their answers are unflagged, not cleared
unsavedItemsPresent only when some flags could not be saved: the run item indexes whose flags are missing; other items keep theirs

A flagged response artifact carries answerConsistency.flags, one entry per contradiction involving that item: mindId, withItem (the run item index of the other answer) and reason. Each pair is flagged on both items. Only Minds that answered at least two items are checked. Treat a flag as a prompt to review both answers, not as proof that either is wrong.

Core endpoints

MethodPathPurpose
GET/studiesList Studies
POST/studiesCreate a Study from Audiences
GET/studies/{studyId}Read Study composition and history
PATCH/studies/{studyId}Rename a Study
DELETE/studies/{studyId}Delete a confirmed Study
POST/studies/{studyId}/askAsk one standalone question
POST/studies/{studyId}/runsStart a durable direct run
GET/studies/{studyId}/analyticsCompute categorical, scale, multiselect, and qualitative analytics
GET/studies/{studyId}/summaryRead the persisted semantic summary
POST/studies/{studyId}/summaryGenerate or refresh the semantic summary
PUT/studies/{studyId}/sharingTurn the public link and team sharing on or off after explicit approval (owner only)
POST/studies/{studyId}/duplicateCopy the Study with all of its results over the same Audiences

Only the owner may call DELETE /studies/{studyId}. Success returns 204 with no response body: local Study data and access are removed atomically with a durable cleanup record. Private media analysis and files are cleaned in the background; a lost remote acknowledgement does not leave the Study available or require another delete request. The accepting owner can repeat the same deletion and receive 204; absent or inaccessible Studies without that owner’s accepted deletion return 404. Minds and Audiences themselves remain available. This behavior is shared by the app, v1 API and MCP.

To have your team's own model write the Mind answers, pass modelConnection: { "id", "revision" } on POST /studies/{studyId}/runs or POST /studies/{studyId}/research-runs (see your own model). The connection needs text and structured output. Supporting analysis still uses Minds models, and each answer still counts toward your plan's Study responses. POST /studies/{studyId}/ask does not accept a connection.

For POST /studies/{studyId}/summary, send a JSON object up to 4 KiB with only force (boolean; default false) and length (short, standard, or detailed; default standard). Invalid JSON, types, options, or extra fields return 400; larger bodies return 413. Summary reads and refreshes require Study access and return Cache-Control: private, no-store.

An optional Idempotency-Key header identifies one refresh request: 1–200 characters after trimming. Reuse the same key and request options for retries by the same caller on the same Study; they return the same operation. Reusing the key with different options returns 409. Without a key, each request receives a new UUID and can create a distinct refresh. Keep force, length and the effective request locale unchanged, including the x-locale header or aox-locale cookie when supplied.

A pending refresh returns 202 with the current saved summary snapshot in data, plus data.refresh: status: "pending", accepted: true, operationId, requestId, revision and isGenerating: true. Acceptance does not mean generation has finished. Observe progress with GET /studies/{studyId}/summary, not another refresh. While pending, the saved summary text remains available. Without force, generation can reuse a saved summary whose length, covered message count and final covered message still match. The response also includes nextSteps. POST now returns the GET snapshot shape: data.summary is the saved summary object or null, not a synchronously generated summary string.

GET returns the current snapshot's revision and isGenerating, plus the caller's latest refresh receipt for that Study, or null; it does not expose another caller's receipt. Replaying a completed operation returns 200 with the current snapshot. A distinct newer refresh or deletion can supersede an older operation: its receipt is then status: "completed" with superseded: true. That receipt is historical; the current snapshot and its generating state are authoritative. Refreshing a summary does not rerun questions or answers, create an export artifact, or send an email.

Duplicate a Study

POST /studies/{studyId}/duplicate creates a private copy of a Study you can open, over the same Audiences and Minds. The copy keeps every question, answer, chart and heatmap, the semantic summary and finished runs; a schedule is copied paused. Sharing, exports and shared-link guest threads are not copied. Audiences are referenced, not copied: duplicate an Audience separately to copy its Minds.

The optional body takes name (default <name> (copy)) and idempotencyKey; the Idempotency-Key header wins. A repeated key returns the same copy with 200; a new copy returns 201 with the StudyCreated shape. Attached Audiences and your plan are checked as for POST /studies. A Study with a live run returns 409 with STUDY_RUN_IN_PROGRESS; retry when it has finished, or cancel the run first.

Rename a Study

curl -X PATCH "https://api.getminds.ai/v1/studies/{studyId}" \
  -H "Authorization: Bearer minds_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Coffee concept test, wave 2" }'

PATCH /studies/{studyId} renames a Study. The body takes only name: 1 to 200 characters after surrounding whitespace is trimmed. A renamed Study is never renamed automatically again. The owner and collaborators or team members who are not viewers can rename it; viewers, team viewers and public-link visitors receive 404, as for a Study that does not exist. An invalid ID or body returns 400. The response is { "data": { "id", "name", "updatedAt" } }.

Who can open a Study is changed separately with PUT /studies/{studyId}/sharing (owner only): send isLinkSharingEnabled, isSharedWithTeam or both. A Study link also opens its Audiences and Minds. Team sharing sends no invitation or notification, and it requires the owner to be in a team (400 TEAM_REQUIRED). The MCP tools update_item and set_sharing use these routes.

Folders

Folders organize Studies and Audiences in the workspace sidebar. A folder is personal until its owner invites people in the web app; a folder with memberCount above 1 is shared, and everything in it is open to its other members.

MethodPathPurpose
GET/foldersList your personal and shared folders in sidebar order
POST/foldersCreate an empty personal folder
POST/folders/{folderId}/itemsAdd a Study or Audience to a folder
DELETE/folders/{folderId}/items/{type}/{itemId}Take a Study or Audience out of a folder
curl -X POST "https://api.getminds.ai/v1/folders/{folderId}/items" \
  -H "Authorization: Bearer minds_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "type": "study", "id": "20000000-0000-4000-8000-000000000002" }'

Each folder has id, name, role (admin manages who has access, member changes the contents), isOwner, memberCount (everyone with access, you included), pendingInvitationCount (unexpired invitations not yet accepted; whoever accepts one gains access to everything in the folder), studyIds, audienceIds, mindIds and version, which increases with every change. A Study or Audience can be in several folders.

POST /folders takes { "name": "Coffee research" } (1 to 200 characters after trimming; names need not be unique) and returns 201 with the new folder, placed at the top of the sidebar. Nobody else has access to it until you invite people in the web app.

POST /folders/{folderId}/items takes { "type": "study" | "audience", "id" } and returns the folder. You must be able to edit the item; otherwise, or when the item does not exist, the response is 403. Adding an item to a shared folder gives every other member of the folder access to it, including an Audience's Minds and a Study's Audiences and Minds. DELETE /folders/{folderId}/items/{type}/{itemId} takes the item out of that folder and returns the folder; the item itself is not deleted. Other members lose the access the folder gave them but keep access they have another way. Both calls are idempotent: adding an item that is already in the folder, or removing one that is not, changes nothing, and the item stays in any other folder it is in.

A folder that does not exist, or that you are not a member of, returns 404; an invalid ID, type or body returns 400. A concurrent change to your folders is retried once on the server; a second conflict returns 409, so read the folders again and retry. The MCP tool update_item files and moves items through these routes.

Exports

Start an artifact with POST /studies/{studyId}/export, poll /export-status, then download from /export-download. Supported outputs include the full report, executive summary, raw data, and presentation formats exposed by the export endpoint.

Compatibility

The former /panels routes remain callable during the migration window. They return Deprecation: true and a Link header naming the canonical /studies successor. Deprecated routes retain legacy wire fields such as groupIds, groups, and flowMode: "panel"; new integrations should use audienceIds, audiences, and studyMode: "study".

See the exhaustive v1 endpoint reference, the agent integration guide, and the live OpenAPI document.

n8n workflows

The n8n Study workflow guide shows how to pass the ID returned by Create into Preview Research Plan, then retrieve the same Study later. Version 0.1.0 prepares a draft; approving and starting its research is a separate step in Minds.

Observe direct-request preparation

With routeResearchBrief: true, POST /studies/{studyId}/runs can return HTTP 202 with data.status: "preparing", accepted: true, operationId and clientRequestId. Send a stable clientRequestId UUID and keep the exact original body for retries. This receipt confirms durable interpretation, not a started interview; it has no runId yet. Disconnecting does not cancel accepted work. The preparing receipt also returns questionId equal to the logical clientRequestId; it does not identify a started run. Keep operationId separate from this progress identifier.

Read GET /studies/{studyId}/runs?clientRequestId={clientRequestId} and inspect the separate requestPreparations array even when data contains no runs. preparing is still interpreting; planning_required returns the original request and reviewable proposal, which needs an explicitly confirmed saved plan before execution. admitted names the original runId: use the normal run status/events for answer progress. failed reports an actionable access, input or plan-limit control. Do not submit a fresh request to check progress.

Uploaded questionnaires. With routeResearchBrief: true, attached files and textAttachments sent without links or keywords are read for a questionnaire the way the app reads an upload. A questionnaire comes back as planning_required with questionnaire: its questions exactly as the document writes them, the answer format of each (response), the document's skip rules as askIf, changed answer labels (optionChanges), routingNotes, pictures, setAside and requiresQuestionReview. It is already saved as an exact draft (questionnaire.draftPlanId, questionnaire.revision). Show it to the person, then start it with POST /studies/{studyId}/research-runs and confirmation.accepted: true once they confirm, or change it first with POST /studies/{studyId}/research-plans/preview and edits. The questionnaire file itself never reaches respondents; the other files do. A file that holds no text, such as a product photo, is material for the respondents, never a questionnaire.

Request preparations have their own requestPreparationPagination. While its hasMore is true, send preparationCursor equal to its nextCursor, independently of the run cursor before. Preserve the Study and clientRequestId filter on every page; do not infer that older pending requests are absent from the first page.

When an image or sampled video frame has saved attention evidence, attention contains the verified region-to-selection mapping and each attention event carries its explicit attentionOrder. attentionOrders projects one aggregate order per capture: meanRank averages the explicit ranks of the Minds who noticed that region, and mindIds identifies those Minds. Heat and order are produced together. Historical heatmaps can omit these fields; absence does not establish an order. Video evidence is bound to the exact snapshotId and timestampSeconds with evidenceMode: sampled-frame; it does not establish attention through unobserved motion. These are synthetic predictions, not measured human eye tracking. A new analysis remains running while required evidence is incomplete and resumes saved Mind work.

Select Audience segments

For POST /studies and POST /studies/{studyId}/audiences, optional segmentSelections maps each selected Audience UUID to up to three { formationId, subgroupId } pairs. The server intersects stored membership IDs, validates access and retains the matching Minds with their existing cohort facts. Empty intersections or unavailable segments return 400 instead of expanding to the full Audience. Study reads expose selectionSegments and the matching mindCount; retries and duplication retain the accepted selection.

Monadic concept test

Each Mind sees one variant and answers the same questions. Review the sample and materials before starting. Assign every file a role, then choose what each question shows. Unassigned files stay researcher-only. Each Mind stays in one variant for the entire run.

POST /studies/monadic-preview · POST /studies/{studyId}/monadic-preview

{
  "audienceId": "00000000-0000-4000-8000-000000000003",
  "requestedSample": 8,
  "balanceDimensions": [],
  "variants": [
    {
      "id": "original",
      "label": "Original"
    },
    {
      "id": "test-1",
      "label": "Variant 2"
    }
  ],
  "materials": [],
  "questions": [
    {
      "id": "q1",
      "text": "How appealing is this concept?",
      "response": {
        "type": "scale",
        "scaleRange": [
          1,
          5
        ]
      },
      "task": "response",
      "commonMaterialIds": [],
      "variantMaterialIds": []
    }
  ]
}

The response returns data.previewId only for a ready allocation. Review allocation.requestedCount, eligibleCount, actualCount, shortfall, groups, strata and issues. Balancing dimensions use authorized, ready Formation IDs and their stored subgroup memberships. No missing stratum is silently ignored and a short sample cannot start. A model checks the questionnaire for unsupported human performance or timed-exposure tasks; no Mind answers during preview.

Each material has id, role (researcher, common or variant), optional variantId, and an authorized file with name, path, url, mimeType and sizeBytes. Assign common IDs in commonMaterialIds and variant IDs in variantMaterialIds: [{variantId, materialIds}] for each question. Empty arrays show no material for that question. Keep any document containing every variant researcher-only.

Read the owned review with GET /studies/monadic-preview/{previewId} or the corresponding Study path. Unaccepted previews expire after 24 hours. Attach exactly the reviewed source Audience to the Study, then confirm the saved preview:

POST /studies/{studyId}/research-runs

{
  "monadicPreviewId": "<data.previewId>",
  "confirmation": { "accepted": true, "advancedMethodOptIn": true }
}

Each Mind remains in its frozen arm across all questions and retries. The returned run keeps one logical question block; result audiences[].variant identifies exposure groups while audienceId remains the real source Audience. Analytics return per-variant statistics without a pooled monadic average. Raw CSV/XLS includes Study ID, Run ID, Logical Question ID, Source Audience ID, Variant ID, Mind ID and Response ID; SAV retains those coordinates as case and question fields. Synthetic responses do not measure real human reaction time, sensory performance or representative market outcomes.

Prepared dashboard reporting

For team reporting, GET /api/v1/teams/{teamId}/insights and list_studies with reporting.query share the same authorized reader. consistency=prepared opts into published snapshots while additions prepare; omitting it retains strict-current behavior. Source edits, deletions, control changes, policy mismatch and current access checks can withdraw affected data. Inspect reporting.materialization: preparation timestamps, sourceVersionCheck, complete, refreshingStudies, unavailableStudies and generationDigest. published-snapshot is dated prepared data. When complete=false, scope.totals=prepared-filtered-set: keep valid findings, but withhold whole-scope KPIs and financial estimates. If no snapshot is admitted, follow the preparing receipt's retryAfterSeconds; never display zero activity from it.

With view=feed&evidence=current, context=metrics returns independent organization/template context without waiting for run/media hydration; context=activity selects that activity context, and all remains the default. Combine only matching generation digests, actor/team and business filters. Current entity/media permissions remain independent. Background preparation counts existing data and never launches research.