Pular para o conteúdo principal
GET
Guia relacionado: guia da Responses API. Consulte o guia da Responses API para um passo a passo com exemplos.
Recupera uma resposta criada anteriormente pelo seu ID. A resposta precisa ter sido criada com store: true (o padrão).

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parâmetros de caminho

response_id
string
obrigatório

The ID of the response to retrieve

Resposta

Response retrieved successfully.

background
boolean
obrigatório
completed_at
integer<int64> | null
obrigatório
created_at
integer<int64>
obrigatório
error
object | null
obrigatório
frequency_penalty
number<double>
obrigatório
id
string
obrigatório
incomplete_details
object | null
obrigatório
input
any[] | null
obrigatório

Always null. Retained for compatibility with older SDKs; input content is not returned.

instructions
string | null
obrigatório
max_output_tokens
integer<int64> | null
obrigatório
max_tool_calls
integer<int64> | null
obrigatório
metadata
object
obrigatório

Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string>).

model
string
obrigatório
object
string
obrigatório

Always "response"

output
any[] | null
obrigatório

Array of output items (messages, function calls, reasoning, etc.)

parallel_tool_calls
boolean
obrigatório
presence_penalty
number<double>
obrigatório
previous_response_id
string | null
obrigatório
prompt_cache_key
string | null
obrigatório
prompt_cache_options
object | null
obrigatório
prompt_cache_retention
string | null
obrigatório
reasoning
object | null
obrigatório
safety_identifier
string | null
obrigatório
service_tier
enum<string>
obrigatório
Opções disponíveis:
auto,
default,
flex,
fast,
ultrafast,
scale,
priority
status
enum<string>
obrigatório
Opções disponíveis:
queued,
in_progress,
completed,
failed,
incomplete
store
boolean
obrigatório
temperature
number<double>
obrigatório
text
any
obrigatório

Text output configuration including format and verbosity

tool_choice
any
obrigatório

Tool choice setting: "auto", "none", "required", or a specific function

tools
any[] | null
obrigatório

Array of tool configurations used in this response

top_logprobs
integer<int64>
obrigatório
top_p
number<double>
obrigatório
truncation
enum<string>
obrigatório
Opções disponíveis:
disabled,
auto
usage
object | null
obrigatório
user
string | null
obrigatório
conversation
object
memory
object
telemetry
object

OpenTelemetry trace and span identifiers for this response.

top_k
integer<int64>

Only sample from the top K options for each subsequent token. Present only when set on the request.

variables
object