x-api-key header.
Request
_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:
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 acallback_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.
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 theminicor.teach envelope is a teaching call, not a live run. See The teach envelope.