---
title: "Get agent .env file content (Deprecated)"
method: GET
path: "/agents/{agentKey}/dotenv"
tags: ["Agents Settings"]
deprecated: true
---

# Get agent .env file content (Deprecated)

`GET /agents/{agentKey}/dotenv`

> **Deprecated.**

Deprecated. Not supported for agents created via the UI, API, or Terraform provider.

## Path parameters

- `agentKey` string, required

## Response `200`

- string

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
