Responses schemas

The full schema and model definitions referenced by the Responses endpoints. Each endpoint page links here for the detailed shape of its request and response objects.

Schemas

Annotation

Annotation attached to a span of generated output text, such as a citation or file reference.

Type: FileCitationBody | UrlCitationBody | FilePath

Cancel Response Response

The response object returned by the cancel endpoint. Only the lifecycle fields the server populates on cancel are present, and the output array is always empty.

FieldTypeRequiredDescription
idstringYesIdentifier for this response.
objectenum ('response')YesObject type; always response.
statusenum ('completed', 'failed', 'in_progress', 'cancelled', 'queued', 'incomplete')YesThe status of the response generation. After a successful cancel of an in-progress response this is cancelled; for an already-terminal response the current terminal status is returned.
modelstringYesModel ID used to generate the response.
backgroundbooleanYesWhether the response was run in the background.
outputarray of OutputItemYesAn array of content items generated by the model. Always empty on a cancelled response.

Click Button Type

Type: enum ('left', 'right', 'wheel', 'back', 'forward')

Click Param

A click action.

FieldTypeRequiredDescription
typeenum ('click')YesSpecifies the event type. For a click action, this property is always click. (default: click)
buttonClickButtonTypeYesIndicates which mouse button was pressed during the click. One of left, right, wheel, back, or forward.
xintegerYesThe x-coordinate where the click occurred.
yintegerYesThe y-coordinate where the click occurred.

Compaction Body

A compaction item produced when earlier conversation context is compacted into an encrypted summary.

FieldTypeRequiredDescription
typeenum ('compaction')YesObject type; always compaction. (default: compaction)
idstringYesIdentifier for the compaction item.
encrypted_contentstringYesEncrypted content for stateless multi-turn replay.
created_bystringNoIdentifier for the actor that created the item.

Compaction Summary Item Param

A compaction item produced when earlier conversation context is compacted into an encrypted summary.

FieldTypeRequiredDescription
idstring | nullNo
typeenum ('compaction')YesObject type; always compaction. (default: compaction)
encrypted_contentstringYesEncrypted content for stateless multi-turn replay. (maxLength: 10485760)

Computer Action

Type: ClickParam | DoubleClickAction | DragParam | KeyPressAction | MoveParam | ScreenshotParam | ScrollParam | TypeParam | WaitParam

Computer Action List

Flattened batched actions for computer_use. Each action includes an type discriminator and action-specific fields.

Type: array of ComputerAction

Computer Call Output Item Param

The output of a computer tool call.

FieldTypeRequiredDescription
idstring | nullNo
call_idstringYesThe ID of the computer tool call that produced the output. (minLength: 1, maxLength: 64)
typeenum ('computer_call_output')YesThe type of the computer tool call output. Always computer_call_output. (default: computer_call_output)
outputComputerScreenshotImageYes
acknowledged_safety_checksarray of ComputerCallSafetyCheckParam | nullNo
statusFunctionCallItemStatus | nullNo

Computer Call Output Status

Type: enum ('completed', 'incomplete', 'failed')

Computer Call Safety Check Param

A pending safety check for the computer call.

FieldTypeRequiredDescription
idstringYesThe ID of the pending safety check.
codestring | nullNo
messagestring | nullNo

Computer Screenshot Image

A computer screenshot image used with the computer use tool.

FieldTypeRequiredDescription
typeenum ('computer_screenshot')YesSpecifies the event type. For a computer screenshot, this property is always set to computer_screenshot. (default: computer_screenshot)
image_urlstring (uri)NoThe URL of the screenshot image.
file_idstringNoThe identifier of an uploaded file that contains the screenshot.
detailenum ('original')NoThe detail level of the screenshot. Always original when provided.

Computer Tool

A tool that controls a virtual computer.

FieldTypeRequiredDescription
typeenum ('computer')YesThe type of the computer tool. Always computer. (default: computer)

Computer Tool Call

A tool call to a computer use tool. See the computer use guide for more information.

