Authorizations
API key for authentication. Obtain from your DimRed dashboard. The organization context is automatically derived from the API key.
Body
Project identifier
Dataset identifier for evaluation
Initial prompt identifier to use or optimize
Name of the model (e.g., 'gpt-4o-mini', 'claude-3-5-sonnet')
LLM provider
openai, anthropic, openrouter Metric identifier for optimization (required unless mode is 'inference')
Number of optimization iterations
x >= 1Whether to include all project metrics in evaluation
Workflow mode: tune (optimize prompt), evaluate (single run), inference (no metrics)
tune, evaluate, inference Additional configuration (e.g., include_icl, icl_session_id)
Response
Workflow created and started successfully
Unique identifier for the workflow
Project identifier
Dataset identifier
Initial prompt identifier
Metric identifier for evaluation
Name of the model (e.g., 'gpt-4o-mini', 'claude-3-5-sonnet')
LLM provider (e.g., 'openai', 'anthropic')
Deprecated field
Deprecated field
Number of optimization iterations
Current status of the workflow
queued, in_progress, completed, failed, cancelled Background task identifier
Performance metrics and results
Error details if failed
Additional configuration (e.g., mode, include_icl, icl_session_id)
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
ISO 8601 timestamp when workflow started
ISO 8601 timestamp when workflow completed
Whether the workflow has been billed
Project name (denormalized)