Skip to main content
Goal: Send the same request twice and receive the same run. Why this helps: a response can be lost even when Millwork accepted the request. Reusing the same request key avoids starting and paying for the work again. You are done when: both responses contain the same execution_id.

Before you begin

Set MILLWORK_API_URL and MILLWORK_API_KEY as shown in Check your setup. This recipe uses Echo, so it does not call an AI provider.

Send the same request twice

Expected result: the final command prints true.

If it fails

What this confirms

The same key and same body return the same accepted work. It does not confirm that the work succeeded. Continue to poll the returned run ID until it reaches a final status.