Return the complete environment template configuration for a template ID.
Endpoint
GET /agents/environments/templates/{template_id}
Returns 200 and the complete environment template.
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
template_id | Yes | string | Environment template ID |
Request example
Response example
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Environment template ID |
object | string | Environment template object type, fixed as agent.environment.template |
name | string / null | Template name |
created_at | integer | Creation time in Unix seconds |
updated_at | integer | Last update time in Unix seconds |
packages | object | Packages with python, system, and npm |
network | object | Network policy with access and allowed_domains |
desktop | object | Desktop settings with enabled |
capability_directories | array<string> | Capability discovery directories |
skills | array | Skill configuration with type, skill_id, and version |
plugins | array | Safe plugin metadata. Contains type, name, and description; currently an empty array |
files | array | Initial file configuration; each item contains type, path, and file_id |
env or setup_commands.
Error codes
| HTTP status | Error type / code | Solution |
|---|---|---|
401 | authentication_error / invalid_api_key | Send a valid Authorization: Bearer $DASHSCOPE_API_KEY header |
404 | not_found_error / not_found_error | Use an environment template ID that exists in the current workspace |
500 | server_error / server_error | Retry later. If it keeps failing, submit a ticket with x-request-id |