Docs / Direct-plan API preview / Start optimisation
Direct-plan API preview
Start optimisation
Queue a background solve for a saved plan.
Proposed public API. The direct submission contract is a design proposal. Its examples are illustrative.
Request
Path parameter planId is the UUID returned by plan creation. The proposal uses an empty JSON object to optimise the saved plan snapshot. The current implementation requires a prepared solve body and edit token instead; the proposed simplified request requires backend changes.
API_BASE=https://api.coordigator.io
curl --fail-with-body -sS -X POST "$API_BASE/plans/$PLAN_ID/solves" \
-H "Authorization: Bearer $COORDIGATOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'202 Accepted
{
"runId": "22222222-2222-4222-8222-222222222222",
"status": "queued",
"createdAt": "2026-12-01T08:00:00Z",
"expiresAt": "2026-12-02T08:00:00Z"
}Save the runId for later retrieval. The client can disconnect once the background run has been accepted.
Retries
The current implementation supports a solve idempotency key. The direct submission contract must define how callers provide that key and recover after an ambiguous response. Do not automatically retry unsafe writes.