FieldTypeRequiredDescription
typeenum ('computer_call')YesThe type of the computer call. Always computer_call. (default: computer_call)
idstringYesThe unique ID of the computer call.
call_idstringYesAn identifier used when responding to the tool call with output.
actionComputerActionNo
actionsComputerActionListNo
pending_safety_checksarray of ComputerCallSafetyCheckParamYesThe pending safety checks for the computer call.
meta_safety_replay_receiptstringNoAn opaque Meta wire extension containing a time-bounded receipt for the accepted native-computer safety replay prefix through this call. Stateless clients must copy it unchanged from response.output into the corresponding item under input on the next request; the matching call output still requires a fresh acknowledgement. (minLength: 1, maxLength: 8192)
statusenum ('in_progress', 'completed', 'incomplete')YesItem status. One of in_progress, completed, or incomplete. Populated when items are returned via API.

Computer Tool Call Output

The output of a computer tool call.

FieldTypeRequiredDescription
typeenum ('computer_call_output')YesThe type of the computer tool call output. Always computer_call_output. (default: computer_call_output)
idstringNoThe ID of the computer tool call output.
call_idstringYesThe ID of the computer tool call that produced the output.
acknowledged_safety_checksarray of ComputerCallSafetyCheckParamNoThe safety checks reported by the API that have been acknowledged by the developer.
outputComputerScreenshotImageYes
statusenum ('in_progress', 'completed', 'incomplete')NoThe status of the message input. One of in_progress, completed, or incomplete. Populated when input items are returned via API.

Computer Tool Call Output Resource

FieldTypeRequiredDescription
typeenum ('computer_call_output')YesThe type of the computer tool call output. Always computer_call_output. (default: computer_call_output)
idstringYesThe unique ID of the computer call tool output.
call_idstringYesThe ID of the computer tool call that produced the output.
acknowledged_safety_checksarray of ComputerCallSafetyCheckParamNoThe safety checks reported by the API that have been acknowledged by the developer.
outputComputerScreenshotImageYes
statusComputerCallOutputStatusYesThe status of the message input. One of in_progress, completed, or incomplete. Populated when input items are returned via API.
created_bystringNoIdentifier for the actor that created the item.

Context Management Param

FieldTypeRequiredDescription
typestringYesContext-management entry type; only compaction is currently supported.
compact_thresholdinteger | nullNo

Conversation-2

The conversation this response belonged to. Its input and output items were added to that conversation automatically.

FieldTypeRequiredDescription
idstringYesIdentifier of the conversation this response belongs to.

Coord Param

An x/y coordinate pair, e.g. { x: 100, y: 200 }.

FieldTypeRequiredDescription
xintegerYesThe x-coordinate.
yintegerYesThe y-coordinate.

Create Model Response Properties

FieldTypeRequiredDescription
metadataMetadataNo
top_logprobsintegerNoAn integer between 0 and 20 giving the number of top alternative tokens to return at each position, each with its log probability. (minimum: 0, maximum: 20)
temperaturenumber | nullNo
top_pnumber | nullNo
userstringNoBeing replaced by safety_identifier and prompt_cache_key; use prompt_cache_key to retain caching benefits. A stable end-user identifier used to improve cache hit rates and help detect abuse.
safety_identifierstringNoA stable identifier that helps detect users who may be violating usage policies. Use a string that uniquely identifies each user, up to 64 characters; hash a username or email so you do not send identifying information. (maxLength: 64)
prompt_cache_keystringNoGroups similar requests to improve cache hit rates. Replaces the user field.
service_tierServiceTierNo
prompt_cache_retentionenum ('in_memory', '24h') | nullNo

Create Response

