Check that an accepted AI action actually finished
An HTTP 202 Accepted response means the request was accepted for processing; it does not mean processing is complete. Save the operation ID, check the status endpoint or approved callback, and verify the expected business result before the AI employee reports completion.
What you need
For a workflow owner testing an AI employee that starts a long-running task through an API or background job.
- A redacted test action and its operation or job ID.
- The provider’s documented status endpoint or callback.
- The business record that proves the requested action finished.
Keep the customer-facing status tied to the provider’s final operation result.
- Submit a safe test request and record the initial HTTP status and operation ID.
- If the response is 202, label the action as accepted or pending. Do not run a dependent action that requires completion.
- Poll the documented status resource or wait for the approved callback until it reports a terminal result. Use the provider’s retry interval and timeout rules.
- Read the business record or output to confirm the requested change occurred. Tell the user it is complete only after both the operation and postcondition pass.
The request was queued, then failed
Synthetic API trace. The operation endpoint returns a state for the same job ID.
Scroll the table to see all columns.
| Time | Provider response | Business check | Safe status |
|---|---|---|---|
| 10:00 | 202 Accepted; job J-104 | No change visible | Accepted, pending |
| 10:01 | J-104: running | No change visible | Still working |
| 10:03 | J-104: failed | No change visible | Failed; route to review |
The initial 202 is not completion. Since the job later failed and no record changed, the AI employee must not tell the user the action is done.
What to hand over
A short action trace distinguishing accepted, running, completed and failed, with the final record used as proof.
Limitation. Some APIs provide no status endpoint or callback. In that case, the workflow needs a different completion signal; HTTP acceptance alone cannot prove success.
Next step
Bring a redacted API response, operation ID and the business record that confirms the final result.
Related guides
Sources
- IETF RFC 9110: HTTP 202 Accepted (accessed 24 November 2026)
- Microsoft Learn: Asynchronous request-reply pattern (accessed 24 November 2026)
- AI Agents practitioner discussion: evidence before completion (accessed 24 November 2026)