POST/v1/test-runs

Simulate 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 key

Headers

Idempotency-Keystringmax length 255

Up 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 1
itemIdsarray of stringmin items 1max items 500
outcomeenumdefault "COMPLETED"
COMPLETEDFAILED
limitintegermin 1max 500default 100

Returns

5 fields of the 200 answer
idstringrequired
outcomeenumrequired
COMPLETEDFAILED
countsobjectrequired
4 fields
completedintegerrequired
failedintegerrequired
suppressedintegerrequired
skippedintegerrequired
itemsarray of objectsrequired
2 fields
idstringrequired
statusenumrequired
NEEDS_ATTENTIONSUPPRESSEDHELDPENDING_APPROVALREADYSCHEDULED_FOR_RUNIN_PRODUCTIONCOMPLETEDFAILEDCANCELLEDRETURNEDNOT_SENT
skippedarray of objectsrequired
3 fields
idstringrequired
statusenum or nullrequired
NEEDS_ATTENTIONSUPPRESSEDHELDPENDING_APPROVALREADYSCHEDULED_FOR_RUNIN_PRODUCTIONCOMPLETEDFAILEDCANCELLEDRETURNEDNOT_SENT
reasonenumrequired
not_foundnot_readypostflow_paused

Responses

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)