Skip to content
sinc-LLMBook a 15-minute call

How to Recover an OpenAI Background Job After a Missing Webhook

Recover a missing OpenAI background webhook by retrieving the saved response, interpreting its status, and checking delivery once.

On this page

By Mario Alexandre · November 29, 2026 · 3 min read

If an OpenAI background completion webhook is overdue, retrieve the response using the ID saved at submission. A completed response can take the same delivery path as a verified webhook. A response still in progress needs more time within your deadline. If the response ID is missing or retrieval fails, keep the job unresolved while you investigate. A missing event gives you no safe basis for resubmitting the original work.

Start from the submitted response ID

OpenAI's background guide instructs applications to save the response ID returned when they create a background response. OpenAI background mode guide

Add the ID to your durable job record alongside your application job ID, the project that submitted it, the submission time, and the expected completion window. Track the outcome of submission separately from delivery. A job with a response ID belongs in polling. A job without one belongs in submission reconciliation, using any durable acknowledgement your application captured. Give the sweeper a way to find jobs that reached submission with no saved response ID. This is the branch where a worker might have lost the connection after the API accepted the request.

OpenAI's background guide treats queued and in_progress as states in which the application can keep polling using the same response ID. OpenAI background mode guide

What retrieval shows Next action Evidence to retain
completed Validate the output and pass it to the shared delivery worker Response ID and destination receipt
queued or in_progress Schedule another read with bounded backoff and your job deadline Retrieved status and check time
failed, incomplete, or cancelled Inspect the terminal record and route it through the job's failure policy Status and any available failure detail
Retrieval error or missing ID Check submission evidence, project and credentials, then preserve an unresolved outcome if evidence runs out Error, attempt context, and the next owner

Avoid declaring a failure when your application stops polling. Record your local deadline and stop condition separately from the remote terminal status. If the response is unavailable later, preserve what you actually observed. The default completion window involves temporary storage, so a webhook retry horizon is a poor substitute for a retrieval deadline. OpenAI data controls OpenAI webhooks guide

When a known response ID comes back unavailable, check whether the retrieving credential is scoped to the submitting project's configuration and whether the stored ID matches the create response. Save the retrieval error with the time and stop treating the job as a normal success until an authoritative read or a destination receipt resolves it.

Make webhook and polling delivery converge

OpenAI recommends verifying that incoming webhook requests originated from OpenAI and documents SDK helpers that use the original request body and headers. OpenAI webhooks guide

OpenAI documents that duplicate webhook events can be deduplicated with the webhook-id header. OpenAI webhooks guide

After verification, correlate the event's response ID with the saved job. Accept it promptly after durable capture and hand off output processing. Polling can find that same response without a webhook ID. Use a second, application-owned delivery key for the action, such as the job ID joined with the destination and output version, and have both paths claim or reuse it. If a destination write returns an uncertain outcome, check the destination by its stable key before repeating the action.

In an illustrative job, response resp_demo_a belongs to job report_demo_a. The sweeper sees completed and the destination record shows the report arrived. A delayed webhook for resp_demo_a then enters the same delivery path, reads the existing receipt, and records the event without creating a second report. If the destination lacks a readback and the first worker's outcome is uncertain, send the job to reconciliation.

Work through both provider and destination state when you reconcile batch AI workflow delivery. A completed provider response tells you which output is available. The destination receipt tells you whether your user received it.