POST /api/policy-optimization/online/jobs
Authentication: Bearer token via Authorization: Bearer $SYNTH_API_KEY
Request
The request body is a policy optimization config object. The API supports both:- a newer
policy_optimizationsection, and - a legacy
prompt_learningsection for backward compatibility.
Supported Algorithms
- GEPA: Genetic Evolution of Prompt Architectures - Evolutionary algorithm for population-based search
- MIPRO: Multi-prompt Instruction Proposal Optimizer - Systematic instruction proposal and evaluation
Response
The response returns a job identifier and initial status.Status Codes
200/201— Job created successfully400— Invalid request (missing required fields)401— Authentication failed
Notes
- For the canonical config shape (including overrides and LocalAPI health checks), prefer using the Python SDK:
synth_ai.sdk.optimization.policy. - If you need to integrate at the HTTP layer, use the SDK docstrings as the source of truth for config fields.
- See GEPA API Reference for GEPA-specific parameters
- See MIPRO Online API Reference for online mode parameters
- See MIPRO Offline API Reference for offline mode parameters