POST /api/policy-optimization/online/jobs
Authentication: Bearer token via Authorization: Bearer $SYNTH_API_KEY
Request
GEPA-Specific Parameters
| Parameter | Type | Description |
|---|---|---|
gepa.population.num_generations | int | Number of evolutionary generations |
gepa.population.children_per_generation | int | Candidates generated per generation |
gepa.rollout.budget | int | Total rollout budget for optimization |
Response
Polling for Completion
UseGET /api/policy-optimization/online/jobs/{job_id} to check status:
Notes
- GEPA requires the backend to call your task app, so:
- Task app must be publicly accessible (via tunnel for local development)
ENVIRONMENT_API_KEYmust be registered with the backend
- See the GEPA walkthrough for a complete example