Skip to main content
Every live job is an HTTP endpoint at its trigger URL, shown on the job page. All requests carry your API key in the x-api-key header.

Request

Jobs can be registered on any HTTP method. The job’s input is the merge of query parameters and the JSON body; if a key appears in both, the body wins. Request metadata (method, path, path parameters, headers) is available to the job under _http, so a job can read a path parameter or a header when it was taught to.

Synchronous response

By default the connection holds until the run finishes. The body is the job’s output as structured JSON.

Asynchronous execution

Add ?async=1 to the URL, or send the header x-job-async: true. The call returns 202 immediately:
resultPath is relative to the host; appended to it, it resolves to the /_executions/:id path under your trigger URL. Poll it with the same API key:
The response reports the execution’s status (running, then a terminal state) and, once done, the job’s output, the same body a synchronous call would have returned.

Status webhooks

Polling tells you where a run stands when you ask. Webhooks tell you the moment it changes. Add a callback_url query parameter when you execute an automation and Minicor POSTs a JSON event to that URL as the run progresses: Step events carry the step’s name, its position in the run (executionOrder of totalSteps), its status, and its result. The completion event carries the final status, the result, and a link to the replay.
Deliveries are fire-and-forget: a failed delivery is retried once and never blocks or slows the run. The callback URL must be publicly reachable over HTTP or HTTPS. Webhooks fire per automation execution. For a job called at its trigger URL, follow progress by polling the execution’s result path, which moves from queued to running to a terminal status with done: true.

Reserved paths

A few paths on your trigger host are reserved for introspection: Everything except the OpenAPI document requires the API key.

Teaching over the same endpoint

A call whose body includes the minicor.teach envelope is a teaching call, not a live run. See The teach envelope.