{"components":{"schemas":{"ChildrenEnum":{"enum":["0","1","2","3","4+"],"title":"ChildrenEnum","type":"string"},"CleanedRunResponse":{"example":{"confidence_level":"Reasonable","created_at":"2025-03-07T14:23:55.126Z","estimation_method":"HB","experiment_type":"conjoint","expr_llm_model":"GPT4","id":"04700e81-832f-4c7d-ba1e-d6225716a7db","is_private":false,"name":"transformation-25-03-07-14-23-55-126","r_squared":45,"sample_size":100,"state":"finished","tasks_per_respondent":5,"total_number_of_tasks":500,"why_prompt":"What influences social media engagement?"},"properties":{"confidence_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence Level"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"estimation_method":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"unknown","title":"Estimation Method"},"experiment_type":{"default":"conjoint","title":"Experiment Type","type":"string"},"expr_llm_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expr Llm Model"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"is_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Private"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"r_squared":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"R Squared"},"sample_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sample Size"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"tasks_per_respondent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tasks Per Respondent"},"total_number_of_tasks":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Number Of Tasks"},"why_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Why Prompt"}},"title":"CleanedRunResponse","type":"object"},"ConceptRunResponse":{"example":{"concept_type":"Text Only","created_at":"2025-03-07T14:23:55.126Z","id":"04700e81-832f-4c7d-ba1e-d6225716a7db","is_private":false,"name":"Mile& Package Testing","respondents":100,"sample_size":100,"state":"finished"},"properties":{"concept_type":{"default":"","title":"Concept Type","type":"string"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"experiment_type":{"default":"concept_testing","title":"Experiment Type","type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"is_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Private"},"name":{"default":"","title":"Name","type":"string"},"respondents":{"default":0,"title":"Respondents","type":"integer"},"sample_size":{"default":0,"title":"Sample Size","type":"integer"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},"title":"ConceptRunResponse","type":"object"},"EducationLevelEnum":{"enum":["Some College","High School Diploma","Less than high school","High School but no diploma","Bachelors","Associates","Masters","PhD"],"title":"EducationLevelEnum","type":"string"},"Experiment":{"example":{"add_neither_option":true,"check_for_continuous_variables":true,"concept_description":"","concept_statements":[{"labels":["Strongly Disagree","Disagree","Neutral","Agree","Strongly Agree"],"statement":"This smoothie would provide me with sustained energy throughout the day."},{"labels":["Strongly Disagree","Disagree","Neutral","Agree","Strongly Agree"],"statement":"The protein content of this product meets my nutritional needs."},{"labels":["Strongly Disagree","Disagree","Neutral","Agree","Strongly Agree"],"statement":"The flavor varieties offered are appealing to me."},{"labels":["Strongly Disagree","Disagree","Neutral","Agree","Strongly Agree"],"statement":"I would purchase this smoothie as a healthy meal replacement option."}],"country":"USA","do_research":false,"effect_encoding":true,"ensure_25_trait_level_count":false,"experiment_type":"conjoint","external_personas":["https://uk.linkedin.com/in/samgadsby","https://www.linkedin.com/in/bencheatham","https://uk.linkedin.com/in/simonmelaniphy","https://uk.linkedin.com/in/alex-velinov","https://www.linkedin.com/in/martinkronstad","https://uk.linkedin.com/in/pshannon"],"hb_folder":"","hb_run_id":"","image_name1":"d78f470a-90ad-4b1e-a322-cb4cc9cc631b.png","image_name2":"","is_private":false,"match_population_distribution":false,"mnp_model":true,"non_us_target_population":{"Age":[18,92],"Education_Level":["Masters","Bachelors","Some College","PhD","High School but no diploma","High School Diploma","Associates","Less than high school"],"Gender":["Female","Male"],"Home_Ownership":["Own","Rent","Other"],"Household_Size":["4","2","1","3","More than 4 people"],"Household_With_Children":["Yes","No"]},"null_levels":true,"population_group":"Urban Singles","population_traits":{"Big five conscientiousness":["Flexible","Balanced","Structured"],"Price Sensitivity":["Highly Price Sensitive","Value Seeker","Premium Acceptor","Price Indifferent"],"Risk Aversion":["Highly Risk Averse","Cautious","Risk Tolerant","Risk Seeking"],"Vehicles In Household":["0","1","2","3","4","4+"]},"pre_cooked_attributes_and_levels_lookup":[["Price",["599 USD","450 USD","799 USD","900 USD","499 USD"]],["Display Size",["6.1-inch","6.7-inch","6.3-inch"]],["RAM",["6 GB","12 GB","8 GB"]],["Internal Storage",["128 GB","256 GB"]],["Battery Capacity",["5000 mAh","4492 mAh","3274 mAh","3692 mAh","4000 mAh"]],["Main Camera",["50 MP + 12 MP + 10 MP","48 MP","48 MP + 48 MP","48 MP + 12 MP","50 MP + 8 MP + 5 MP"]],["Chipset",["A19","Tensor G4","Snapdragon 8 Elite Gen 5","Exynos 1380","A18"]],["Operating System",["Android 15","Android 16","iOS 26"]],["Weight",["177 grams","188 grams","189 grams","167 grams"]],["Product",["Samsung (Galaxy A57 5G)","Samsung (Galaxy S26)","Apple (iPhone 17e)","Apple (iPhone 17)","Google (Pixel 10a)"]]],"realworld_products":[{}],"respondent_instruction_for_concept":"View the concept (image) and rate the following statements based on your first impression. Use only the info shown. No right or wrong answers.","response_type":"discrete","survey_editable_lines":{"1":"You are tasked with answering a conjoint survey question related to examining factors that influence purchase of facial moisturizer as the following individual:","10":"Before selecting an option, consider the following:\n1. Consider how your demographic traits and lifestyle influence your priorities for the decision.\n2. Evaluate the options in the survey question based on these priorities.","12":"Please read the descriptions of facial moisturizers (50ml) carefully. Then, please select which facial moisturizer you would purchase.","4":"Imagine you are in a situation where You need to purchase a facial moisturizer for your daily skincare routine from an online retailer that provides detailed product specifications.","5":" - Consider the different combinations of factors and select the option that would most likely lead to the maximize level of purchase of facial moisturizer.","6":" - When evaluating each option, consider how the combination of factors would realistically interact to affect purchase of facial moisturizer.","7":" - Choose the scenario where the presented conditions would be most conducive to maximizing purchase of facial moisturizer.","8":"","9":"Answer the survey question as this person, following these steps:"},"target_population":{"age":[18,95],"education_level":["Less than high school","High School but no diploma","High School Diploma","Some College","Associates","Bachelors","Masters","PhD"],"gender":["Male","Female"],"household_income":[0,150000],"number_of_children":["1","2","3","4+"],"racial_group":["White","African American","American Indian or Alaska Native","Asian or Pacific Islander","Mixed race","Other race"]},"use_external_personas":false,"use_halton_draws":false,"use_population_group":false,"user_uploaded_persona":false,"why_prompt":"What are the key factors influencing consumers' purchase consideration and preference for upgrading their mobile devices, such as from an iPhone 12 to an iPhone 15 or Samsung Galaxy S22 to S24?","year":"January 2026"},"properties":{"add_neither_option":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Append a 'None of these' opt-out row to every choice task. Default true. Set explicitly to match the supplied study design.","title":"Add Neither Option"},"additional_notes_max_workers":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":100,"description":"Parallel model calls for additional notes. Default 100. Operator knob; leave unset.","title":"Additional Notes Max Workers"},"all_combinations_index":{"anyOf":[{"items":{"items":{"type":"string"},"type":"array"},"type":"array"},{"type":"null"}],"default":[[""]],"description":"Unused; kept for payload compatibility.","title":"All Combinations Index"},"alternative_shuffle_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":10000,"description":"Seed for the order profiles appear within each choice task. Default 10000.","title":"Alternative Shuffle Seed"},"alternatives_per_task":{"anyOf":[{"maximum":6.0,"minimum":2.0,"type":"integer"},{"type":"null"}],"description":"Number of profiles shown per choice task. None (default): today's behaviour — the attribute-count heuristic, or 2 when binary_choice is true. Set 2..6 to show exactly that many profiles (the opt-out row, when add_neither_option is true, is added on top). The run summary reports both the requested and the realized count. Single-profile rating tasks (1) are not supported yet.","title":"Alternatives Per Task"},"attribute_count":{"anyOf":[{"maximum":10.0,"minimum":2.0,"type":"integer"},{"type":"null"}],"default":8,"description":"Attributes to generate when the engine builds the design, 2 to 10. Default 8. Ignored with pre_cooked_attributes_and_levels_lookup.","title":"Attribute Count"},"attribute_shuffle_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1000,"description":"Seed for the order attributes appear in each profile. Default 1000. With design_seed, price_generation_seed and alternative_shuffle_seed it fixes the realized survey.","title":"Attribute Shuffle Seed"},"batch_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":20,"description":"Respondents per model batch in the survey step. Default 20. Operator knob; leave unset.","title":"Batch Size"},"binary_choice":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Show exactly two profiles per choice task. Default false uses the attribute-count heuristic. alternatives_per_task overrides both.","title":"Binary Choice"},"block_optimization_iteration_limit":{"default":100,"description":"Iterations the block optimizer spends balancing choice tasks across respondents. Default 100 on dev, 200 elsewhere. Operator knob; leave unset.","title":"Block Optimization Iteration Limit","type":"integer"},"canary_profile":{"anyOf":[{"const":"hainmueller2014","type":"string"},{"type":"null"}],"description":"Daily Hainmueller verification. All provider attempts share a fixed USD 5 gross budget per America/New_York day; unsupported spending paths are refused.","title":"Canary Profile"},"check_for_continuous_variables":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Applies to engine-generated designs only. When `pre_cooked_attributes_and_levels_lookup` is supplied, submitted levels are used exactly as sent and this flag has no effect (#2074, #2396): the engine never reclassifies a submitted level as continuous or draws replacement values.","title":"Check For Continuous Variables"},"community_fit_enabled":{"default":true,"description":"Dev only: false skips the optional community analytics fit after a Study finishes, for example for Ditto replication-only submissions. Default true preserves ordinary fits. Ignored outside Dev.","title":"Community Fit Enabled","type":"boolean"},"concept_description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Text description of the concept for concept_testing, used with or instead of an image.","title":"Concept Description"},"concept_heading":{"default":"","description":"Heading the worker composes for a concept_testing run from the concept description, image and statements. Written by the worker into the run summary; ignored on input.","title":"Concept Heading","type":"string"},"concept_statements":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"description":"Statements respondents rate in concept_testing, each {statement, labels} where labels is the ordered rating scale.","title":"Concept Statements"},"confidence_level":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"Low","description":"Low, Medium or High, derived from model fit. Written by the worker into the run summary; ignored on input.","title":"Confidence Level"},"conjoint_time":{"default":0.0,"description":"Minutes the survey stage took. Written by the worker into the run summary; ignored on input.","title":"Conjoint Time","type":"number"},"context":{"default":"","description":"Study context shown to respondents ahead of the choice tasks. Empty (default) lets the worker derive it from why_prompt.","title":"Context","type":"string"},"cost_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"default":0.0,"description":"Model cost of the run in USD. Written by the worker into the run summary; ignored on input.","title":"Cost Amount"},"country":{"default":"United States","description":"Country of the respondent population and design context. Default 'United States'. Other countries need non_us_target_population.","title":"Country","type":"string"},"coverage_probability":{"anyOf":[{"type":"number"},{"type":"null"}],"default":0.0,"description":"Reserved; currently always 0. Written by the worker into the run summary; ignored on input.","title":"Coverage Probability"},"dcm_survey_workers":{"default":128,"description":"Parallel model calls for the survey step, capped at the task count. Default 128, or 112 when Fast automatically selects the enabled Bedrock panel. An explicit value is preserved. Operator knob; leave unset.","title":"Dcm Survey Workers","type":"integer"},"decision_time_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1000,"description":"Not read by the worker; kept for payload compatibility.","title":"Decision Time Seed"},"derived_from_suggestion_id":{"anyOf":[{"pattern":"^nxs_[A-Za-z0-9_-]{16,64}$","type":"string"},{"type":"null"}],"description":"Next-experiment suggestion this run starts from (GET /api/v1/runs/{run_id}/next-experiments). The caller must be able to read the suggestion's parent run; an unknown id is a 422. The run records the parent as `derived_from`.","title":"Derived From Suggestion Id"},"design_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Feature flag. None (default): today's behaviour — a fresh randomized design every run. Set an integer to make the realized design (choice tasks, level shuffles, Sobol scramble) a pure function of the seed, so two runs of one configuration are true replicates and A/B comparisons can be paired. Defaulting this on waits on the #2149 review.","title":"Design Seed"},"deterministic_stages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"When true, the pre-survey LLM stages (latent-variable generation and scoring, persona bios, mood statements, decision strategy) run at llm_temperature instead of their fixed 0.7, so a rerun with the same seeds reproduces the same respondent prompts. Default false keeps today's behaviour.","title":"Deterministic Stages"},"do_research":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Run a background GPT Researcher pass on why_prompt alongside the study and attach its report to the run. Default false. Skipped for human-baseline runs.","title":"Do Research"},"dv_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that phrases the dependent variable (the choice question) from why_prompt. Not used when respondent_dependent_variable is supplied. Default Databricks Claude Sonnet 3.7."},"effect_encoding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Effects-code attribute levels (sum to zero) in the utility model instead of dummy coding. Default true.","title":"Effect Encoding"},"ensure_25_trait_level_count":{"default":false,"description":"Grow the sample until every trait level has at least 25 respondents. Default false.","title":"Ensure 25 Trait Level Count","type":"boolean"},"estimation_method":{"default":"HB","description":"Utility estimation. HB (default): hierarchical Bayes mixed logit with individual-level utilities. MLE: a single multinomial logit.","enum":["MLE","HB"],"title":"Estimation Method","type":"string"},"experiment_size":{"anyOf":[{"enum":["small","medium","large"],"type":"string"},{"type":"null"}],"description":"Population size only: ceil(K * maximum attribute levels / (tasks * actual alternatives)), with K=700/1400/3200 for small/medium/large. Omitted uses K=1400 and may add tasks when the population is small. With a preset, each level of every filtered population trait gets at least 25 respondents where the pool has them, which can raise the total. Not a statistical power guarantee.","title":"Experiment Size"},"experiment_type":{"default":"conjoint","description":"conjoint (default) runs a discrete choice experiment over attributes and levels. concept_testing shows a concept (image or description) and asks respondents to rate concept_statements.","enum":["concept_testing","conjoint"],"title":"Experiment Type","type":"string"},"expr_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"description":"Model that answers the survey as each respondent. Explicit selections always win. When unset, Fast and Reliable select ensemble:bedrock-human-v6 if the Bedrock panel rollout is enabled, and the deployed survey route applies if not. typesafe:jev-1.13.0 (#2955) and eevo:eevo-1 (#3160) answer only when requested by name and need response_mode fast. The resolved model is saved before queueing."},"external_personas":{"default":[],"description":"LinkedIn profile URLs to build respondents from when use_external_personas is true.","items":{"type":"string"},"title":"External Personas","type":"array"},"generate_additional_notes":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Ask the model for free-text notes per respondent during latent-variable scoring. Default false.","title":"Generate Additional Notes"},"hb_folder":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"Legacy human-baseline path, now owned by Ditto: storage folder of a stored study to replicate. Only one of hb_folder and hb_run_id may be set. Prefer inline pre_cooked_attributes_and_levels_lookup with response_mode.","title":"Hb Folder"},"hb_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"Legacy human-baseline path, now owned by Ditto: W&B run id of a stored study to replicate. Only one of hb_folder and hb_run_id may be set.","title":"Hb Run Id"},"image_name1":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Uploaded image file name of the first concept for concept_testing. With image_name2 the run compares two concepts.","title":"Image Name1"},"image_name2":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Uploaded image file name of the second concept for concept_testing. Leave empty to test one concept.","title":"Image Name2"},"include_price_brand":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Ask the design generator to include price and brand attributes. Default false. Engine-generated designs only.","title":"Include Price Brand"},"is_hb_run":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Legacy: marks the run as a human-baseline replication, which skips do_research and enables the hb_folder / hb_run_id sourcing. Default false.","title":"Is Hb Run"},"is_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Restrict run visibility to its owner. Default false.","title":"Is Private"},"latent_variables":{"default":true,"description":"Generate, score and paste the latent-variable (attitudinal) battery into every respondent prompt. Default true. Disabled by Fast and enabled by Reliable. See latent_variables_from_run to reuse a previous bundle instead of generating one.","title":"Latent Variables","type":"boolean"},"latent_variables_from_run":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Reuse the latent-variable bundle (variable names, statements and every respondent's scores) of a previous run instead of generating a new one. Give the previous run's name (artifact experiment_latent_variables_<name>). Requires the same population. Default None generates a fresh bundle, as today.","title":"Latent Variables From Run"},"latent_variables_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that generates the latent-variable battery (variable names). Default Databricks Claude Sonnet 3.7."},"latent_variables_measurement_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":3,"description":"Statements per latent variable. Default 3.","title":"Latent Variables Measurement Count"},"latent_variables_scale_labels_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":5,"description":"Points on the rating scale used to score each statement. Default 5.","title":"Latent Variables Scale Labels Count"},"latent_variables_traits_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":4,"description":"How many latent variables the battery generates. Default 4.","title":"Latent Variables Traits Count"},"level_count":{"anyOf":[{"maximum":10.0,"minimum":2.0,"type":"integer"},{"type":"null"}],"default":5,"description":"Levels per generated attribute, 2 to 10. Default 5. Ignored with pre_cooked_attributes_and_levels_lookup.","title":"Level Count"},"levels_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that generates attributes and levels from why_prompt. Not used when pre_cooked_attributes_and_levels_lookup is supplied. Default Databricks Claude Sonnet 3.7."},"levels_per_trait":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":100,"description":"Legacy: levels per trait when personas are generated through the traits API (use_api). Default 100.","title":"Levels Per Trait"},"llm_temperature":{"default":0.0,"description":"Sampling temperature of the respondent survey step. Default 0.0: randomness here is measurement noise, not respondent heterogeneity. The pre-survey stages keep their fixed 0.7 unless deterministic_stages is true.","title":"Llm Temperature","type":"number"},"lv_based_nl_summary_max_workers":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":100,"description":"Parallel model calls for the latent-variable summaries pasted into respondent prompts. Default 100. Operator knob; leave unset.","title":"Lv Based Nl Summary Max Workers"},"lv_statement_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that writes the Likert statements for each latent variable. Default Databricks Claude Sonnet 3.7."},"lv_statement_max_workers":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":100,"description":"Parallel model calls for latent-variable statements. Default 100. Operator knob; leave unset.","title":"Lv Statement Max Workers"},"match_population_distribution":{"default":false,"description":"Resample so the respondent mix matches the target population's distribution on the constrained demographics. Default false.","title":"Match Population Distribution","type":"boolean"},"match_population_distribution_concept":{"default":true,"description":"Concept-testing counterpart of match_population_distribution. Default true.","title":"Match Population Distribution Concept","type":"boolean"},"max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":40,"description":"Length limit passed to the attribute and level generator for each label. Default 40. Engine-generated designs only.","title":"Max Length"},"mnp_model":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Estimate with the multinomial probit (MNP) model; false uses multinomial logit (MNL). Default true.","title":"Mnp Model"},"mood_statement_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":178942,"description":"Seed for assigning mood statements to respondents. Default 178942. Fast skips mood generation and injection.","title":"Mood Statement Seed"},"non_us_target_population":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":{},"description":"Constraints for a non-US population, passed as a free-form dict to the population builder. Age, when set, is an inclusive [low, high] range in whole years, for example [18, 65]; any other shape is rejected with 422. Cannot be combined with target_population or population_preset.","title":"Non Us Target Population"},"null_levels":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"When true, every attribute gains an injected `Not available` level. Callers whose design must contain only the submitted levels must send `null_levels=false` explicitly; the default injects it.","title":"Null Levels"},"offered_questions":{"anyOf":[{"items":{"maxLength":4000,"minLength":1,"type":"string"},"maxItems":10,"type":"array"},{"type":"null"}],"default":[],"description":"The study questions offered together when this design started, the one sent as why_prompt included. The study does not use them. The run keeps them, and GET /api/v1/runs/{run_id} returns them as run_details.offered_questions, so the questions not picked stay reachable. At most 10, each 1 to 4000 characters after trimming; a repeated question is kept once. Default empty.","title":"Offered Questions"},"operation_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Stable client operation ID for safe retransmission of a project launch. Use a new ID for a new run.","title":"Operation Id"},"optimization_context":{"default":"","description":"What the decision maker is optimizing, appended to target_behavior in the decision context. Empty (default) lets the worker derive it from why_prompt.","title":"Optimization Context","type":"string"},"paper_data":{"anyOf":[{"items":{"items":{"type":"string"},"type":"array"},"type":"array"},{"type":"null"}],"default":[],"description":"Rows of the source paper's reported results for human-baseline comparison; the worker reads the regression_model entry. Default empty.","title":"Paper Data"},"persona_nl_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that writes each respondent's natural-language bio from its demographic and trait record. Default Databricks Claude Sonnet 3.7."},"persona_nl_workers":{"default":128,"description":"Parallel model calls for respondent bios, capped at the respondent count. Default 128. Operator knob; leave unset.","title":"Persona Nl Workers","type":"integer"},"population_group":{"anyOf":[{"$ref":"#/components/schemas/GroupLabel"},{"type":"null"}],"description":"Named segment to draw from when use_population_group is true."},"population_preset":{"anyOf":[{"$ref":"#/components/schemas/PopulationPreset"},{"type":"null"}],"description":"Name a stored US population instead of writing target_population by hand. us_general_adults resolves to age 18 to 99 across the twelve representative states the worker uses when no state is given, so a request that only carries population_traits can still queue. Cannot be combined with an explicit target_population constraint, non_us_target_population, use_nrg_population, use_external_personas, use_population_group or user_uploaded_persona; the request would then be describing the population twice, and is rejected with 422."},"population_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":100,"description":"Seed for the respondent draw. Identical configurations draw identical respondents unless resample_population is true. Default 100.","title":"Population Seed"},"population_traits":{"anyOf":[{"$ref":"#/components/schemas/PopulationTraits"},{"type":"null"}],"default":{},"description":"Modeled traits added uniformly to every respondent, keyed by trait name with a value or list of allowed values. Traits never select respondents: pair them with target_population or population_preset."},"pre_cooked_attributes_and_levels_lookup":{"anyOf":[{"items":{"items":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"type":"array"},"type":"array"},{"type":"null"}],"default":[],"description":"Closed-world design: `[[attribute, [level, ...]], ...]`. Submitted levels are used exactly as sent, including numeric-looking and currency levels; the engine never reclassifies them as continuous or synthesises replacement prices (#2074, #2324). The only level that can be added is `Not available`, controlled by `null_levels`. Leave empty to have the engine generate the design from `why_prompt`.","title":"Pre Cooked Attributes And Levels Lookup"},"predict_trait_workers":{"default":128,"description":"Parallel model calls for trait prediction, capped at the respondent count. Default 128. Operator knob; leave unset.","title":"Predict Trait Workers","type":"integer"},"price_generation_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":1000,"description":"Seed for synthesized price levels when the engine generates the design. No effect with pre_cooked_attributes_and_levels_lookup. Default 1000.","title":"Price Generation Seed"},"priority":{"default":"high","description":"Which worker tier runs this study. `high` routes to the `high_priority` queue and `default` to the `default` queue; each has its own dedicated worker, so `high` never queues behind `default` and `default` is never starved. Omitted requests get `high`. Note this replaces an older server-side inference from `hb_run_id`: a replication sourced by W&B run id used to be routed to `default` automatically and now is not, so send `\"default\"` explicitly if that is what you want.","enum":["default","high"],"title":"Priority","type":"string"},"prob_to_discrete_seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":500,"description":"Seed for converting probabilistic responses to a single choice when response_type is probabilistic. Default 500.","title":"Prob To Discrete Seed"},"project_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"Optional owned project. The backend resolves its latest saved context at acceptance.","title":"Project Id"},"prompt_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"generic","description":"How the design generator frames why_prompt: generic (default), product ('when purchasing') or service ('when choosing options for this service').","title":"Prompt Type"},"r_analytics_time":{"default":0.0,"description":"Minutes the R analytics stage took. Written by the worker into the run summary; ignored on input.","title":"R Analytics Time","type":"number"},"r_squared":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"description":"Model fit as a whole-number percentage. Written by the worker into the run summary; ignored on input.","title":"R Squared"},"realworld_products":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":[],"description":"Brand and product combinations behind a Product attribute. Engine-generated designs fill this from why_prompt. With pre_cooked_attributes_and_levels_lookup, more than one entry adds an always-available Product attribute. Default empty.","title":"Realworld Products"},"resample_population":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Feature flag. False (default): the respondent sample is a pure function of population_seed — identical configs draw identical respondents, so runs are true replicates. True: restore the pre-2026-08-30 behaviour of drawing a fresh random sample every run (runs shared only 1.6-3.4% of respondents, the largest single source of run-to-run AMCE variance).","title":"Resample Population"},"respondent_dependent_variable":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"The choice question shown to respondents, used verbatim when supplied. Empty (default) lets dv_llm_model phrase it from why_prompt.","title":"Respondent Dependent Variable"},"respondent_instruction_for_concept":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Instruction shown to respondents before they rate the concept in concept_testing.","title":"Respondent Instruction For Concept"},"respondent_instructions_preamble":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"Text placed before the choice question in every respondent prompt. Empty by default.","title":"Respondent Instructions Preamble"},"response_contract":{"default":"cot_json","description":"How respondents answer the survey step. cot_json (default) is today's contract: chain-of-thought inside a JSON object per task. short is the trimmed template with at most two sentences of reasoning per task and one final JSON line of choices; about 60% fewer output tokens.","enum":["cot_json","short"],"title":"Response Contract","type":"string"},"response_mode":{"anyOf":[{"enum":["fast","reliable"],"type":"string"},{"type":"null"}],"description":"fast skips generated attitudes, mood and decision strategies and uses a compact choices-only prompt; reliable generates enrichment and uses the full prompt and JSON with reasoning. Independent of population size. Omitted preserves response_contract.","title":"Response Mode"},"response_type":{"anyOf":[{"$ref":"#/components/schemas/SurveyResponseType"},{"type":"null"}],"default":"discrete","description":"discrete (default): each respondent picks one profile per task. probabilistic: the respondent gives a probability per profile, converted to a choice with prob_to_discrete_seed."},"sample_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"description":"Respondents actually surveyed. Written by the worker into the run summary; ignored on input.","title":"Sample Size"},"score_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that scores each respondent on the latent-variable statements. Default Databricks Claude Sonnet 3.7."},"selection_extraction_model":{"$ref":"#/components/schemas/LLMModel","default":"databricks-llama3.3-70B","description":"Legacy field retained for saved-request compatibility; unused. Fast normalizes explicit choices deterministically without an extraction model."},"setup_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"description":"Model for the text steps around the survey: latent variables, persona bios, dependent variable and concept headings. It never answers the survey or scores a concept. Unset keeps the deployed route (Bedrock DeepSeek V3.2). Must be one Bedrock text model (bedrock:...)."},"spearman_correlation":{"anyOf":[{"type":"number"},{"type":"null"}],"default":0.0,"description":"Reserved for the Spearman correlation of feature importance; currently always 0. Written by the worker into the run summary; ignored on input.","title":"Spearman Correlation"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"US state to restrict the population to; also settable inside target_population. None draws from twelve representative states.","title":"State"},"survey_design_filelink":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"Storage key of an uploaded survey design parquet. When set, that design is used instead of generating one.","title":"Survey Design Filelink"},"survey_editable_lines":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":{},"description":"Line-level overrides of the survey prompt template keyed by line number, as produced by the Holodeck prompt editor. Empty by default.","title":"Survey Editable Lines"},"survey_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"Respondent Instructions:\nYou are answering questions as if you are a human. Do not break character.\nYou are an agent with the following personas: {persona_traits}.\nCurrently living in {state}, {country}, Time of Survey: year: {year}.\n\nInstructions:\n{study_subject}.\nIn this context, we have designed a discrete choice survey question where you are presented with three options/alternatives including None of these.\nThe options/alternatives are defined as a function of attribute-level combinations.\nBelow we provide the list of attributes/features and the possible values (attribute level) it may take.\n{attributes_levels}.\n\nConsider the options in the Questionnaire below. Please read the specifications carefully.\nThen, select the most preferred option considering that the current year is {year} and your place of residence is {country}.\n\nQuestionnaire:\n{options}\n{none_option}: None of these\n{format_instructions}","description":"Survey prompt template. Defaults to the built-in template; override only for prompt experiments. survey_editable_lines patches single lines instead.","title":"Survey Prompt"},"target_behavior":{"default":"","description":"The behavior under study, for example 'choose a mobile phone to upgrade to'. Empty (default) lets the worker derive it from why_prompt.","title":"Target Behavior","type":"string"},"target_behavior_context":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Set true by the worker when a study context was derived from why_prompt. Ignored on input.","title":"Target Behavior Context"},"target_population":{"anyOf":[{"$ref":"#/components/schemas/TargetPopulation"},{"type":"null"}],"default":{},"description":"Demographic constraints that select US respondents. age and household_income are inclusive [low, high] ranges; the other keys are allowed-value lists. At least one constraint is required unless another population mode or population_preset is used. Omitting state draws from twelve representative states."},"tasks_per_respondent":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"description":"Choice tasks each respondent answered. Written by the worker into the run summary; ignored on input.","title":"Tasks Per Respondent"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"Display name of the run. Empty (default) lets the worker derive one from why_prompt.","title":"Title"},"token_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"description":"Model tokens consumed by the run. Written by the worker into the run summary; ignored on input.","title":"Token Count"},"total_number_of_tasks":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":0,"description":"Choice tasks in the realized design. Written by the worker into the run summary; ignored on input.","title":"Total Number Of Tasks"},"trait_prediction_llm_model":{"anyOf":[{"$ref":"#/components/schemas/LLMModel"},{"type":"null"}],"default":"databricks-claude-sonnet-4","description":"Model that predicts each respondent's values for the modeled population_traits. Default Databricks Claude Sonnet 3.7."},"use_api":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Legacy switch for how trait personas are generated on the linear-schema path (API generator when true). Default true. Operator knob; leave unset.","title":"Use Api"},"use_batching":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Not read by the worker; kept for payload compatibility. Respondent batching is always on.","title":"Use Batching"},"use_external_personas":{"default":false,"description":"Population mode: build respondents from the LinkedIn profile URLs in external_personas. Exactly one population mode may be set.","title":"Use External Personas","type":"boolean"},"use_halton_draws":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Fill an under-sized orthogonal array with Halton draws instead of Sobol. Default false. Engine-generated designs only.","title":"Use Halton Draws"},"use_multiprocessing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"Not read by the worker; kept for payload compatibility.","title":"Use Multiprocessing"},"use_population_group":{"default":false,"description":"Population mode: draw respondents from the named segment in population_group. Exactly one population mode may be set.","title":"Use Population Group","type":"boolean"},"use_preassigned_blocks":{"default":false,"description":"Assign choice tasks from the Block column of an uploaded respondent file; falls back to random blocks when the column is absent. Default false.","title":"Use Preassigned Blocks","type":"boolean"},"use_threading":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"Not read by the worker; kept for payload compatibility.","title":"Use Threading"},"user_uploaded_persona":{"default":false,"description":"Population mode: survey the respondents in the file at user_uploaded_persona_filelink instead of the synthetic population. Exactly one population mode may be set.","title":"User Uploaded Persona","type":"boolean"},"user_uploaded_persona_filelink":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"Storage key of the uploaded respondent parquet. Required when user_uploaded_persona is true.","title":"User Uploaded Persona Filelink"},"why_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"The research question. Every generated part of the study (attributes, levels, dependent variable, context) is derived from it. Required.","title":"Why Prompt"},"year":{"description":"Time context given to the design generator and respondents. Defaults to the current month and year.","title":"Year","type":"string"}},"title":"Experiment","type":"object"},"ExperimentAsyncResponse":{"properties":{"context_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Digest"},"context_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Revision"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"queue_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The queue this study was actually enqueued on, so the caller can see where their work went rather than inferring it from the `priority` they sent. Null when the experiment ran inline (DEBUG mode) or when the request failed before dispatch.","title":"Queue Name"},"wandb_run_id":{"title":"Wandb Run Id","type":"string"},"wandb_run_name":{"title":"Wandb Run Name","type":"string"}},"required":["wandb_run_id","wandb_run_name"],"title":"ExperimentAsyncResponse","type":"object"},"GenderEnum":{"enum":["Male","Female"],"title":"GenderEnum","type":"string"},"GroupLabel":{"enum":["Urban Singles","Suburban Families","Career-Oriented Professionals","Young College Students","Empty Nesters","Retired Widows/Widowers","Young Parents on a Budget","High-Income Dual-Earner Couples","Tech-Savvy Millennials","Blue-Collar Workers","Single Mothers","Older Retirees","Highly Educated Elites","Affluent Empty Nesters","Graduate Students","Large Suburban Families","Hispanic Professionals","Educated Single Women"],"title":"GroupLabel","type":"string"},"LLMModel":{"description":"Enum representing the llm model types used in the experiments.","enum":["azure-openai-gpt4","azure-openai-gpt4o-mini","azure-openai-gpt35","azure-openai-gpto3-mini","azure-openai-completions","sonar","databricks-sonnet4","databricks-claude-sonnet-4","databricks-claude-sonnet-4-5","databricks-claude-opus-5-5","databricks-gpt-5-4-mini","databricks-llama4-maverick","databricks-llama3.3-70B","databricks-llama3.3-405B","bedrock:xai.grok-4.3","bedrock:zai.glm-5","bedrock:moonshotai.kimi-k2.5","bedrock:qwen.qwen3-next-80b-a3b","bedrock:deepseek.v3.2","bedrock:openai.gpt-oss-120b-1:0","bedrock:us.meta.llama4-maverick-17b-instruct-v1:0","bedrock:meta.llama3-70b-instruct-v1:0","bedrock:google.gemma-3-27b-it","bedrock:mistral.mistral-large-3-675b-instruct","ensemble:bedrock-human-v1","ensemble:bedrock-human-v2","ensemble:bedrock-human-v3","ensemble:bedrock-human-v4","ensemble:bedrock-human-v5","ensemble:bedrock-human-v6","typesafe:jev-1.13.0","eevo:eevo-1"],"title":"LLMModel","type":"string"},"PopulationPreset":{"description":"Named US populations a caller can select instead of spelling out\ndemographic constraints. Each resolves to a TargetPopulation with at least\none real constraint, so the run takes the bounded marginals-then-sample\npath every constrained run takes (see Prepare_Population's guard on an\nall-empty target, which exists because an unconstrained run fans out over\nthe whole frame until the worker is killed).","enum":["us_general_adults"],"title":"PopulationPreset","type":"string"},"PopulationTraits":{"additionalProperties":true,"properties":{},"title":"PopulationTraits","type":"object"},"RacialGroupEnum":{"enum":["Mixed race","White","African American","Asian or Pacific Islander","Other race","American Indian or Alaska Native"],"title":"RacialGroupEnum","type":"string"},"SurveyResponseType":{"enum":["probabilistic","discrete"],"title":"SurveyResponseType","type":"string"},"TargetPopulation":{"properties":{"age":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"description":"Inclusive [low, high] age range in years, for example [18, 65].","title":"Age"},"education_level":{"anyOf":[{"items":{"$ref":"#/components/schemas/EducationLevelEnum"},"type":"array"},{"type":"null"}],"description":"Allowed education levels; a respondent matching any listed value is eligible.","title":"Education Level"},"gender":{"anyOf":[{"items":{"$ref":"#/components/schemas/GenderEnum"},"type":"array"},{"type":"null"}],"description":"Allowed genders; a respondent matching any listed value is eligible.","title":"Gender"},"household_income":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"description":"Inclusive [low, high] annual household income range in USD.","title":"Household Income"},"number_of_children":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChildrenEnum"},"type":"array"},{"type":"null"}],"description":"Allowed number-of-children buckets; a respondent matching any listed value is eligible.","title":"Number Of Children"},"racial_group":{"anyOf":[{"items":{"$ref":"#/components/schemas/RacialGroupEnum"},"type":"array"},{"type":"null"}],"description":"Allowed racial groups; a respondent matching any listed value is eligible.","title":"Racial Group"},"state":{"anyOf":[{"$ref":"#/components/schemas/USStatesEnum"},{"type":"null"}],"description":"Single US state to draw from. Omitted: twelve representative states."}},"title":"TargetPopulation","type":"object"},"TraitLevel":{"properties":{"id":{"title":"Id","type":"string"},"long_description":{"title":"Long Description","type":"string"},"measurement_type":{"title":"Measurement Type","type":"string"},"ordinal_rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ordinal Rank"},"set_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set Type"},"short_description":{"title":"Short Description","type":"string"},"type":{"title":"Type","type":"string"}},"required":["id","set_type","type","measurement_type","ordinal_rank","short_description","long_description"],"title":"TraitLevel","type":"object"},"USStatesEnum":{"enum":["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],"title":"USStatesEnum","type":"string"}},"securitySchemes":{"HTTPBearer":{"scheme":"bearer","type":"http"}}},"info":{"contact":{"email":"support@subconscious.ai","name":"Email the team","url":"https://docs.subconscious.ai/support/contact"},"description":"💕SuperEgo API powers Consulting and Product teams to design and run cost-effective, ethical, causal experiments. 🚀 Generative AI for Experimental Design. 👨‍🔬⚗️\n\n**Authentication.** Every endpoint takes a bearer token. Generate one at [app.subconscious.ai/settings](https://app.subconscious.ai/settings) → **Generate API Token**, then copy it from **Your Access Token**. Send it as `Authorization: Bearer <token>`. See the [authentication guide](https://docs.subconscious.ai/get-started/authentication).","license":{"name":"MIT","url":"https://github.com/Subconscious-ai/PoC/blob/main/LICENSE"},"termsOfService":"https://docs.subconscious.ai/support/terms-of-use","title":"SuperEgo","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/v1/experiments":{"post":{"description":"Starts an experiment asynchronously and returns a W&B run id to poll.\n\nSupply the research question and a supported population selection, then\nreview the design, response and reproducibility options in the request\nschema. The REST Experiment model and MCP's typed `advanced` object are\ndifferent contracts; not every REST option is exposed through MCP or the\nbrowser form.\n\n**Poll the returned run identity.** Normal execution queues the run;\ndebug mode can execute inline. A definite submission rejection returns\nan error. Keep polling `in-queue`, `running` and `unknown`; a missing W&B\nrecord or timed-out read is not a reason to submit another experiment.\nREST does not provide the MCP launch-idempotency protocol. For a failed\nor ambiguous launch, reconcile the original run before retrying.\n\n**`population_traits` do not select a population.** Traits add modeled\nattributes to respondents who were already selected by\n`target_population` (or another population mode). A request that sends\n`population_traits` with an empty or absent `target_population` is\nrejected with `422` before anything is queued or any model is called; the\nerror names the missing constraint (for example `age`, `gender`,\n`household_income`, `education_level`, `racial_group`,\n`number_of_children`, or `state`).\n\n**`check_for_continuous_variables` only affects engine-generated\ndesigns.** When `pre_cooked_attributes_and_levels_lookup` is supplied,\nthe submitted levels are used exactly as sent and the flag has no\neffect: nothing is reclassified as continuous and no replacement values\nare drawn. Omit the levels to let the engine generate the design if\ncontinuous inference is wanted.\n\n**`population_preset` is a stored population.** Send\n`population_preset: us_general_adults` instead of writing\n`target_population` by hand; it expands to adults aged 18 to 99 across the\ntwelve representative states. It may carry `population_traits`, but a\npreset next to `target_population`, `non_us_target_population`,\n`use_population_group`, `use_external_personas`, `use_nrg_population` or\n`user_uploaded_persona` is rejected with `422`, and an unknown preset name\nis rejected by schema validation.\n","operationId":"createExperiments","requestBody":{"content":{"application/json":{"example":{"experiment_type":"conjoint","is_private":false,"target_population":{"age":[25,45]},"why_prompt":"What factors drive consumer choice of electric vehicles?"},"schema":{"$ref":"#/components/schemas/Experiment"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"wandb_run_id":"a1b2c3d4","wandb_run_name":"eloquent-sunset-42"},"schema":{"$ref":"#/components/schemas/ExperimentAsyncResponse"}}},"description":"Successful Response"}},"security":[{"HTTPBearer":[]}],"summary":"Create an experiment","tags":["v1.experiments"]}},"/api/v1/runs/all":{"get":{"description":"Get all the user runs/experiments.\n\nWith `include_concepts=true`, the list also holds the user's own concept\ntests (not other users' public ones), newest first. Every row carries\n`experiment_type`: `conjoint` or `concept_testing`. Without the flag the\nresponse is unchanged.\n\nNote: This endpoint may take time for users with many experiments.\nConsider implementing pagination or caching for better performance.","operationId":"getRunsAll","parameters":[{"in":"query","name":"include_concepts","required":false,"schema":{"default":false,"title":"Include Concepts","type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"anyOf":[{"$ref":"#/components/schemas/CleanedRunResponse"},{"$ref":"#/components/schemas/ConceptRunResponse"}]},"title":"Response Get All User Runs Api V1 Runs All Get","type":"array"}}},"description":"Successful Response"}},"security":[{"HTTPBearer":[]}],"summary":"Get All User Runs","tags":["v1.runs"]}},"/api/v1/runs/{run_id}":{"delete":{"description":"Delete an experiment run by ID.\n\nArgs:\n    run_id (str): The unique identifier of the run to delete.\n\nReturns:\n    Response: Empty response with 204 status code on successful deletion.\n\nRaises:\n    HTTPException: For various error scenarios including unauthorized access, not found, or server errors.","operationId":"deleteRunsByRunId","parameters":[{"in":"path","name":"run_id","required":true,"schema":{"title":"Run Id","type":"string"}}],"responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}],"summary":"Delete an experiment run","tags":["v1.runs"]},"get":{"description":"Fetch details of a specific experiment run.\n\nParameters:\n- `run_id`: Unique identifier of the run.\n\nReturns:\nJSONResponse with:\n- `run_details`: Details of the requested run\n\nNotes:\n- Returns 403 if the run is private and not accessible to the user\n- Returns 404 (not 500) while the run has no W&B record yet, with a\n  `retryable` flag and a `Retry-After` header when the run is still live\n\nRaises:\n- HTTPException 404: If W&B has no record of the run\n- HTTPException 500: If fetching run details fails\n- HTTPException 503: If W&B did not answer. Carries `retryable: true` and\n  a `Retry-After` header; the run may exist, so ask again","operationId":"getRunsByRunId","parameters":[{"in":"path","name":"run_id","required":true,"schema":{"title":"Run Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"}},"security":[{"HTTPBearer":[]}],"summary":"Get Run","tags":["v1.runs"]}},"/api/v1/runs/{run_id}/status":{"get":{"description":"Returns the current state of a run.\n\n**A terminal state is only reported with positive evidence.** The status\nis resolved from the W&B run and then the Redis enqueue-time run-state\nrecord. SQS has no result backend. A run that neither store knows\nabout is reported as `unknown`, which is never terminal. Absence is not\nfailure: a run is invisible to W&B for the whole window between\nsubmission and the creation of its W&B run, queue wait included.\n\nNormalised states are `in-queue`, `running`, `unknown`, `finished`,\n`failed`, `crashed`, `killed`, and `lost`. A run is terminal in every\nstate except `in-queue`, `running`, and `unknown`.\n\n`lost` now means one specific thing: a submitted run whose record never\nreached a terminal state and is older than the six-hour grace window.\nA queued or running record within that window remains non-terminal.\n\n**Do not resubmit on a non-terminal status.** `in-queue`, `running`, and\n`unknown` all mean \"keep polling\". Resubmitting multiplies server-side\nruns of several hundred simulated respondents each.\n\n**Still true of `finished`:** a run can finish having produced no\nartifacts. A W&B `state` of `finished` whose `summary.status` is `failed`\nis reported here as `failed`, but check `logged_artifacts()` before\ntreating a `finished` run as usable.\n","operationId":"getRunsByRunIdStatus","parameters":[{"in":"path","name":"run_id","required":true,"schema":{"title":"Run Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"Successful Response"}},"security":[{"HTTPBearer":[]}],"summary":"Get run status","tags":["v1.runs"]}},"/api/v1/traits":{"get":{"description":"Returns the catalogue of persona traits. Review the trait descriptions\nand level labels before building an experiment's `population_traits`\ndictionary. That dictionary maps trait names to modeled values; a\ncatalogue ID alone is not a population-selection constraint.\n","operationId":"getTraits","responses":{"200":{"content":{"application/json":{"example":[{"id":"travel_frequency","long_description":"How often the respondent travels for leisure.","measurement_type":"ordinal","ordinal_rank":3,"set_type":"core","short_description":"Travel frequency","type":"trait"}],"schema":{"items":{"$ref":"#/components/schemas/TraitLevel"},"title":"Response Get Traits Api V1 Traits Get","type":"array"}}},"description":"Successful Response"}},"security":[{"HTTPBearer":[]}],"summary":"List available persona traits","tags":["v1.traits"]}}},"servers":[{"description":"Production","url":"https://api.subconscious.ai"}],"tags":[{"description":"🧪👨‍🔬⚗️Run a novel experiment using attributes, levels, traits, dependent variables, preambles, and personas and place results in a run.","name":"v1.experiments"},{"description":"**Why**. 🔬Causal factors that influence a person's decision. Output:Return a list of persona traits that are available to subconscious.ai users.","name":"v1.traits"},{"description":"📈Contains the experimental design + Experiment Results from WANDB.","name":"v1.runs"}]}