---
title: "Fetch the .dcv connection file for a session"
method: GET
path: "/api/dcv/virtual_desktops/connection_file"
tags: ["Virtual Desktops"]
---

# Fetch the .dcv connection file for a session

`GET /api/dcv/virtual_desktops/connection_file`

Returns the .dcv connection file (as text/plain attachment)
for the specified session. The caller must be the session owner
or hold the admin token. Same payload as the WebUI route.

## Query parameters

- `session_uuid` string, required
- `owner` string

## Headers

- `X-EDH-USER` string, required
- `X-EDH-TOKEN` string, required

## Response `200`

.dcv connection file (text/plain attachment)

## Other responses

- `400` — Missing session_uuid
- `403` — Non-admin caller requested another user's session
- `404` — Session not found or not owned by user

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
