Background Mode Available for the OCI Responses API

The OCI Responses API now supports background mode for requests that might take longer than an application wants to keep the original connection open. Background mode continues processing the response asynchronously and lets the application retrieve its status and result by using the response ID.

Asynchronous execution

Set background to true when creating a response. The request can continue running after the initial API call returns.

Status and lifecycle management

Retrieve the response by its ID while its status is queued or in_progress. After processing ends, retrieve the output or inspect the final status. You can also cancel a background response that hasn't finished.

Resumable streaming

Create a response with both background=true and stream=true to stream events while retaining the ability to reconnect. If the stream is interrupted, resume after the last received event by using its sequence_number.

Note

Background execution requires temporary response storage to support asynchronous processing and retrieval, including when store=false. Response data remains within OCI.

For endpoint paths, examples, and usage considerations, see Run a Response in the Background.