Validation API
Validate Experiment
POST /validateValidate an experiment specification without submitting it.
Request Body
Same format as POST /experiments.
Response
{
"valid": true,
"errors": [],
"warnings": [
{
"path": "protocol.replicates.biological_replicates",
"code": "low_replicates",
"message": "2 biological replicates may not provide sufficient statistical power",
"suggestion": "Consider 3+ replicates for publication-quality results"
}
],
"safety_flags": []
}Error Codes
| Code | Description |
|---|---|
missing_required | Required field is missing |
invalid_value | Value is invalid for the field type |
invalid_experiment_type | Unknown experiment type |
safety_violation | Experiment violates safety guidelines |
Safety Flags
| Flag | Description |
|---|---|
bsl_level_exceeded | BSL level above supported (BSL-3+) |
controlled_substance | Involves controlled substances |
human_subjects | Involves human subjects |
safety_rejected | Rejected for safety reasons |
Validate Hypothesis
POST /validate/hypothesisValidate just the hypothesis section.
Request Body
{
"statement": "Compound X inhibits E. coli growth with MIC ≤ 32 μg/mL",
"null_hypothesis": "Compound X has no antibacterial activity",
"rationale": "Based on structural similarity to known antibiotics"
}Response
{
"valid": true,
"errors": [],
"suggestions": [
"Consider specifying the E. coli strain (e.g., ATCC 25922)"
]
}Get Cost Estimate
POST /estimateGet cost and turnaround estimates for an experiment.
Request Body
Same format as POST /experiments (can be partial).
Response
{
"estimated_cost_usd": {
"low": 200,
"typical": 300,
"high": 400
},
"estimated_turnaround_days": {
"standard": 14,
"expedited": 7
},
"cost_breakdown": {
"materials": 90,
"labor": 120,
"equipment": 30,
"platform_fee": 60,
"privacy_premium": 0
},
"operator_availability": "high"
}Operator Availability
| Level | Meaning |
|---|---|
high | Many qualified operators available |
medium | Some operators available |
low | Few operators available, may take longer |
none | No operators currently match requirements |