GET
Retrieve an item

Authorizations

Authorization
string
header
required

A project API key, alt_live_… or alt_test_….

Path Parameters

id
string
required
item_id
string
required
Example:

"item_0123456789abcdef01234567"

Response

The item.

id
string
required

item_…

object
string
required
Allowed value: "item"
type
enum<string>
required
Available options:
message,
function_call,
function_call_output,
tool_call,
approval_request
created_at
string<date-time>
required
conversation_id
string | null
response_id
string | null
status
enum<string>
Available options:
in_progress,
completed,
failed,
incomplete
role
enum<string> | null
Available options:
user,
assistant,
system,
developer,
null
content
object[]

message items.

call_id
string

function_call, function_call_output; on tool_call, the runtime's tool call id when it sent one (also on the response.tool_call.* stream events).

name
string

function_call, tool_call.

arguments
string

function_call: JSON text.

output
any

function_call_output (string) or tool_call (any).

input
any

tool_call.

error
string | null
approval_id
string

approval_request.

proposed_action
object

approval_request.