POST
/v1/test-runsSimulate a production run for test items
Moves READY test items (of the organisation, of one Postflow, or the listed ids) through SCHEDULED_FOR_RUN, IN_PRODUCTION, the carrier handoff and COMPLETED (or FAILED with outcome FAILED) in one call, so webhook handlers receive the full sequence. Nothing is printed, charged or handed to a carrier. Test keys and portal members only; live keys are refused.
Scope
items.writeIdempotent with a keyHeaders
Idempotency-Keystringmax length 255Up to 255 characters, scoped to the organisation and the endpoint, kept for 24 hours: a repeat with the same body replays the stored response with Idempotent-Replayed: true (API-004).
Body
postflowIdstringmin length 1itemIdsarray of stringmin items 1max items 500outcomeenumdefault "COMPLETED"COMPLETEDFAILEDlimitintegermin 1max 500default 100Returns
5 fields of the 200 answer
idstringrequiredoutcomeenumrequiredCOMPLETEDFAILEDcountsobjectrequired4 fields
completedintegerrequiredfailedintegerrequiredsuppressedintegerrequiredskippedintegerrequireditemsarray of objectsrequired2 fields
idstringrequiredstatusenumrequiredNEEDS_ATTENTIONSUPPRESSEDHELDPENDING_APPROVALREADYSCHEDULED_FOR_RUNIN_PRODUCTIONCOMPLETEDFAILEDCANCELLEDRETURNEDNOT_SENTskippedarray of objectsrequired3 fields
idstringrequiredstatusenum or nullrequiredNEEDS_ATTENTIONSUPPRESSEDHELDPENDING_APPROVALREADYSCHEDULED_FOR_RUNIN_PRODUCTIONCOMPLETEDFAILEDCANCELLEDRETURNEDNOT_SENTreasonenumrequirednot_foundnot_readypostflow_pausedResponses
200Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
409A request with this Idempotency-Key is still in progress (idempotency_in_progress)
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)