FieldTypeRequiredDescription
metadataMetadataNo
top_logprobsintegerNoAn integer between 0 and 20 giving the number of top alternative tokens to return at each position, each with its log probability. (minimum: 0, maximum: 20)
temperaturenumber | nullNo
top_pnumber | nullNo
userstringNoBeing replaced by safety_identifier and prompt_cache_key; use prompt_cache_key to retain caching benefits. A stable end-user identifier used to improve cache hit rates and help detect abuse.
safety_identifierstringNoA stable identifier that helps detect users who may be violating usage policies. Use a string that uniquely identifies each user, up to 64 characters; hash a username or email so you do not send identifying information. (maxLength: 64)
prompt_cache_keystringNoGroups similar requests to improve cache hit rates. Replaces the user field.
service_tierServiceTierNo
prompt_cache_retentionenum ('in_memory', '24h') | nullNo
previous_response_idstring | nullNo
modelstringNoID of the model used to generate the response.
reasoningReasoning | nullNo
backgroundboolean | nullNo
max_tool_callsinteger | nullNo
textResponseTextParamNo
toolsToolsArrayNo
tool_choiceToolChoiceParamNo
promptPromptNo
truncationenum ('auto', 'disabled') | nullNo
frequency_penaltynumberNoA number between -2.0 and 2.0. Positive values discourage the model from repeating tokens it has already used often, reducing verbatim repetition. (minimum: -2, maximum: 2, default: 0)
presence_penaltynumberNoA number between -2.0 and 2.0. Positive values discourage the model from reusing tokens that have already appeared, encouraging it to introduce new topics. (minimum: -2, maximum: 2, default: 0)
client_metadataobject | nullNo
inputInputParamNo
includearray of IncludeEnum | nullNo
parallel_tool_callsboolean | nullNo
storeboolean | nullNo
instructionsstring | nullNo
streamboolean | nullNo
stream_optionsResponseStreamOptionsNo
context_managementarray of ContextManagementParam | nullNo
max_output_tokensinteger | nullNo

Delete Response Response

Returned by the delete-response endpoint to confirm a response was deleted.

FieldTypeRequiredDescription
idstringYesIdentifier of the deleted response.
objectenum ('response.deleted')YesObject type; always response.deleted.
deletedbooleanYesAlways true when the response was deleted.

Detail Enum

Type: enum ('low', 'high', 'auto', 'original')

Double Click Action

A double click action.

FieldTypeRequiredDescription
typeenum ('double_click')YesSpecifies the event type. For a double click action, this property is always set to double_click. (default: double_click)
xintegerYesThe x-coordinate where the double click occurred.
yintegerYesThe y-coordinate where the double click occurred.

Drag Param

A drag action.

FieldTypeRequiredDescription
typeenum ('drag')YesSpecifies the event type. For a drag action, this property is always set to drag. (default: drag)
patharray of CoordParamYesAn array of coordinates representing the path of the drag action. Coordinates will appear as an array of objects, eg [ { x: 100, y: 200 }, { x: 200, y: 300 } ]

Easy Input Message

A message in a Responses input or replayed history. The developer and system roles carry instructions (developer takes precedence); user carries the caller's prompt; assistant replays prior model output.

FieldTypeRequiredDescription
roleenum ('user', 'assistant', 'system', 'developer')YesRole of the message author. One of user, assistant, system, or developer.
contentstring | InputMessageContentListYesMessage content. Either plain text or an array of content parts (text, image, file, or video). Can replay previous assistant output.
phaseMessagePhase | nullNo
typeenum ('message')NoObject type; always message.

Empty Model Param

Type: object

File Citation Body

Citation that points to an uploaded file used to ground the response.

FieldTypeRequiredDescription
typeenum ('file_citation')YesAnnotation type; always file_citation. (default: file_citation)
file_idstringYesIdentifier of the cited file.
indexintegerYesPosition of the cited file in the list of files.
filenamestringYesName of the cited file.

File Detail Enum

Type: enum ('low', 'high')

File Input Detail

Type: enum ('low', 'high')

File Path

File path annotation attached to a span of output text.

FieldTypeRequiredDescription
typeenum ('file_path')YesAnnotation type; always file_path.
file_idstringYesIdentifier of the referenced file.
indexintegerYesPosition of the referenced file in the list of files.

Function And Custom Tool Call Output

Type: InputTextContent | InputImageContent | InputFileContent

Function Call Item Status

Type: enum ('in_progress', 'completed', 'incomplete')

Function Call Output Content List Param

The function tool call output as content parts (text, image, or file).

Type: array of InputTextContentParam | InputImageContentParamAutoParam | InputFileContentParam

Function Call Output Item Param

The output your code returns for a function tool call.

FieldTypeRequiredDescription
idstring | nullNo
call_idstringYesIdentifier of the function tool call this output answers. (minLength: 1, maxLength: 64)
typeenum ('function_call_output')YesItem type; always function_call_output. (default: function_call_output)