/v1.
There is no endpoint to create an environment directly: an environment is created with its session, and its ID is session.environment.id.
Environment templates
Environments and files
Vaults and credentials
Files
Skills and versions
Templates accept optional
name, files, skills, env, network, packages, plugins, setup_commands, and capability_directories. For environment files, create requires path and type (file_id with file_id, or inline with data). Environment file listing uses page, not after; it also accepts limit, order, and path. Environment IDs are obtained from sessions; there is no standalone environment-create endpoint in this inventory.
POST /files and skill/skill-version uploads use multipart form data, not JSON. File upload needs file and purpose. Skill creation takes files; updating a skill requires default_version. Downloads (/content) return bytes. Vault credential creation requires name and auth; credential update requires a replacement auth object, not a plaintext read. Never log tokens.
status, after, limit, order. Other cursor lists accept after, limit, order. See Pagination.