id: string

The ID of the reusable environment template.

minLength0
capability_directories: Array<string>

Directories that expose capabilities to the agent.

minItems0
maxItems2000
created_at: number

The Unix timestamp, in seconds, when the template was created.

formatint64
files: Array<HostedTemplateFileResourceFileID { file_id, path, type } | HostedTemplateFileResourceInline { path, size_bytes, type } >

Safe file metadata, excluding contents and session-scoped file IDs.

minItems0
maxItems50
One of the following:
HostedTemplateFileResourceFileID { file_id, path, type }

A project-scoped Files API reference resolved separately for each session.

file_id: string

The ID of the uploaded file.

minLength0
path: string

The file’s absolute path inside the environment.

minLength0
type: "file_id"

The type of the object. Always file_id.

HostedTemplateFileResourceInline { path, size_bytes, type }

Metadata for confidential inline file contents.

path: string

The file’s absolute path inside the environment.

minLength0
size_bytes: number

The decoded size of the inline file in bytes.

formatint64
minimum0
type: "inline"

The type of the object. Always inline.

name: string | null

An optional human-readable display name for the template.

minLength0
network: Network { access, allowed_domains }

Runtime network access for each OpenAI-hosted environment.

access: "enabled" | "disabled" | "restricted"

The environment’s network access mode.

One of the following:
"enabled"

Allows unrestricted network access.

"disabled"

Disables network access.

"restricted"

Applies the configured domain restrictions.

allowed_domains: Array<string>

Domains the environment may access when network access is restricted.

minItems0
maxItems2000
object: "agent.environment.template"

The object type. Always agent.environment.template.

packages: Packages { npm, python, system }

Packages installed in each fresh OpenAI-hosted environment.

npm: Array<string>

npm packages installed globally in the environment.

minItems0
maxItems16384
python: Array<string>

Python packages installed in the environment.

minItems0
maxItems16384
system: Array<string>

System packages installed in the environment.

minItems0
maxItems16384
plugins: Array<HostedPlugin { description, name, type } >

Safe plugin metadata, excluding inline archive contents.

minItems0
maxItems32
description: string

The installed plugin description.

minLength0
name: string

The installed plugin name.

minLength0
type: "inline"

The type of the object. Always inline.

skills: Array<HostedTemplateSkillResourceSkillReference { skill_id, type, version } | HostedTemplateSkillResourceInline { description, name, type } >

Safe skill metadata, preserving unresolved version selectors.

minItems0
maxItems200
One of the following:
HostedTemplateSkillResourceSkillReference { skill_id, type, version }

A skill resolved afresh from the Skills API whenever a session starts.

skill_id: string

The referenced skill ID.

minLength0
type: "skill_reference"

The type of the object. Always skill_reference.

version: string | null

The requested version selector, including latest.

minLength0
HostedTemplateSkillResourceInline { description, name, type }

Safe metadata for an inline skill archive.

description: string

The skill description declared in SKILL.md.

minLength0
name: string

The skill name declared in SKILL.md.

minLength0
type: "inline"

The type of the object. Always inline.

updated_at: number

The Unix timestamp, in seconds, when the template was last updated.

formatint64
desktop?: Desktop { enabled }

Desktop configuration for each OpenAI-hosted environment.

enabled: boolean

Whether the environment provisions a desktop and browser proxy.