Result
Fetch a result only after a live run reachescompleted:
404 means the run is not complete, produced no result, or the result
expired. When retention_expires_at contains a date, that is the result’s
expiry time. If it is null, the API has not reported an automatic expiry.
Inspect the model requested and the model reported by the provider:
requested is what Millwork asked for. resolved is what the provider or
gateway reported.
Receipt
What to store
- Store the result only as long as your application needs it.
- Keep the receipt when you need a record without the prompt or model output.
- Keep the run ID (
execution_id) so you can connect status, result, receipt, and support context.
Final outcomes
A run can end ascompleted, failed, cancelled, or expired. Request
the result only after completed. For every other final status, read the run,
events, and receipt to see what happened.
No result? Follow the recovery steps in
Errors and retries.