---
title: "POST /api/dcv/session_sharing/connect"
method: POST
path: "/api/dcv/session_sharing/connect"
tags: ["Virtual Desktops"]
---

# POST /api/dcv/session_sharing/connect

`POST /api/dcv/session_sharing/connect`

POST operation for /api/dcv/session_sharing/connect

## Headers

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

## Request body

- object
  - `grant_id` string, required — ID of the active grant to connect to

## Response `201`

Nonce created successfully

- object
  - `success` boolean
  - `message` object
    - `nonce_url` string — URL path to consume the nonce

## Other responses

- `400` — Missing grant_id
- `403` — Not authorized for this grant
- `404` — Grant not found or inactive
- `500` — Serialization error
- `503` — Cache (Valkey) not available

---

[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)
