Create an experiment
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.
Request
Create and asynchronously run an experiment. Provide exactly one scoring path: evaluator_ids/evaluator_slugs or evaluator_workflow_ids.
Preferred evaluator identifiers for scoring. Mutually exclusive with evaluator_workflow_ids.
Backward-compatible alias for evaluator_ids. If both are provided, evaluator_ids takes precedence.
WorkflowVersion IDs configured for eval-only scoring. Mutually exclusive with evaluator IDs/slugs.
Optional client-provided experiment ID. The backend generates one when omitted.
Response
Backward-compatible evaluator identifiers stored by the backend.
Eval-only workflow versions used for scoring.