Generate and retrieve artifacts
Create a Technical Session first, then run a verified workflow action against its saved context.
WORKFLOW_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
"$IVORLEAF_API_BASE_URL/v1/history/$SESSION_ID/actions/implementation_plan" \
--header "Authorization: Bearer $IVORLEAF_API_KEY")
ARTIFACT_ID=$(printf '%s' "$WORKFLOW_RESPONSE" | jq -r '.artifact.artifact_id')
implementation_plan is a verified member of the workflow catalog and prepares the canonical implementation package. It does not execute the plan.
Retrieve the artifact after checking that ARTIFACT_ID is present:
curl --silent --show-error --fail-with-body \
"$IVORLEAF_API_BASE_URL/v1/history/$SESSION_ID/artifacts/$ARTIFACT_ID" \
--header "Authorization: Bearer $IVORLEAF_API_KEY"
Inspect package validation, assumptions, unknowns, blocking_unknowns, verification instructions, rollback instructions, and preparation status before using its content.