id | string | Session ID; reuse it for follow-up turns |
object | string | Session object type, fixed as agent.session |
created_at | integer | Creation time in Unix seconds |
last_active_at | integer | Last activity time in Unix seconds; not a version number or lock |
status | string | Session status: idle, in_progress, requires_action, or failed |
agent | object | Effective agent snapshot. |
agent.id | string | Agent ID; inline configurations return a session snapshot ID, not a reusable saved agent, and it cannot be retrieved through Agent GET |
agent.model | string | Model ID |
agent.instructions | string / null | Custom instructions |
agent.name | string / null | Display name |
agent.reasoning | object / null | Reasoning configuration, contains effort and summary |
agent.text | object / null | Text output configuration; contains format and verbosity |
agent.tools | array | Tool configuration |
agent.multi_agent | object / null | Subagent configuration; contains enabled and max_concurrent_subagents |
environment | object | Safe environment summary; only type for none. |
environment.type | string | Environment type; none or openai_hosted |
environment.id | string | Environment ID, omitted when there is no authoritative value |
environment.status | string | Environment status: omitted when there is no authoritative value |
environment.environment_template_id | string | Environment template ID, omitted when there is no authoritative value |
environment.workspace_directory | string | Workspace directory, omitted when there is no authoritative value |
environment.error | string / null | Environment error description, omitted when there is no authoritative value |
environment.desktop | object / null | Desktop settings; contains enabled |
environment.capability_directories | array<string> / null | Capability discovery directories |
environment.network | object / null | Network policy; contains access and allowed_domains |
environment.packages | object / null | Package lists; contains npm, python, and system |
environment.files | array | Safe environment file metadata |
environment.skills | array | Safe skill metadata |
environment.plugins | array | Plugin information; [] for managed environments |
metadata | object | Session metadata; an empty value is {} |
vault_ids | array<string> | Vault IDs recorded at creation; this does not mean mounting is complete |
required_actions | array | Function calls that need client handling; [] when empty. |
required_actions[].type | string | Item type, fixed as function_call |
required_actions[].turn_id | string | Public turn ID |
required_actions[].call_id | string | Function call ID |
required_actions[].name | string | Function name |
required_actions[].arguments | object | Parsed call arguments |
error | string / null | Session-level error message, different from a turn's structured error |
usage | object / null | Token usage. |
usage.input_tokens | integer | Number of input tokens |
usage.input_tokens_details | object | Input token details. |
usage.input_tokens_details.cached_tokens | integer | Number of input tokens that hit the cache |
usage.output_tokens | integer | Number of output tokens |
usage.output_tokens_details | object | Output token details. |
usage.output_tokens_details.reasoning_tokens | integer | Number of reasoning tokens |
usage.total_tokens | integer | Total number of tokens |
spend_control | object | Spend control; returned only when a historical record has a value; creation and update do not accept writes. |
spend_control.limit | integer | Spending limit in cents |
spend_control.consumed | integer / null | Consumed amount in cents |