Request
Path parameters
taskId— UUID for the saved task.
Body fields
inputs(object, optional) — Key/value overrides that map to the task’s declared inputs. Any keys omitted fall back to defaults defined in the task.clientRequestId(string, optional) — Supply a unique value per task to make the request idempotent. Repeating the same value returns200 OKwith the previously created run.
Example
Responses
202 Accepted— The run was created and queued for execution. The payload contains the run resource withstatus: "PENDING".200 OK— A run with the suppliedclientRequestIdalready exists; the response returns the existing run without enqueuing another execution.400 Bad Request— Invalid task ID or payload shape.401 Unauthorized— Missing or malformed API key.402 Payment Required— Your organization exhausted its run allotment; the response includes usage details.404 Not Found— The task does not exist or is not accessible to the current organization.503 Service Unavailable— A transient queue error prevented dispatch; retry with exponential backoff.
GET /public/v1/task-runs/{runId} or subscribe to
task-run.* webhooks to follow execution.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
UUID of the Komos task to execute.
Body
application/json
Response
Existing run returned because the clientRequestId was reused.