API Reference
Import tasks and job templates from NDJSON bundle
/api/import
Accepts a newline-delimited JSON bundle in the request body. Streams an NDJSON response: one { "kind": "result", "result": ... } line per imported item (as it is processed), then a final { "kind": "summary", ... } line with full counts. Optional action filters which result lines are emitted; the summary always covers every record. Requires admin or superadmin role.
Operation IDimportBundle
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Query parameters
modestringconflict_policystringdry_runbooleanvalidate_onlybooleanarchived_task_policystringnormalize_namesbooleanactionstringOnly emit result lines with this action (summary is always full)
Request body
This request body is required.
Content typeapplication/x-ndjson
requeststringContent typetext/plain
requeststringSuccess response body
200NDJSON stream of result lines followed by a summary line
NDJSON stream of result lines followed by a summary line
Content typeapplication/x-ndjson
responseobject | object & BundleImportSummaryOne NDJSON line from POST /api/import. Result lines stream as each record is processed; a final summary line always closes the stream.
One of
One of 1object2 properties
kindstringrequiredresultobjectrequired7 properties
kindstringnamestringactionstringfrom_versionintegerto_versionintegermessagestringvalidationobjectAdditional properties are allowed.
One of 2object6 properties
kindstringrequiredcreatedintegerrequiredupdatedintegerrequiredskippedintegerrequiredunchangedintegerrequirederrorsintegerrequiredError responses
400Validation or parse error
Validation or parse error
Content typeapplication/json
responseErrorResponse