Preflight Task For Agent
Preflight one statically bounded external-agent workflow batch.
HTTPBearerAuthorizationBearer <token>application/json- body
Agent-only workflow request with a hard fanout/cost boundary.
The UI keeps using :class:JobStart and its live, tenant-configured import
cap (currently 250 by default). External agents receive a smaller static
contract so one tool call cannot fan out arbitrarily before service-level
quota and ownership checks run.
task_blueprint_id?integer|nullstore_id?integer|nullimport_profile_id?|Optional saved Import Profile (GET /settings/import-profiles) to expand into this batch's store, workflow, image output, and per-row Shopify options (including metafield_set_id and productLibraryFolderIds). Precedence: an explicit store_id/task_blueprint_id/image_output on this request always wins over the profile's; omitting any of those three takes the profile's value instead; an explicit store_id=null keeps the request targeting the product library and drops the profile's store entirely, even if the profile names one. Per-row fields (e.g. tags, rehostDescriptionImages, setActive/shopify_status, metafield_set_id, productLibraryFolderIds) the profile carries apply only to a row that does not already set that field itself.
image_output?|Optional generated-image output override for the whole run. Omit or send an empty object to inherit the destination store.
input_data*array<>Workflow input rows for one bounded agent batch (1-100).
1 <= items <= 100Successful Response
application/json- response
A preflight check for a task.
quota_required*Quota Requiredquota_available*Quota Availablequota_after_task*Quota After Taskoperation_possible*Operation Possiblebreakdown?array<>curl -X POST 'https://app.copyhero.app/api/v1/tasks/agent-preflight' \ -H 'Content-Type: application/json' \ -d '{ "input_data": [ {} ]}'{ "quota_required": 0, "quota_available": 0, "quota_after_task": 0, "operation_possible": true, "breakdown": [ { "reason": "string", "credits": 0, "count": 0 } ]}Get Tasks By Batch Id GET
Get optimized task batch details with job statistics grouped by TaskBlueprintJob. Returns aggregated job counts for each TaskBlueprintJob type within the batch.
Read Task GET
Get one workflow run (task): status, failure reason, product and store ids. `task_id` is the id a workflow.completed or workflow.failed webhook carries.