---
title: "Create a read-only chat export URL"
method: POST
path: "/api/v1/workspaces/{workspace}/chat-export-url"
tags: ["Workspace Chat"]
---

# Create a read-only chat export URL

`POST /api/v1/workspaces/{workspace}/chat-export-url`

Return a signed relative URL (`exportUrl`) for sharing a completed chat session. Idempotent while the latest link is still valid.

## Path parameters

- `workspace` string, required

## Request body

- ChatExportUrlRequest
  - `userId` string, email, required
  - `sessionId` string, required
  - `ttlSeconds` integer, nullable — Optional link lifetime

## Response `200`

Export link

- ChatExportUrlResponse
  - `exportUrl` string — Relative path to open the read-only chat export in the RunWhen UI

## Other responses

- `404` — Session not found

---

[API](https://skmtc.dev/runwhen/apis/runwhen-platform-api.md) · [All operations](https://skmtc.dev/runwhen/apis/runwhen-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runwhen/runwhen-platform-api/revisions/9d1a64d4b1c1/schema)
